LaTeX/手动管理参考文献
外观
< LaTeX
参考文献列表只不过是一个列表,一个带有锚点或键的列表,用于正确引用不同的列表项。列表环境称为 thebibliography
,它接受一个必填参数。列表中的每个项目都以 \bibitem{bibkey}
开头。
引用参考文献中的条目与标签和引用机制类似。标签是赋予 bibitem
的键,引用通过 \cite
完成。
\documentclass{article}
\usepackage{url}
\begin{document}
I doubt that there is any useful information here~\cite{wikibook}.
All we know is limited, apart from knowing the answer we all know. Or do we? Wombat and Koala have discovered some interesting things~\cite{wombat2016}.
Some people are too nosy. What can happen to them is described by Laura Lion~\cite[p.~9]{lion2010}.
\begin{thebibliography}{1}
\bibitem{wombat2016}
Walther Wombat and Klaus Koala,
``The true meaning of 42'' in: Journal of modern skepticism;
2016
\bibitem{lion2010}
Laura Lion, Gabrielle Giraffe and Carl Capybara,
``The dangers of asking the wrong question'', publishing house;
2010
\bibitem{wikibook}
manually managing references,
\url{https://wikibooks.cn/wiki/LaTeX/Manually_Managing_References}
2016
\end{thebibliography}
\end{document}
|
cite
返回列表中列表项的编号,并用方括号括起来。可以提供一个可选参数在方括号内添加一些文本。
正如人们所见,没有排序。排序留给文档作者。
在您的参考文献中,样式和标点符号必须一致。如果您难以记住将标题放在引号中,请定义一个辅助命令并使用它。上图中还有另一个不一致之处。你能找到它吗?
\documentclass{article}
\usepackage{url}
\newcommand{\bibTitle}[1]{``#1''}
\begin{document}
I doubt that there is any useful information here~\cite{wikibook}.
All we know is limited, apart from knowing the answer we all know. Or do we? Wombat and Koala have discovered some interesting things~\cite{wombat2016}.
Some people are too nosy. What can happen to them is described by Laura Lion~\cite[p.~9]{lion2010}.
\begin{thebibliography}{1}
\bibitem{wikibook}
\bibTitle{Manually Managing References},
\url{https://wikibooks.cn/wiki/LaTeX/Manually_Managing_References};
2016
\bibitem{wombat2016}
Walther Wombat and Klaus Koala,
\bibTitle{The true meaning of 42} in: Journal of modern skepticism;
2016
\bibitem{lion2010}
Laura Lion, Gabrielle Giraffe and Carl Capybara,
\bibTitle{The dangers of asking the wrong question}, publishing house;
2010
\end{thebibliography}
\end{document}
|
您可能会问自己环境的必填参数在做什么。您可以为列表中的任何条目定义自己的标签。在参数中使用您最长的条目。使用该可选参数,您可以创建作者年份样式。
\documentclass{article}
\usepackage{url}
\newcommand{\bibTitle}[1]{``#1''}
\begin{document}
I doubt that there is any useful information here~\cite{wikibook}.
All we know is limited, apart from knowing the answer we all know. Or do we? Wombat and Koala have discovered some interesting things~\cite{wombat2016}.
Some people are too nosy. What can happen to them is described by Laura Lion~\cite[p.~9]{lion2010}.
\begin{thebibliography}{Wombat, 2016}
\bibitem[Wikibook]{wikibook}
\bibTitle{Manually Managing References},
\url{https://wikibooks.cn/wiki/LaTeX/Manually_Managing_References};
2016
\bibitem[Wombat, 2016]{wombat2016}
Walther Wombat and Klaus Koala,
\bibTitle{The true meaning of 42} in: Journal of modern skepticism;
2016
\bibitem{lion2010}
Laura Lion, Gabrielle Giraffe and Carl Capybara,
\bibTitle{The dangers of asking the wrong question}, publishing house;
2010
\end{thebibliography}
\end{document}
|
您可以加载 natbib
包来帮助您进行文本引用。thebibliography
环境需要更严格的格式。
\documentclass{article}
\usepackage[numbers,round]{natbib}
\usepackage{url}
\newcommand{\bibTitle}[1]{``#1''}
\begin{document}
I doubt that there is any useful information here~\citep{wikibook}.
All we know is limited, apart from knowing the answer we all
know. Or do we? Some very interesting things have been found by~\citet{wombat2016}.
Some people are too nosy. What can happen to them is described by
\citeauthor{lion2010}~\cite[compare][p.~9]{lion2010}.
\begin{thebibliography}{1}
\bibitem[Wikibooks(2017)]{wikibook}
\bibTitle{Manually Managing References},
\url{https://wikibooks.cn/wiki/LaTeX/Manually_Managing_References};
2016
\bibitem[Wombat and Koala(2017)]{wombat2016}
Walther Wombat and Klaus Koala,
\bibTitle{The true meaning of 42} in: Journal of modern skepticism;
2016
\bibitem[Lion et al.(2010)Laura Lion, Gabrielle Giraffe and Carl Capybara]{lion2010}
Laura Lion, Gabrielle Giraffe and Carl Capybara,
\bibTitle{The dangers of asking the wrong question}, publishing house;
2010
\end{thebibliography}
\end{document}
|
bibitem
的可选参数包含开头的简短作者列表,括号内的年份和结尾的长作者列表。请注意,括号周围没有空格,它们将出版年份与结尾的短(开头)和长列表分隔开。
natbib
引入了新的命令来引用和设置这些引用的样式,软件包手册将为您提供更多详细信息。
跟踪所有细节并检查一致性将花费大量时间。
chapterbib
包可用于在文档中制作分开的参考文献。重要的是内容也要分开,这意味着每个拥有自己参考文献的章节都需要在单独的文件中。在主文档中,使用 \include
将所有内容放在一起。以下示例在运行时创建这些额外文件。这种方法非常适合示例,但 filecontents
不应用于实际项目。
\begin{filecontents}{aster.tex}
\chapter{Aster}
I doubt that there is any useful information here~\citep{wikibook}.
All we know is limited, apart from knowing the answer we all
know. Or do we? Some very interesting things have been found by~\citet{wombat2016}.
\begin{thebibliography}{1}
\bibitem[Wikibooks(2017)]{wikibook}
\bibTitle{Manually Managing References},
\url{https://wikibooks.cn/wiki/LaTeX/Manually_Managing_References};
2016
\bibitem[Wombat and Koala(2017)]{wombat2016}
Walther Wombat and Klaus Koala,
\bibTitle{The true meaning of 42} in: Journal of modern skepticism;
2016
\end{thebibliography}
\end{filecontents}
\begin{filecontents}{begonia.tex}
\chapter{Begonia}
All we know is limited, apart from knowing the answer we all
know. Or do we? Some very interesting things have been found by~\citet{wombat2016}.
Some people are too nosy. What can happen to them is described by Laura Lion~\cite[9]{lion2010}.
\begin{thebibliography}{1}
\bibitem[Wombat and Koala(2017)]{wombat2016}
Walther Wombat and Klaus Koala,
\bibTitle{The true meaning of 42} in: Journal of modern skepticism;
2016
\bibitem[Lion et al.(2010)Laura Lion, Gabrielle Giraffe and Carl Capybara]{lion2010}
Laura Lion, Gabrielle Giraffe and Carl Capybara,
\bibTitle{The dangers of asking the wrong question}, publishing house;
2010
\end{thebibliography}
\end{filecontents}
\documentclass{report}
\usepackage{url}
\usepackage[numbers]{natbib}
\usepackage[sectionbib]{chapterbib}
\usepackage{mwepage}
\newcommand{\bibTitle}[1]{``#1''}
\begin{document}
\include{aster}
\include{begonia}
\end{document}|