Web Historical Disclaimer:
This is a historical page
and is no longer maintained. Read our
Web history statement for more information.
![]()
| |
| | UT Home | Graduate School Home | |
LaTeX: from quick and dirty to style and finesseCross referencing
by Tony Roberts One of the strengths of LaTeX is its capability to cross-reference through information it places in auxilary files. Done properly, this feature permits one to extract, insert, move and modify large and small chunks of the document around without having to manually renumber cross-references, it is all done automatically. Contents of this section
Table of contentsOne of the easiest things to do is to insert a table of contents into a document simply by placing the LaTeX command
at the desired location in the document; see fractals21.tex. The first time this is LaTeXed the table will not appear because the information is being stored in the associated .toc file. Subsequent LaTeXing will typeset the table of contents. The minitoc package may be used to insert a Table of Contents of just the current chapter or Part in a book or report. Very useful to help map out the parts of the dissertation for a reader. See the scheme laid out in the skeleton file minitoc.tex. FootnotesUnlike most publishers, LaTeX easily handles footnotes with comtemptuous ease. Just use the
command with one argument being the text of the footnote. As seen in fractals22.tex, this will typeset a numerical flag at the location of the footnote command and will place the footnote text at the bottom of the page. Labels and referencesSomewhat more sophisticated are references to equations and sections. First one has to label them as in
which associates a string such as "sec-name" with the number of the section, and a string such as "eq-name" with the number of the equation. See fractals23.tex. Having created the labels, you refer to the objects using the \ref{label-name} command as seen in fractals23.tex. Note the use of the command \S to typeset a symbol for "section" and "subsection", and the need to put parentheses around the equation number in its reference. One also labels and refers to chapters, subsections, subsubsections, tables, figures, and enumerated lists. Often you begin to lose track of the labels used. In such a case \usepackage{showkeys} in the preamble will cause names of labels to also appear in a (draft) printed document for your ready reference. Hypertext linkingAn emerging feature of LaTeX is the ability to automatically insert hypertext links within a document:
Warnings:
BibliographyA bibliography is handled as a sort of enumerated list with labels.The following list like environment
typesets the bibliography with the heading References and associates the labels, the strings such as "bib-name1", with the description of the article or reference. See the end of fractals24.tex. Hint: if you want the entry "References" to appear in the table-of-contents then put the line
at the start of the bibliography environment. Citations in the text to the bibliography items are achieved by the command
This typesets the number of the bibitem in square brackets as seen in fractals24.tex. Generally put a non-breaking space before the cite command as in
BibTeX et alThe basic bibliography environment is fine for your first project report. However, in time you develop enough so that you want to keep one central database of all your references which you then access via the \cite command in any document you prepare.
Large documentsLarge documents, especially dissertations and books, can be a pain to deal with just because of their size. LaTeX gives a facility to split the source, the .tex file, into manageable sized chunks to make editing easier and to speed typesetting by only doing that chunk of interest at any one time.
12 August 1998 Professor A J RobertsDept Mathematics & Computing University of Southern Queensland Toowoomba 4350, Australia E-mail: aroberts@usq.edu.au |
Graduate School, Main Building 101, Austin, TX 78712 |