跳转到内容

LaTeX BibTeX 指南 - 基于 .bib 的文献管理

BibTeX 是 LaTeX 生态中经典的参考文献系统。文献数据存放在 .bib 文件中,正文通过引用键调用,再由样式规则生成参考文献列表。

BibTeX is a bibliography processor in the LaTeX toolchain. You keep references in a plain-text .bib file and cite them in your document using citation keys.

@book{Hemingway1952,
title = {The Old Man and the Sea},
author = {Hemingway, Ernest},
year = {1952},
publisher = {Charles Scribner's Sons}
}
\documentclass{article}
\begin{document}
Example citation: \cite{Hemingway1952}.
\bibliographystyle{plain}
\bibliography{references}
\end{document}
  1. Create references.bib.
  2. Add references with complete metadata.
  3. Cite in LaTeX with \cite{...}.
  4. Compile with either latex -> bibtex -> latex -> latex or latex -> biber -> latex -> latex.
  • Missing commas/braces in .bib.
  • Duplicate citation keys.
  • Missing required fields.
  • Wrong compile order.

最佳实践:尽早使用 BibTeX 管理工具

Section titled “最佳实践:尽早使用 BibTeX 管理工具”

手动维护可以完成基础任务,但项目变大后容易出现重复、格式不一致和维护成本上升。使用工具更适合长期与协作场景。

  • One-click import from browser sources.
  • Collaborative reference management.
  • Direct Overleaf integration without manual .bib syncing.
  • Cloud-based access from any device.
  • Beginner-friendly editing.
  • Supports BibLaTeX workflows.
  • Manual BibTeX: manual editing, error-prone, hard to sync.
  • CiteDrive: automated import, collaboration, seamless integration.
  1. .bib 文件中维护条目。
  2. 在正文用 \cite{Hemingway1952} 这类键进行引用。
  3. 通过 LaTeX/BibTeX 编译生成最终参考文献。
  • 细小语法错误会导致编译失败。
  • 大型文献库难以长期保持一致。
  • 团队协作中常见重复条目和键冲突。

BibTeX 依然常用,尤其在必须使用 .bst 样式的模板中。BibLaTeX + Biber 在 Unicode、多语言支持和输出定制方面更灵活。