Book Image

LaTeX Cookbook

By : Stefan Kottwitz
Book Image

LaTeX Cookbook

By: Stefan Kottwitz

Overview of this book

LaTeX is a high-quality typesetting software and is very popular, especially among scientists. Its programming language gives you full control over every aspect of your documents, no matter how complex they are. LaTeX's huge amount of customizable templates and supporting packages cover most aspects of writing with embedded typographic expertise. With this book you will learn to leverage the capabilities of the latest document classes and explore the functionalities of the newest packages. The book starts with examples of common document types. It provides you with samples for tuning text design, using fonts, embedding images, and creating legible tables. Common document parts such as the bibliography, glossary, and index are covered, with LaTeX's modern approach.You will learn how to create excellent graphics directly within LaTeX, including diagrams and plots quickly and easily. Finally, you will discover how to use the new engines XeTeX and LuaTeX for advanced programming and calculating with LaTeX. The example-driven approach of this book is sure to increase your productivity.
Table of Contents (19 chapters)
LaTeX Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a list of acronyms


For documents with a lot of acronyms or abbreviations, it is common to have a table showing their short forms and full forms. This allows compact writing and adds convenience for the reader.

This is different from a glossary as we don't list explanations, just the full forms.

How to do it...

We will again use the glossaries package. Since the concept of a glossary and a list of acronyms are closely related, it provides an acronym mode too, so we will now use the list that way by performing the following steps:

  1. Begin with a document class. It doesn't matter which one. Here, we will take the same class that we took in the previous recipe:

    \documentclass[parskip=half]{scrartcl}
  2. Load the glossaries package and choose the style called long3col as we did in the previous recipe. For acronym support, add the acronym option:

    \usepackage[acronym,style=long3col]{glossaries}
  3. Choose an acronym style. We take long-sc-short here, where sc stands for small caps in the short form:

    \usepackage...