我可以使用作者年份引用多书目吗

我可以使用作者年份引用多书目吗

我想要一个使用作者-年份格式的参考书目。应该有没有标签。但是,我不知道如何使用多书目来实现这一点。我尝试使用\usepackage[round]{natbib},但 latex 告诉我“参考书目与作者年份引用不兼容”。

\documentclass{scrartcl}
\usepackage[round]{natbib}
\usepackage{multibib}

\newcites{A}{References2}

\begin{document}
Reference without prefix \cite{Creighton2006} and a reference with prefix \citeA{Johnson2000}.

\bibliographystyle{plain}
\bibliography{library}                 

\bibliographystyleA{plain}
\bibliographyA{library}                   

\end{document}

包含两个参考文献的库 bibtex 文件如下所示:

@article{Johnson2000,
author = {Johnson, W Lewis and Rickel, Jeff W and Lester, James C},
journal = {International Journal of Artificial Intelligence in Education},
number = {11},
pages = {47--78},
title = {{Animated pedagogical agents: face-to-face interaction in interactive learning environments}},
volume = {Internatio},
year = {2000}
}
@inproceedings{Creighton2006,
author = {Creighton, Oliver and Ott, Martin and Bruegge, Bernd},
booktitle = {Requirements Engineering, 14th IEEE International Conference},
isbn = {0769525555},
pages = {109--118},
publisher = {IEEE},
title = {{Software cinema-video-based requirements engineering}},
url = {http://ieeexplore.ieee.org/xpls/abs{\_}all.jsp?arnumber=1704054},
year = {2006}
}

答案1

根据给定的代码,您应该将样式更改plainplainnat

下列 MWE 命名mwe.tex

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@inproceedings{Creighton2006,
  author    = {Creighton, Oliver and Ott, Martin and Bruegge, Bernd},
  booktitle = {Requirements Engineering, 14th IEEE International Conference},
  isbn      = {0769525555},
  pages     = {109--118},
  publisher = {IEEE},
  title     = {{Software cinema-video-based requirements engineering}},
  url       = {http://ieeexplore.ieee.org/xpls/abs{\_}all.jsp?arnumber=1704054},
  year      = {2006},
}
\end{filecontents}
\begin{filecontents}{A.bib}
@article{Johnson2000,
  author  = {Johnson, W Lewis and Rickel, Jeff W and Lester, James C},
  journal = {International Journal of Artificial Intelligence in Education},
  number  = {11},
  pages   = {47--78},
  title   = {{Animated pedagogical agents: face-to-face interaction in 
              interactive learning environments}},
  volume  = {Internatio},
  year    = {2000},
}
\end{filecontents}


\documentclass{scrartcl}

\usepackage[round]{natbib} % <==========================================
\usepackage{multibib}

\newcites{A}{References2}

\begin{document}
Reference without prefix \cite{Creighton2006} and a reference with 
prefix \citeA{Johnson2000}.

\bibliographystyle{plainnat} % <========================================
\bibliography{\jobname}

\bibliographystyleA{plainnat} % <=======================================
\bibliographyA{A} % <===================================================
\end{document}

以及通常的编译链

pdflatex mwe.tex
bibtex mwe.aux
bibtex A.aux
pdflatex mwe.tex
pdflatex mwe.tex

给出了以下结果,没有错误:

生成的 pdf

相关内容