On this page:
There are two methods for creating a bibliography. The first can be used for short documents with only a few sources, and is fairly simple. The second method is used for large documents and theses, and involves using a program called "bibtex".
If all of this seems complicated, there is a simpler way to produce a quick bibliography for your document. This can be used for smaller papers, ones that don't need a very extensive bibliography. Something like this will work fine:
You can put this at the end of your LaTeX file. If you want to refer to something from your bibliography you can put something like this in yourfile:
which would produce something like
Pretend that the file that we are using is called 'foo.tex'. To make a bibliography, we should put all our sources into a file called 'foo.bib'. The structure of foo.bib is as follows:
For our sample document, we will use the following:
BIBTeX uses REAL quotation marks (") and NOT the opening and closing quotation marks (`` and '') that LaTeX normally uses.
Now, everytime you refer to the book Foo Bar Baz in foo.tex, you refer to it in the following manner:
This will match the citation number with the number of the book in the list of references.
If you have a few references that you did not explicitely cite in the text of your document, but you would like to include it in the list of references, you use the following (in foo.tex):
where baz, fuzz, and bong are abbreviations for the other texts.
To actually create the bibliography, you need to use the following commands in foo.tex (these are usually at the end of the document - where you want the References section to appear):
There are several options for \bibliographystyle:
|plain||normal style - listed in ABC order and labeled numerically|
|unsrt||same as plain except entries appear in order of citation|
|alpha||same as plain except entry labels are used|
|abbrv||same as plain except uses abbreviations for first names, month names, and journal names|
Now that you have the basis for a bibliography, you have to run both latex and bibtex on the document. First, you should run latex (to create a foo.aux file, which bibtex reads). Then run bibtex once to get some of the citations and create a .bbl file. Then run latex again so that the cross references between the text file and the bibliography are correct. You may want to repeat running bibtex and latex on the file to make sure that all cross references are correct. Be warned that adding/deleting citations and sources will require running bibtex again.
For more information on this topic, please refer the following pages in the LaTeX manual by Leslie Lamport: