BibTeX is a standard tool for creating bibliography in LaTeX. It requires creating a database of references stored in a file with bib extension. Creating it is easy nowadays, because many publishers provide references to their publications in BibTeX format.

An example mylib.bib file is shown below:

AUTHOR = {W. Vickrey},
TITLE = {Counterspeculation, auctions and sealed tenders},
JOURNAL = {Journal of Finance},
YEAR = {1961},
volume = {16},
pages = {8--37},
AUTHOR = {M. C. Golumbic},
TITLE = {Algorithmic Graph Theory and Perfect Graphs},
PUBLISHER = {Elsevier Science},
YEAR = {2004},
edition = {2nd Edition},

Each entry is identified with a label given after the first opening curly bracket. This label is later used to reference the entry in the text of the main document. Here is an example that uses the above bibliography file:


To achieve incentive compatibility, the auction winner has to pay the second highest price \cite{Vickrey1961}.

A good introduction to graph algorithms can be found in \cite{Golumbic2004}.



Bibliography items are referenced using command \cite{label}. Command \bibliographystyle indicates what style of references should be used, while command \bibliography indicates where the bibliography items are stored. The result looks as follows:

The plain style of bibliography shown above uses numbers as references. There is a number of other bibliography styles in LaTeX. An example using apacite style is shown below:


\citeA{Vickrey1961} showed that incentive compatibility is guaranteed if the auction winner has to pay the second highest price.



Style apacite requires using package apacite. In addition to \cite command, it also provides (among many others) \citeA command, which allows for citations that look as follows:

Note that here the reference (Golumbic 2004) is not included in the list of references even though it exists in the bib file, since it has not been referenced to in the text.

Copyright (c) 2008, 2013 by Krzysztof Fleszar

The gadget spec URL could not be found