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

Introduction


With LaTeX, we can create and print complex tables. In this chapter, we will first talk about achieving good readability. Some recipes will show and explain useful design elements.

While the recipes are based on standard LaTeX tabular environments, you can use them in a similar manner with tabular*, tabularx, tabulary, and related environments.

Note

The tabular* environment achieves a desired table width by adjusting the spacing between columns. The tabularx environment also spans to a given width by automatically calculating column widths, trying to distribute available space evenly. The tabulary environment also balances column widths, but tries to give more space to columns with more content. These environments and packages are covered in LaTeX introductions such as in the LaTeX Beginner's Guide written by me.

Even with the array environment, it's quite the same; it would just be in math mode. That's why you may also have a look at the recipes in Chapter 10, Advanced Mathematics...