LaTeX BibTeX 指南 - 基于 .bib 的文献管理
BibTeX 是 LaTeX 生态中经典的参考文献系统。文献数据存放在 .bib 文件中,正文通过引用键调用,再由样式规则生成参考文献列表。
What is BibTeX?
Section titled “What is BibTeX?”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.
Minimal Working Example
Section titled “Minimal Working Example”@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}Quick Start
Section titled “Quick Start”- Create
references.bib. - Add references with complete metadata.
- Cite in LaTeX with
\cite{...}. - Compile with either
latex -> bibtex -> latex -> latexorlatex -> biber -> latex -> latex.
Common Mistakes
Section titled “Common Mistakes”- Missing commas/braces in
.bib. - Duplicate citation keys.
- Missing required fields.
- Wrong compile order.
最佳实践:尽早使用 BibTeX 管理工具
Section titled “最佳实践:尽早使用 BibTeX 管理工具”手动维护可以完成基础任务,但项目变大后容易出现重复、格式不一致和维护成本上升。使用工具更适合长期与协作场景。
CiteDrive benefits
Section titled “CiteDrive benefits”- One-click import from browser sources.
- Collaborative reference management.
- Direct Overleaf integration without manual
.bibsyncing. - Cloud-based access from any device.
- Beginner-friendly editing.
- Supports BibLaTeX workflows.
Short comparison
Section titled “Short comparison”- Manual BibTeX: manual editing, error-prone, hard to sync.
- CiteDrive: automated import, collaboration, seamless integration.
BibTeX 工作流程
Section titled “BibTeX 工作流程”- 在
.bib文件中维护条目。 - 在正文用
\cite{Hemingway1952}这类键进行引用。 - 通过 LaTeX/BibTeX 编译生成最终参考文献。
手动管理的局限
Section titled “手动管理的局限”- 细小语法错误会导致编译失败。
- 大型文献库难以长期保持一致。
- 团队协作中常见重复条目和键冲突。
BibTeX 与 BibLaTeX/Biber
Section titled “BibTeX 与 BibLaTeX/Biber”BibTeX 依然常用,尤其在必须使用 .bst 样式的模板中。BibLaTeX + Biber 在 Unicode、多语言支持和输出定制方面更灵活。
- CiteDrive - 现代 Web BibTeX 管理方案,适合协作与规范化维护
.bib。 - Zotero + Better BibTeX
- JabRef