Guia BibTeX para LaTeX - gerenciamento bibliografico com arquivos .bib
BibTeX is the classic bibliography system for LaTeX. It stores references in a .bib file, links them by citation keys, and formats output with a selected bibliography style.
This page is a practical quick start for beginners and a compact reference for advanced users.
What is BibTeX?
Seção intitulada “What is BibTeX?”BibTeX is a bibliography processor in the LaTeX toolchain. You keep references in a plain-text .bib database, cite them in your .tex file with keys, and generate the final bibliography with a selected style.
Minimal Working Example
Seção intitulada “Minimal Working Example”Example .bib entry
Seção intitulada “Example .bib entry”@book{Hemingway1952, title = {The Old Man and the Sea}, author = {Hemingway, Ernest}, year = {1952}, publisher = {Charles Scribner's Sons}}Example LaTeX citation usage
Seção intitulada “Example LaTeX citation usage”\documentclass{article}\begin{document}Example citation: \cite{Hemingway1952}.\bibliographystyle{plain}\bibliography{references}\end{document}Quick Start
Seção intitulada “Quick Start”- Create a
.bibfile (for example,references.bib). - Add references with complete metadata (
author,title,year, etc.). - Cite entries in LaTeX with keys like
\cite{Hemingway1952}. - Compile:
- BibTeX flow:
latex -> bibtex -> latex -> latex - BibLaTeX/Biber flow:
latex -> biber -> latex -> latex
- BibTeX flow:
Common Mistakes
Seção intitulada “Common Mistakes”- Small syntax errors can break builds (
{}, commas, or missing fields). - Reusing the same key for different references causes collisions.
- Missing required fields can produce incomplete citations.
- Running the wrong compile sequence leaves citations unresolved.
Limits of Manual BibTeX Workflows
Seção intitulada “Limits of Manual BibTeX Workflows”- Editing
.bibfiles by hand is error-prone. - Formatting and debugging references can be time-consuming.
- Syncing
.bibfiles across writing tools is often manual. - Collaboration increases duplicates and key conflicts.