BibTeX, LaTeX, and Overleaf

BibTeX

BibTeX is a file format used for references, and a typical BibTeX entry includes entry type, reference unique key, and a series of fields. The general form of an entry in a .bib file is: @entry type {reference unique key, required fields, [optional fields]}. 
Example:

@article{ref_123,
title = {Challenges for Rechargeable {L}i Batteries},
author = {Goodenough, John B and Kim, Youngsik},
journal = {Chemistry of Materials},
pages = {587--603},
volume = {22},
number = {3},
year = {2010}
}

 

  • Standard entry types include article, book, booklet, inbook, incollection, inproceedings, manual, mastersthesis, misc, phdthesis, proceedings, techreport, and unpublished. 
  • In standard entry types, there are no entry types available for patents or technical standards. 
    • Patents - Use @misc, or use a citation style package with @patent, such as IEEETran (Or, use BibLaTeX which has @patent as a standard entry)
    • Technical standards - Use @misc or @techreport 
  • Each entry has several fields. Users may add their own fields, but the citation style they choose decides which fields are used.

Referencing in LaTeX 

Example:

In the LaTeX editor

The challenges for rechargeable lithium-ion batteries are investigated \cite{ref_123}.

\bibliographystyle{ieeetr}
\bibliography{Imported-references}

In the output file

The challenges for rechargeable lithium-ion batteries are investigated [7].

[7] J. B. Goodenough and Y. Kim, “Challenges for rechargeable Li batteries,” Chemistry of Materials, vol. 22, no. 3, pp. 587–603, 2010.

Tools for BibTeX files

Many tools allow you to export BibTeX files, including academic databases and reference managers. 

Some databases allow users to export references in BibTeX format, including EI Compendex, IEEE Xplore, Web of Science, and Scopus. 

Reference managers can help users manage their references and produce BibTeX files, including Mendeley, Zotero, JabRef. Users with a standard or professional Overleaf account can link Mendeley and Zotero to their Overleaf account and synchronize references. See details

Style packages and LaTeX templates

Citation style packages can be installed to format the document following specific style guides, such as IEEE, ASME, AIP, Nature.

The following publishers provide their LaTeX templates/guidelines: 

Referencing in LaTeX on Overleaf

Overleaf, a LaTeX editor, allows users to include references with the following options: 

  • Manually create a new .bib file: On the top of the editor, click New File icon to create a new bibliography file (.bib). Add references to the file. 
  • Upload an existing .bib file: Click the Upload icon. Select an existing .bib file from the local drive and upload it to the project site. 
  • Create a .bib file starting from an Overleaf template: Choose a template in the Overleaf Gallery and create a new project.

Check the following support pages as needed: 

Overleaf also supports Natbib and BibLaTeX

SFU LaTeX resources

Online books 

Overleaf professional account

Please refer to the Computing Science Citing and writing guide for information about citation styles, reference managers, and avoiding plagiarism. 

If you need help, please contact Shiyi Xie, Liaison Librarian at 778-782-8023 or shiyi_xie@sfu.ca or Ask a librarian

Owned by: Shiyi Xie
Last revised: 2024-08-08