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

Adding a glossary


If words in your document require some explanation, you can add a glossary. This is an alphabetical list of words or phrases with their explanations. A possible improvement would be having backreferences to the locations in the text where those words are used.

How to do it...

We will work with the glossaries package by following these steps:

  1. Start with any document class. For our example, we will use the scrartcl class, because we don't start with a paragraph indentation with the parskip option. However, you can use the article class without options as well:

    \documentclass[parskip=half]{scrartcl}
  2. Load the glossaries package and choose the style called long3col:

    \usepackage[style=long3col]{glossaries}
  3. Use this command to tell the package to create a glossary:

    \makenoidxglossaries
  4. Create the first glossary entry for the word TeX. Using a key=value interface, state the name, a word indicating the sort order because the name is actually a macro. Finally, write a description. All of...