我正在使用以下内容:
\citep[vgl. bspw. ][S. 380]{Bortz2006}\citep[S. 40]{Fayyad1996}\citep[S. 11]{Maimon2010}
得到输出:
[vgl. bspw. BD06,第 380 节][FPSS96,第 40 节][MR10,第 11 节]
是否可以用分号而不是方括号分隔引用,如下所示:
[参见 BD06,第 380 节;FPSS96,第 40 节;MR10,第 11 节]
答案1
我认为你应该更换
\citep[vgl.~bspw.][S.~380]{Bortz2006}\citep[S.~40]{Fayyad1996}\citep[S.~11]{Maimon2010}
和
\citetext{vgl. bspw. \citealp[S.~380]{Bortz2006}; \citealp[S.~40]{Fayyad1996};
\citealp[S.~11]{Maimon2010}}
\citetext
遵守和三个说明的使用\citealp
。
完整的 MWE (最小工作示例):
\documentclass{article}
\usepackage[numbers]{natbib}
%\bibliographystyle{lni}
\frenchspacing
\begin{document}
\citep[vgl.~bspw.][S.~380]{Bortz2006}\citep[S.~40]{Fayyad1996}\citep[S.~11]{Maimon2010}
\medskip
\citetext{vgl. bspw. \citealp[S.~380]{Bortz2006}; \citealp[S.~40]{Fayyad1996}; \citealp[S.~11]{Maimon2010}}
\begin{thebibliography}{99} % just for this example
\bibitem[BD06]{Bortz2006} stuff
\bibitem[FPSS96]{Fayyad1996} stuff
\bibitem[MR10]{Maimon2010} stuff
\end{thebibliography}
\end{document}
答案2
我认为 biblatex多引命令\parencites
可以轻松解决这个问题。
定义.bib
文件后,例如 mybib.bib:
@incollection{Bortz2006,
title = {Quantitative Methoden der Datenerhebung},
author = {Bortz, J{\"u}rgen and D{\"o}ring, Nicola},
booktitle = {Forschungsmethoden und Evaluation},
pages = {137--293},
year = {2006},
publisher = {Springer}
}
@article{Fayyad1996,
title = {The KDD process for extracting useful knowledge from volumes of data},
author = {Fayyad, Usama and Piatetsky-Shapiro, Gregory and Smyth, Padhraic},
journal = {Communications of the ACM},
volume = {39},
number = {11},
pages = {27--34},
year = {1996},
publisher = {ACM New York, NY, USA}
}
@article{Maimon2010,
title = {Data mining and knowledge discovery handbook},
author = {Maimon, Oded and Rokach, Lior},
year = {2010},
publisher = {Springer}
}
然后,您可以在文件中使用 biblatex 包,.tex
如下所示:
\documentclass{article}
\usepackage[style=alphabetic, natbib=true]{biblatex}
\addbibresource{mybib.bib}
\begin{document}
Original output:
\citep[vgl. bspw. ][S. 380]{Bortz2006}\citep[S. 40]{Fayyad1996}\citep[S. 11]{Maimon2010}
\medskip
Output using \textbackslash parencites:
\parencites()()[vgl. bspw. ][S. 380]{Bortz2006}[S. 40]{Fayyad1996}[S. 11]{Maimon2010}
\printbibliography
\end{document}
使用 biblatex,运行 pdflatex + biber + pdflatex *2 以生成以下输出: