.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:Basic Setup
Step 1: Create Your Main Document
Step 2: Create Your Bibliography File
Step 3: Compile Your Document
pdflatex main.tex
(first pass)bibtex main
(process bibliography)pdflatex main.tex
(incorporate citations)pdflatex main.tex
(finalize references)
Sample Article with Bibliography
Your Name
November 28, 2024
1 Introduction
According to [1], the theory of special relativity revolutionized physics. Later work by [2] expanded our understanding of the universe.
References
[1] Albert Einstein. On the electrodynamics of moving bodies. Annalen der Physik, 17:891–921, 1905.
[2] Stephen Hawking. A Brief History of Time. Bantam Books, New York, 1988.
BibTeX Entry Types
Common Entry Types
@article
@book
@inproceedings
@phdthesis
Complete Entry Types Reference
All BibTeX entry types with required and optional fields
All BibTeX entry types with required and optional fields
@article
Required: author, title, journal, yearOptional: volume, number, pages, month, doi, note
@book
Required: author/editor, title, publisher, yearOptional: volume/number, series, address, edition, month, isbn, note
@booklet
Required: titleOptional: author, howpublished, address, month, year, note
@inbook
Required: author/editor, title, chapter/pages, publisher, yearOptional: volume/number, series, type, address, edition, month, note
@incollection
Required: author, title, booktitle, publisher, yearOptional: editor, volume/number, series, type, chapter, pages, address, edition, month, note
@inproceedings / @conference
Required: author, title, booktitle, yearOptional: editor, volume/number, series, pages, address, month, organization, publisher, note
@manual
Required: titleOptional: author, organization, address, edition, month, year, note
@mastersthesis
Required: author, title, school, yearOptional: type, address, month, note
@misc
Required: noneOptional: author, title, howpublished, month, year, note, url
@phdthesis
Required: author, title, school, yearOptional: type, address, month, note
@proceedings
Required: title, yearOptional: editor, volume/number, series, address, month, publisher, organization, note
@techreport
Required: author, title, institution, yearOptional: type, number, address, month, note
@unpublished
Required: author, title, noteOptional: month, year
Citation Commands
Basic Citation Commands
Command | Output (plain style) | Output (author-year) |
---|---|---|
\cite | [1] | (Einstein, 1905) |
\cite | [1, 2] | (Einstein, 1905; Hawking, 1988) |
\cite[p.~42] | [2, p. 42] | (Hawking, 1988, p. 42) |
\citet | — | Einstein (1905) |
\citep | — | (Einstein, 1905) |
Bibliography Styles
Standard BibTeX Styles
plain
\bibliographystyle
Entries sorted alphabetically by author, numbered [1], [2], [3]…
[2] S. Hawking. A Brief History of Time…
alpha
\bibliographystyle
Labels like [Ein05], [Haw88] based on author and year
[Haw88] S. Hawking. A Brief History of Time…
abbrv
\bibliographystyle
Like plain but with abbreviated first names, journal names
[2] S. Hawking. A Brief History of Time…
unsrt
\bibliographystyle
Entries in order of citation, not alphabetically
[2] A. Einstein. On the electrodynamics…
Author-Year Styles (natbib)
Custom Bibliography Styles
.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 yearconference2023author
- e.g.,icml2023smith
❌ Poor Key Names
paper1
,paper2
- not descriptivemy-favorite-paper
- too subjectiveref: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
Bibliography not appearing
Bibliography not appearing
- Missing
\bibliography{filename}
command - Incorrect filename (don’t include .bib extension)
- Didn’t run BibTeX:
bibtex main
- Need additional LaTeX passes
Citation shows as [?] or bold
Citation shows as [?] or bold
- Typo in citation key
- Entry not in .bib file
- BibTeX compilation failed
- Multiple .bib files not all included
Incorrect sorting or formatting
Incorrect sorting or formatting
- Wrong bibliography style
- Missing required fields
- Special characters not escaped
- Verify all required fields are present
- Use
{}
to preserve capitalization - Check .bst file compatibility
Encoding and special character issues
Encoding and special character issues
Modern Alternatives
BibLaTeX (Advanced Users)
- Better Unicode support
- More entry types and fields
- Customizable citation styles
- Multiple bibliographies in one document
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
BibTeX Quick Reference
Compilation Order
- pdflatex main.tex
- bibtex main
- pdflatex main.tex
- pdflatex main.tex
Common Styles
- plain - Numbered, alphabetical
- alpha - Author-year labels
- abbrv - Abbreviated names
- unsrt - Citation order
- apalike - APA style
Next Steps
Citation Styles Guide
BibLaTeX Tutorial
Bibliography Templates
Thesis Bibliography
.bib
file and cite your references - we take care of the compilation sequence for you.