Citations and bibliography
此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
标注你的来源
- 学术写作必须说明事实的出处。LaTeX 把这件事做得很整洁。
- 你维护一份来源列表,每条都有一个关键字,然后在正文里引用这个关键字。
参考文献
- 在
thebibliography环境里列出来源,每一条都是一个\bibitem:
\begin{thebibliography}{9}
\bibitem{lamport} Leslie Lamport. \emph{LaTeX}. 1986.
\end{thebibliography}
- 那个
{9}只是表示“编号宽度为一位”。lamport是你自己取的关键字。
在正文中引用
- 在文档的任何地方写
\cite{lamport}:
LaTeX is powerful~\cite{lamport}.
- 使用此手册时,
thebibliography中的编号遵循\bibitem条目的顺序,而非首次引用的顺序。单个首次条目对应[1];在另一条目前插入条目会改变后续条目的编号。
常见错误
- 不匹配任何
\bibitem的键。 使用\bibitem{knuth}配合\cite{knut}会打印出[?],日志显示LaTeX Warning: Citation 'knut' on page 1 undefined。PDF 仍能生成,因此请查找[?]。 - 仅编译一次。 引用(如
\ref)同样需要第二次运行才能显示其编号。 - 将参考文献置于导言区。
thebibliography属于文档内容的一部分:应放置在\end{document}之前。
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Cite the book in the sentence with \cite{lamport}, and add a matching \bibitem{lamport} entry inside the bibliography. The same key links the two.
点击“运行”编译并预览 PDF。
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Add a second source. Give the second book a \bibitem{knuth} entry, then cite it in the sentence with \cite{knuth}. In this manual bibliography, numbers follow bibitem entry order: Knuth is [2] when Lamport is listed first.
点击“运行”编译并预览 PDF。
难度 2/5 · 今日首次完成可获 140 金币及少量额外奖励
Cite two sources at once by listing both keys in one command, separated by a comma: \cite{lamport,knuth}. LaTeX prints both numbers in one pair of brackets.
点击“运行”编译并预览 PDF。