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 – creating and using a BibTeX database


We shall create a separate database file containing the references of our previous example. We will modify our example to use that database. To make this database usable, we have to call the external program BibTeX :

  1. Create a new document. Begin with writing the entry for the TeXbook:

    @book{DK86,
    author = "D.E. Knuth",
    title = "The {\TeX}book",
    publisher = "Addison Wesley",
    year = 1986
    }
  2. For the next entry, that is, the article, we will specify even more fields:

    @article{DK89,
    author = "D.E. Knuth",
    title = "Typesetting Concrete Mathematics",
    journal = "TUGboat",
    volume = 10,
    number = 1,
    pages = "31--36",
    month = apr,
    year = 1989
    }
  3. Save the file and give it the name tex.bib. Open our example tex document and modify it as follows:

    \documentclass{article}
    \begin{document}
    \section*{Recommended texts}
    To study \TeX\ in depth, see \cite{DK86}. For writing math texts, see \cite{DK89}.
    \bibliographystyle{alpha}
    \bibliography{tex}
    \end{document}
  4. Typeset...