Notice! This document is currently in Archived status.
The content of this document may be incorrect or outdated.

Print this article Edit this article

LaTeX: Producing a Bibliography in LaTeX

The bibliography list is produced with the thebibliography environment. This is a rather special form of list making environment, which will also produce its own heading. A simple example is:
\begin{thebibliography}{Rubinsteinetal}

\bibitem[Knuth86]{knuth}
Donald E Knuth, {\em The \TeX book}, Addison-Wesley, 1986,
ISBN 0-201-13447-0

\bibitem[Lamport86]{lamport}
Leslie Lamport, {\em \LaTeX\ A Document Preparation System},
Addison-Wesley, 1986, ISBN 0-201-15790-X

\bibitem[Rubinstein88]{rubinstein}
Richard Rubinstein, {\em Digital Typography: An Introduction to
Type and Composition for Computer System Design}, Addison-Wesley,
1988, ISBN 0-201-17633-5

\end{thebibliography}
The text is indented after the first line by a width equal to the argument to thebibliography, so this should be as large or larger as the longest label in the bibliography. For the standard application with running numbers, the argument should be a dummy number larger than the number of entries. i.e.: if there are more than 10 and less than 100, 99 is a suitable dummy number.

Each \bibitem entry must have an associated label that can be referenced from the \cite command (see below). It may also have an optional argument preceding this (in square brackets) that is used to define the user's own reference labels that will appear in the document. If this is not used, then as a default will produce numerical reference labels, so that in this case the argument for the thebibliography environment need only be a short string such as {100}.

The bibliography is most easily maintained by storing it in a separate file such as biblio.tex. This form is used in the root file example given at the beginning of this chapter.

Citations are produced by the \cite command. Associated with the \cite command is a label, which is used to provide a reference to an entry in the bibliographic database. As an example, using the above items, the phrase

      ... in the \TeX book \cite{knuth} ...
would appear as
...in the book ...

Running produces a number of files, one of which, the auxiliary (.aux) file, includes cross referencing information. The .aux file is also used in the creation of the table of contents (.toc), and the lists of figures (.lof) and tables (.lot). Modifications to your document which effect the table of contents, etc are incorporated the second time around. For example, the \tableofcontents command, which appears in the preamble, tells to create a new toc file and use the previous one (if any exists) to generate the contents page for inclusion in the current document. The .toc file, therefore, is one step out of phase with the document and consequently a second run is required in effect is a two-pass compiler.

Last Modified: Dec 19, 2016 11:12 am US/Eastern
Created: Jul 12, 2007 12:59 pm GMT-4 by admin
JumpURL: