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

Choosing a font for a document


The default font has the name Computer Modern and is of very good quality. It is actually a whole font family that contains bold, italic, sans-serif, typewriter, and more font versions. All the fonts are well composed to fit together.

If you would like to change the font, use a complete bundle or carefully select font families based on shape and size. That's because, besides giving a good appearance to the document overall, it is important that all font families are compliant to each other when they are used together.

In this recipe, we will take a look at some font sets and recommended combinations.

Getting ready

For the fonts you would like to use, their files should already be installed on your TeX system. If not already present, install them. Use the package manager of your LaTeX distribution, such as the MiKTeX package manager in case of MiKTeX on Windows, or the TeX Live manager tool called tlmgr.

In case you have TeX Live installed, it offers the possibility...