Home » LaTeX9 June 2015

LaTeX: How to add bibliography and references?

There are two ways to add bibliography (references) to your document. One is for small document with few bibliography items using thebibliography environment. The other is for large documents where there are many bibliography items using packages like biblatex.

1) BIBLIOGRAPHY ON SMALL DOCUMENTS

If you have few bibliography items, which is a general case for small few pages documents, then you can use thebibliography environment to create bibliography on your document. \bibitem command is used to add bibliography items. \cite command is used to cite the bibliography item in the document chapter or section.

Below is an example of creating bibliography using “thebibliography” environment. The number “10” at the beginning of “thebibliography” indicates the number of bibliography entries that can be added in the document.

Bibliography will have the title as “References” if the document class is “article” and it will have title “Bibliography” if the document class is “book” or “report”.

Below is the pdf file generated after you compile the above LaTeX source:

2) BIBLIOGRAPHY ON LARGE DOCUMENTS

For large documents like large report or book, you need to specify .bib file. Bibliographic references are kept in this file. \cite command is used to cite the bibliography items in the document.

Here is an example of the BibTeX database stored in .bib file. Let us name the file as references.bib.

I have used biblatex package which uses bibtex to generate bibliographies. However, now biblatex uses biber as the default backend instead of bibtex.

If you have not installed biber, you need to install it first. Here is the command to install biber on Ubuntu:

Here is the sample LaTeX document that uses references.bib as the bibliography database. In the document chapter, citation is done using \cite command. Package defination and bibliographic resource file is defined in the preamble of the document. \printbibliography command is used to print the bibliography at our desired position.

Suppose that the tex file is named as myfile.tex. To compile the tex and bib file, you need to run the following commands:

Now, myfile.pdf is generated with the bibliography items.

Below is the pdf file generated after you compile the above LaTeX source:

If you are using document class as ‘report’ or ‘book’ then the title will be “Bibliography” and if you are using document class as ‘article’ then the bibliography title will be “References“.

More detail on Bibliography Management

LaTeX

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed