我正在写一篇评论类型的文件,经常需要在一条\cite{}
命令中引用 5 篇以上的论文。我似乎找不到任何关于如何最好地处理这个问题的文档。问题如下所示:
This sentence needs a lot of references\cite{paper1,paper2,paper3,paper4,paper5,paper6,paper....}.
我不喜欢一行超过 80 个字符,所以我真的想要一种更“狭窄”的方式来做到这一点。只要有可能,我就会将参考列表应该位于其后的单词移到其自己的行,但这很少能完全解决问题。我曾尝试这样做:
... references\cite{paper12,paper13,paper14}
~\cite{paper15,paper16}
但如果这些论文都是连续的,就会导致范围的中断:
我也尝试过逃避新路线:
...references\cite{paper12,paper13,paper14,\
paper15,paper16}
但那不会建立。
我怎样才能分割我\cite{}
的,以便到处都不至于出现极长的线条?
我正在使用 nat-bib,并且\usepackage{rsc}
该包中的参考书目样式是必需的。
答案1
因为
- TeX 将单个换行符视为空格,并且
- 引用关键字名称列表中元素间的空格不重要,
无需对换行符进行特殊转义。以下任何一种策略都会产生相同的输出:
\documentclass{article}
\usepackage[super,sort&compress]{natbib}
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%% 80-CHAR %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
This sentence needs a lot of references\cite{bertram,doody,aksin,angenendt,gillies,glashow,herrmann}.
This sentence needs a lot of references\cite{bertram, doody, aksin, angenendt, gillies, glashow, herrmann}.
This sentence needs a lot of references\cite{bertram,doody,aksin,angenendt,%
gillies,glashow,herrmann}.
This sentence needs a lot of references\cite{bertram,doody,aksin,angenendt,
gillies,glashow,herrmann}.
This sentence needs a lot of references%
\cite{bertram,doody,aksin,angenendt,gillies,glashow,herrmann}.
This sentence needs a lot of references%
\cite{bertram, doody, aksin, angenendt, gillies, glashow, herrmann}.
%%%%%%%%%%%%%%%%%%%%%%%% 80-CHAR %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliographystyle{plainnat}
\bibliography{biblatex-examples}
\end{document}
前两种情况的输入行长度超过 80 个字符,比较了按键之间没有空格和按键之间有空格的情况。其他情况展示了缩短输入行的几种可能方法。
为了举例,我使用了一个示例.bib
文件,如果您安装了该软件包,该文件应该在您的系统上biblatex
。