Skip to main content
Master professional bibliography management in LaTeX using BibTeX. This comprehensive guide covers everything from basic citations to advanced bibliography customization for academic papers, theses, and publications.
Quick start: BibTeX automates bibliography formatting in LaTeX. Create a .bib file with your references, cite them with \cite{key}, and LaTeX handles the formatting based on your chosen style.Prerequisites: Basic LaTeX knowledge. For citations basics, see Bibliography & Citations.

What You’ll Learn

  • ✅ How BibTeX works with LaTeX
  • ✅ Creating and managing .bib files
  • ✅ Citation commands and variations
  • ✅ Bibliography styles (plain, alpha, abbrv, etc.)
  • ✅ Advanced customization techniques
  • ✅ Best practices for reference management
  • ✅ Troubleshooting common issues

How BibTeX Works

BibTeX is a bibliography management tool that works alongside LaTeX to handle citations and references automatically. Here’s the workflow:

BibTeX Workflow

The BibTeX workflow follows four steps: (1) Create a .bib file to store your references in a structured format, (2) Cite references in your .tex document using \cite commands, (3) Compile using LaTeX followed by BibTeX and then LaTeX again, (4) Output shows your formatted bibliography with properly numbered or author-year citations matching your chosen style.

Basic Setup

Step 1: Create Your Main Document

Step 2: Create Your Bibliography File

Step 3: Compile Your Document

1

First LaTeX pass

pdflatex main.tex - Creates auxiliary files with citation information
2

Process bibliography

bibtex main - Reads .aux file, processes .bib file, creates .bbl file
3

Second LaTeX pass

pdflatex main.tex - Incorporates bibliography entries
4

Final LaTeX pass

pdflatex main.tex - Resolves all cross-references
Rendered output:

Rendered Output

The compiled document displays “Sample Article with Bibliography” as the centered title, followed by the author name and date. The Introduction section shows in-text citations as bracketed numbers [1] and [2]. The References section at the bottom lists the formatted bibliography entries: [1] shows Einstein’s article with author, title in sentence case, journal name in italics, volume, pages, and year; [2] shows Hawking’s book with author, title in italics, publisher, city, and year.

BibTeX Entry Types

Common Entry Types

@article

Journal articles, magazine articles

@book

Books with publisher

@inproceedings

Conference papers

@phdthesis

PhD dissertations

Complete Entry Types Reference

@article

Required: author, title, journal, year
Optional: volume, number, pages, month, doi, note

@book

Required: author/editor, title, publisher, year
Optional: volume/number, series, address, edition, month, isbn, note

@booklet

Required: title
Optional: author, howpublished, address, month, year, note

@inbook

Required: author/editor, title, chapter/pages, publisher, year
Optional: volume/number, series, type, address, edition, month, note

@incollection

Required: author, title, booktitle, publisher, year
Optional: editor, volume/number, series, type, chapter, pages, address, edition, month, note

@inproceedings / @conference

Required: author, title, booktitle, year
Optional: editor, volume/number, series, pages, address, month, organization, publisher, note

@manual

Required: title
Optional: author, organization, address, edition, month, year, note

@mastersthesis

Required: author, title, school, year
Optional: type, address, month, note

@misc

Required: none
Optional: author, title, howpublished, month, year, note, url

@phdthesis

Required: author, title, school, year
Optional: type, address, month, note

@proceedings

Required: title, year
Optional: editor, volume/number, series, address, month, publisher, organization, note

@techreport

Required: author, title, institution, year
Optional: type, number, address, month, note

@unpublished

Required: author, title, note
Optional: month, year

Citation Commands

Basic Citation Commands

Rendered output examples:

Rendered Output

Citation commands produce different outputs depending on the bibliography style. With the plain style: \cite produces [1], multiple citations produce [1, 2], and page references produce [2, p. 42]. With author-year styles (natbib): \cite produces (Einstein, 1905), multiple citations produce (Einstein, 1905; Hawking, 1988), \citet produces Einstein (1905) for textual citations, and \citep produces (Einstein, 1905) for parenthetical citations.

Bibliography Styles

Standard BibTeX Styles

plain

\bibliographystyle{plain}Entries sorted alphabetically by author, numbered [1], [2], [3]…Example:
  • [1] A. Einstein. On the electrodynamics…
  • [2] S. Hawking. A Brief History of Time…

alpha

\bibliographystyle{alpha}Labels like [Ein05], [Haw88] based on author and yearExample:
  • [Ein05] A. Einstein. On the electrodynamics…
  • [Haw88] S. Hawking. A Brief History of Time…

abbrv

\bibliographystyle{abbrv}Like plain but with abbreviated first names, journal namesExample:
  • [1] A. Einstein. On the electrodynamics… Ann. Phys.
  • [2] S. Hawking. A Brief History of Time…

unsrt

\bibliographystyle{unsrt}Entries in order of citation, not alphabeticallyExample:
  • [1] S. Hawking. A Brief History of Time…
  • [2] A. Einstein. On the electrodynamics…

Author-Year Styles (natbib)

Custom Bibliography Styles

Many journals and institutions provide their own .bst files. Common examples:
  • IEEEtran.bst - IEEE Transactions
  • ACM-Reference-Format.bst - ACM publications
  • apa.bst - American Psychological Association
  • vancouver.bst - Biomedical journals
  • nature.bst - Nature journals

Managing Large Bibliographies

Organizing Your .bib File

Using Multiple .bib Files

String Definitions for Consistency

Advanced Features

Cross-References

Custom Fields and Notes

Special Characters and Formatting

Best Practices

1. Consistent Key Naming

Good Key Naming Conventions
  • author2023keyword - e.g., einstein1905relativity
  • author2023a, author2023b - for multiple papers same year
  • conference2023author - e.g., icml2023smith
Poor Key Names to Avoid
  • paper1, paper2 - not descriptive
  • my-favorite-paper - too subjective
  • ref:2023/05/28 - uses special characters

2. Complete Information

Always include:
  • DOI when available - for reliable access
  • URL for online resources
  • ISBN for books
  • Abstract for searchability
  • Keywords for organization

3. Version Control

Troubleshooting

Common causes:
  1. Missing \bibliography{filename} command
  2. Incorrect filename (don’t include .bib extension)
  3. Didn’t run BibTeX: bibtex main
  4. Need additional LaTeX passes
Solution:
Common causes:
  1. Typo in citation key
  2. Entry not in .bib file
  3. BibTeX compilation failed
  4. Multiple .bib files not all included
Debugging:
Common causes:
  1. Wrong bibliography style
  2. Missing required fields
  3. Special characters not escaped
Solutions:
  • Verify all required fields are present
  • Use {} to preserve capitalization
  • Check .bst file compatibility
For UTF-8 support:
For special characters:

Modern Alternatives

BibLaTeX (Advanced Users)

BibLaTeX is a modern replacement for BibTeX with more features:
  • Better Unicode support
  • More entry types and fields
  • Customizable citation styles
  • Multiple bibliographies in one document
Learn more about advanced bibliography management in our comprehensive Bibliography & Citations guide.

Reference Managers

Popular tools that export to BibTeX:
  • Zotero - Free, open-source
  • Mendeley - Free with Elsevier account
  • JabRef - BibTeX-specific manager
  • EndNote - Commercial, widely used
  • Paperpile - Modern web-based

Quick Reference Card

Rendered Output

BibTeX Quick Reference shows three key areas: Essential Commands include \bibliographystyle for setting the style, \bibliography for linking the .bib file, \cite for citations, and \nocite for including uncited references. Compilation Order requires running pdflatex, then bibtex, then pdflatex twice more. Common Styles include plain (numbered, alphabetical), alpha (author-year labels like [Ein05]), abbrv (abbreviated names), unsrt (citation order), and apalike (APA format).

Next Steps

Bibliography & Citations

Explore different citation formats and journal requirements

Cross-Referencing

Learn to reference figures, tables, and sections

Article Templates

Ready-to-use document templates with bibliographies

Thesis Guide

Managing references for large documents
LaTeX Cloud Studio handles BibTeX compilation automatically! Simply upload your .bib file and cite your references - we take care of the compilation sequence for you.