How to Use LaTeX for Bibliography: A Comprehensive Guide

Turn a DOI into a verified BibTeX record, cite it in a two-file LaTeX project, and fix missing references using a working example you can download.

By Scholarly4 min read

The citation key in your LaTeX text must match a record in your .bib file. BibTeX uses the key to pull the authors, title and journal into your reference list. Before giving it a record, check that the paper supports the sentence you want to write.

Download the working BibTeX project (.zip). It contains main.tex and references.bib. Upload the ZIP as a project in Overleaf, or unzip it to compile locally. The finished citation appears below.

How to Use LaTeX for Bibliography: A Comprehensive Guide editorial illustration

Compiled LaTeX excerpt. Naegle’s recommendation ends with citation number 1, and the references list contains her 2021 PLOS Computational Biology article.

Check the paper behind a DOI

A DOI is a persistent identifier. To open one, put https://doi.org/ in front of it. Try 10.1371/journal.pcbi.1009554. The landing page identifies Kristen M. Naegle’s 2021 article, Ten simple rules for effective presentation slides, in PLOS Computational Biology. The article number is e1009554. Keep the “e” when comparing it with your reference. Open the paper via its DOI.

Now check the sentence. Under Rule 1, Naegle recommends giving each slide one central idea. That supports the sentence in the sample project. Suppose an AI draft instead says, “One idea per slide improved exam scores by 20%.” The DOI, title and author all match, but Rule 1 reports no such experiment or result. Remove the number unless you can identify a study that actually measured it.

If your DOI opens a different paper, search by title and first author and compare the publisher’s record. If the match remains uncertain, leave the citation out until you find the source. Some works have no DOI, and some DOIs are registered with agencies other than Crossref. A blank Crossref search alone cannot settle whether the work exists. Crossref metadata search.

Get the BibTeX record

For the sample paper, open Crossref’s BibTeX record and save the text as references.bib. The same lookup works from a terminal.

curl -fL 'https://api.crossref.org/works/10.1371/journal.pcbi.1009554/transform/application/x-bibtex' -o references.bib

Run this in a fresh project folder. It writes a new references.bib. If you already have a bibliography, append the new entry in your editor so you keep the other records.

Find the first line beginning @article{Naegle_2021,. The text between the opening brace and the comma is the citation key. Exporters can choose different keys for the same paper. Copy yours exactly, including its capitalization and underscore. Crossref’s guide to retrieving citation formats.

Cite the record and build the reference list

Put this in main.tex in the same folder as references.bib.

\documentclass{article}
\begin{document}
Naegle recommends building each presentation slide around one idea
\cite{Naegle_2021}.

\bibliographystyle{plain}
\bibliography{references}
\end{document}

The \cite command selects the record. The plain style produces a numbered citation, and \bibliography{references} names the file without its .bib extension. In Overleaf, choose Recompile. With a local TeX installation that includes latexmk, run latexmk -pdf main.tex. For a course or journal submission, use the bibliography style specified in its template. Overleaf’s BibTeX guide.

When the PDF shows a question mark

What you see What to check
[?] beside one sentence Compare the key inside \cite{...} with the key after @article{ in the saved record. Then recompile.
Every citation is missing Check the filename and folder. Run a build that includes BibTeX. A single pdflatex pass cannot finish a new bibliography.
A record is in the file but absent from the list The sample prints cited entries. Add a citation at the sentence the paper supports.
A DOI is in the record but absent from the PDF The classic plain style omits the DOI field. If the publisher requires visible DOIs, use its supplied style or a compatible style that prints them.

For a final check, open the DOI from your source record and read the passage behind your citation. A clean compile tells you the key works. The paper tells you what you can claim.