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

Starting a paragraph with an over-sized letter


In older texts, such as in books of fairy tales, we sometimes see the first paragraph in a text starting with a huge letter, while the following text flows around it. This is called a drop cap or an initial. We will now use this design for our own text.

How to do it...

We will use the lettrine package, which provides a command for this purpose. Follow these steps:

  1. Start a document with any document class. Here, we chose the book class. We will use A6 paper size, simply because this makes the recipe easy to show with little text:

    \documentclass{book}
    \usepackage[a6paper]{geometry}
  2. Load the lettrine package:

    \usepackage{lettrine}
  3. Begin the document:

    \begin{document}
  4. Start a paragraph with the command \lettrine{letter}{further introduction}, as follows:

    \lettrine{O}{nce upon a time}, professional writer used
    a mechanical machine called a typewriter. It commonly
    printed fixed-width characters. Emphasizing was done by
    writing all capitals, and by underlining...