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

Importing just a single symbol from a font family


There are a lot of packages providing symbols. Often, you get the new commands for additional symbols by simply loading the package by using the \usepackage command. However, there can be name conflicts in case the other packages already use the same command name. It can result in an error or in silently overwriting the command.

In this recipe, we will see how to choose one or more specific symbols from a package and access them without loading the whole package.

We will choose a binary relation symbol from the mathabx package. This will be the sign for less or equal. Later, we will import its negation.

Getting ready

In this recipe, we need to take a look at the source code of the symbol package to imitate part of what it does, so prepare yourself:

  1. Locate the file mathabx.sty and open it. At the Command Prompt, kpsewhich mathabx.sty gives you the location. But you can also use your file manager.

  2. In mathabx.sty, you can see \input mathabx.dcl. There...