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

Writing bold mathematical symbols


There are several ways of getting bold mathematical symbols. A classic way is directly provided by LaTeX. Take a look at this code:

\boldmath $y=f(x)$\unboldmath

It works in the following way:

  1. In text mode, we switch to bold math alphabets.

  2. We enter the math mode, in which bold symbols are always chosen, if available.

  3. We leave the math mode.

  4. While in the text mode, we switch the math alphabets back to normal—nonbold.

But that's for making all symbols of a formula bold. Such kind of emphasizing is rather rare today, as it destroys the uniform grayness of the text from a typographer's point of view.

A more common requirement is to get bold versions of certain symbols. For example, bold symbols are often used for vectors and number systems.

In this recipe, we will take the most recommended approach to get bold symbols.

How to do it...

We will use the bm package as follows:

  1. Load the bm package in your preamble. Do this after loading all the packages that define symbol fonts...