如何用分号而不是逗号分隔两个引用标注?

如何用分号而不是逗号分隔两个引用标注?

我正在使用natbib包在 latex 中创建引文标注。使用 引入多个引文时\citep{citation1, citation2},我无法用分号将它们分隔开,因为这与\setcitestyle选项冲突。我该如何解决这个问题?

例子:

文本编辑器:

This is some example text where i try to refer to \citep{albus1971theory,ito1984cerebellum} their work.

电流输出:

This is some example text where i try to refer to (Novello et al., 2022, Teune et al., 2000) their work.

期望输出:

This is some example text where i try to refer to (Novello et al., 2022; Teune et al., 2000) their work.

我的代码:



%% preamble %%
\documentclass{dissertation}
\usepackage{natbib}
\setcitestyle{authoryear,open={(},close={)}}

%%  main file %%
\bibliographystyle{apalike}
{\footnotesize\bibliography{dissertation}}

文件中的条目dissertation.bib

@article{teune2000topography,
  title={Topography of cerebellar nuclear projections to the brain stem in the rat},
  author={Teune, TM and Van der Burg, J and Van Der Moer, J and Voogd, Jan and Ruigrok, TJH},
  journal={Progress in brain research},
  volume={124},
  pages={141--172},
  year={2000},
  publisher={Elsevier}
}

@article{novello2022systematic,
  title={A systematic review of direct outputs from the cerebellum to the brainstem and diencephalon in mammals},
  author={Novello, Manuele and Bosman, Laurens WJ and De Zeeuw, Chris I},
  journal={The Cerebellum},
  pages={1--30},
  year={2022},
  publisher={Springer}

答案1

你写了

我无法用分号分隔[引文标注],因为它与\setcitestyle选项冲突

这一主张不合逻辑的推论. 只是因为你正在运行

\setcitestyle{authoryear,open={(},close={)}}

不是意味着您无法设置其他选项。我建议您添加选项citesep={;}以指定您喜欢的引文标注分隔符。顺便说一句,您可能还想将选项简化open={(},close={)}round

我不明白您的帖子的意思是您似乎想要强制执行natbib引文管理包的实际默认行为。您的代码(可能是神秘的dissertation文档类?)是否包含覆盖默认行为的\bibpunctand/or指令?\setcitestylecitesep={;}

在此处输入图片描述

\documentclass{article} % I don't have the 'dissertation' document class

\begin{filecontents}[overwrite]{dissertation.bib} % create bib file

@article{teune2000topography,
  title={Topography of cerebellar nuclear projections to the brain stem in the rat},
  author={Teune, T M and Van der Burg, J and Van Der Moer, J and Voogd, Jan and Ruigrok, T J H},
  journal={Progress in Brain Research},
  volume={124},
  pages={141--172},
  year={2000},
  publisher={Elsevier}
}

@article{novello2022systematic,
  title={A systematic review of direct outputs from the cerebellum to the brainstem and diencephalon in mammals},
  author={Novello, Manuele and Bosman, Laurens W J and De Zeeuw, Chris I},
  journal={The Cerebellum},
  pages={1--30},
  year={2022},
  publisher={Springer}
}
\end{filecontents}

\usepackage{natbib}
\setcitestyle{authoryear,
              round,
              citesep={;} % that's the default, actually
             }
\bibliographystyle{apalike}

\begin{document}
\noindent
\citep{teune2000topography,novello2022systematic}
\bibliography{dissertation}
\end{document}

相关内容