Book Image

LaTeX Beginner's Guide

Book Image

LaTeX Beginner's Guide

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)
LaTeX
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
2
Formatting Words, Lines, and Paragraphs
Index

Time for action – introducing variable references


We will use the varioref commands, \vref and \vpageref , to achieve enhanced reference texts:

  1. Open our current example. Add the package varioref to your preamble:

    \usepackage{varioref}
  2. Edit the content of the second chapter:

    \emph{amsmath}, on position \ref{item:amsmath} of the top list
    in section~\vref{sec:packages}, is indispensable to high-quality
    mathematical typesetting in \LaTeX. \emph{amssymb}, on position
    \ref{item:amssymb}, provides a huge amount of math symbols.
    See also the footnote \vpageref{fn:project}.
  3. Typeset twice and look at the result:

What just happened?

The command \vref checked the distance to the referenced section. As it's on the facing page, that is, on the preceding page in a two-sided layout, it wrote "1.2 on the facing page". Similar for \vpageref, it refers to "the preceding page".

\vref{name} acts in the following way:

  • If the reference and \label{name} are on the same page, it behaves exactly like \ref. The page number...