Creating a bibliography
LaTeX's powerful bibliography handling can automatically format and order citations and references. Overleaf features help make these features easy to use.
There are a variety of ways to create bibliographies within a LaTeX document, but most methods for including citations and a list of references require three main steps:
Include a file in your project that provides all the bibliographic data for the works you are going to cite. This is the .bib file. The .bib file has a special format that provides the raw bibliographic data without any specific style formatting.
Provide some instructions in your LaTeX document's preamble that describes what bibliography management system you are going to use. There are three different systems that are commonly used: bibTeX, natbib, and bibLaTeX.
Include citation commands within your text where you wish to cite works that are available in your .bib file. You must also include commands to print the bibliography at the appropriate location in your document.
The LaTeX compile process will check all of the citation commands, insert appropriately styled citations at those locations, and automatically generate a bibliography using the data in your .bib file.
Creating the .bib file
Overleaf provides several features that allow you to work with .bib files more easily. You can upload or create your .bib file directly in Overleaf, or you can use a reference manager integration (premium feature) to automatically import or build your .bib file from data you have gathered in Papers, Zotero, or Mendeley.
Working with .bib filesReference Manager integrationsLaTeX reference management systems
When it comes to bibliography management systems, there are three main options in LaTeX: bibTeX, natbib, and bibLaTeX. While all three make use of .bib files, they provide different commands, style, data type, and attribute options.
If you are using a template that was provided to you, the template will likely have a specific reference management system already selected. Please check the documentation for your template to find out which system it may be using.
If you are creating a project without a template or specific requirements, bibLaTeX is the recommended system to use, as it provides an easier and more flexible interface and a better language localization than the other two options.
Overleaf's LaTeX learning documentation provides overviews of how to use these systems.
Writing and citing
LaTeX bibliography reference systems each provide various citation commands for you to use within your LaTeX document to indicate what works should be cited, where the citations should appear, and what type of citation is required.
A common feature of all citation commands is that they rely on citeKeys, which are unique identifiers for each work that is provided in your .bib file.
Overleaf's LaTeX learning documentation provides an overview of the citation commands and styles for bibLaTeX, natbib, and bibTex.
Overleaf provides autocompletion features as well as advanced reference search options (a premium feature) that help you find the right citeKey for a given reference.
Adding citations and referencesLast updated
Was this helpful?