返回所有模板

参考文献

查看 PDF
分类:Academic
许可证:免费使用 (MIT)
摘要:

独立的参考文献和引用模板

标签:Academic
Loading preview...

A bibliography template in LaTeX with natbib

This bibliography template in LaTeX is a worked reference sheet for citing sources with natbib. It compiles to a short document that shows each citation command next to its output and ends with a reference list covering the source types you meet most often: a book, an edition of a textbook, journal articles, a conference paper, a web page with an access date, a PhD thesis, a technical report and a chapter in an edited book. The entries are formatted in an author-year, APA-like style.

The document uses the standard article class with 1 inch margins. Citation examples cover parenthetical \citep, textual \citet, \citeauthor, \citeyear and multiple keys in one command. The reference list is written by hand in a thebibliography environment, with each \bibitem carrying an [Author, Year] label that natbib reads to build the author-year citations, so it needs no .bib file and no BibTeX run. That makes it a useful LaTeX bibliography example to copy entries from, and a quick way to see how natbib behaves before you move a real project to BibTeX. A closing section lists common BibTeX styles. For an annotated list of sources, use the annotated bibliography template.

What is included

  • natbib in its default author-year mode
  • Examples of \citep, \citet, \citeauthor and \citeyear
  • Ten reference entries across seven source types
  • Notes on .bib files and a list of common BibTeX styles

How to use it

  1. Click Open as Template to edit in Octree, or View Source and paste the code into Overleaf or a local references.tex.
  2. Compile with pdfLaTeX, twice, so the citations resolve. No BibTeX run is needed for the template as written.
  3. Replace the sample \bibitem entries with your sources, keeping the [Author, Year] label and a unique key.
  4. Cite each key in the text with \citep or \citet.

Customise the template

Move the entries to a .bib file. For more than a handful of sources, let BibTeX format the list. Save the entries in references.bib, delete the thebibliography environment and keep two lines; the citation commands do not change:

% references.bib
@book{knuth1984,
  author    = {Knuth, Donald E.},
  title     = {The {\TeX}book},
  publisher = {Addison-Wesley},
  year      = {1984}
}

% in the .tex file, where thebibliography was
\bibliographystyle{apalike}
\bibliography{references}

Give long author lists a full form. natbib accepts a label of the form [Short(Year)Long]. \citet then prints the short form and \citet* the full author list:

\bibitem[Cormen et~al.(2009)Cormen, Leiserson, Rivest, and Stein]{cormen2009}
Cormen, T. H., Leiserson, C. E., Rivest, R. L., and Stein, C. (2009).
\textit{Introduction to Algorithms}, 3rd edition. MIT Press.

% \citet{cormen2009}  -> Cormen et al. (2009)
% \citet*{cormen2009} -> Cormen, Leiserson, Rivest, and Stein (2009)

Switch to numbered citations. Load natbib with the numbers option and every \citep prints a bracketed number instead of author and year; add sort&compress to turn [3, 1, 2] into [1–3]:

\usepackage[numbers,sort&compress]{natbib}

Related templates: annotated bibliography, MLA works cited and literature review.

Bibliography template FAQ

Why does changing \bibliographystyle not change the reference list?
Because the template writes the reference list by hand in a thebibliography environment. \bibliographystyle only affects lists that BibTeX generates from a .bib file, so the apalike line in the template has no visible effect. To switch styles with one line, move the entries to references.bib and replace the environment with \bibliographystyle{...} and \bibliography{references}.
Why do references I never cite still appear?
Every \bibitem in a hand-written thebibliography is printed, cited or not; the sample includes Miller, Taylor and White entries that the text never cites. With BibTeX only cited entries appear, and \nocite{*} adds every entry in the .bib file.
Should I use natbib or biblatex?
This template uses natbib, which works with BibTeX and with the bibliography styles most journals still supply as .bst files. biblatex with the biber backend is more flexible (per-type formatting, multiple bibliographies, better Unicode support) but needs its own commands such as \addbibresource and \printbibliography. Check what your journal or university template expects before switching.
Does this bibliography template work in Overleaf?
Yes. It uses only the article class, geometry and natbib, and as written needs no BibTeX run, so it compiles in Overleaf, Octree or a local install with pdfLaTeX. Run it twice so the citations resolve.
Math powered使用 AI 编写 LaTeX

最佳 AI LaTeX 编辑器,Overleaf 替代品

Octree 帮助来自 15+ 所大学的研究人员使用 AI 更快地撰写研究论文

  • 使用 AI 生成精美的 TikZ 图表
  • 上传图片并无缝转换为 LaTeX
  • 获得撰写和格式化研究论文的即时帮助