Book Image

LaTeX Beginner's Guide

By : Stefan Kottwitz, Robin TUG
Book Image

LaTeX Beginner's Guide

By: Stefan Kottwitz, Robin TUG

Overview of this book

LaTeX is high-quality Open Source typesetting software that produces professional prints and PDF files. However, as LaTeX is a powerful and complex tool, getting started can be intimidating. There is no official support and certain aspects such as layout modifications can seem rather complicated. It may seem more straightforward to use Word or other WYSIWG programs, but once you've become acquainted, LaTeX's capabilities far outweigh any initial difficulties. This book guides you through these challenges and makes beginning with LaTeX easy. If you are writing Mathematical, Scientific, or Business papers, or have a thesis to write, then this is the perfect book for you. LaTeX Beginner's Guide offers you a practical introduction to LaTeX with plenty of step-by-step examples. Beginning with the installation and basic usage, you will learn to typeset documents containing tables, figures, formulas, and common book elements like bibliographies, glossaries, and indexes and go on to managing complex documents and using modern PDF features. It's easy to use LaTeX, when you have LaTeX Beginner's Guide to hand. This practical book will guide you through the essential steps of LaTeX, from installing LaTeX, formatting, and justification to page design. Right from the beginning, you will learn to use macros and styles to maintain a consistent document structure while saving typing work. You will learn to fine-tune text and page layout, create professional looking tables as well as include figures and write complex mathematical formulas. You will see how to generate bibliographies and indexes with ease. Finally you will learn how to manage complex documents and how to benefit from modern PDF features. Detailed information about online resources like software archives, web forums, and online compilers completes this introductory guide. It's easy to use LaTeX, when you have LaTeX Beginner's Guide to hand.
Table of Contents (21 chapters)
About the Author
About the Reviewers
Formatting Words, Lines, and Paragraphs

Time for action – creating a narrow text column

We would like to explain the acronym TUG in a text column of only 3 cm width:

  1. Create a new document containing these four lines:

    \parbox{3cm}{TUG is an acronym. It means \TeX\ Users Group.}
  2. Typeset and take a critical look at the output:

What just happened?

We used the command \parbox to create a column. We stated the width of 3 cm in the first argument and the contained text in the second argument to \parbox.

\parbox takes the argument text and formats the output to fit the specified width. We see that the text is fully justified. Our example shows an obvious problem: insisting on full justification could lead to undesirable big gaps in the text. Possible solutions are:

  • Introducing hyphenation: the word acronym could easily be divided

  • Improving justification: LaTeX could do better

  • Giving up full justification: narrow text could look better when it's only left justified

We will check out all of...