引用未使用 multibib 定义的自定义前缀

引用未使用 multibib 定义的自定义前缀

我正在写一篇论文,需要两个参考书目。例如,一个常规参考书目页面和一个特定主题的参考书目页面。类似这样的内容:在此处输入图片描述

我已经用 multibib 做到了这一点。

\documentclass[sigconf]{acmart}

\usepackage[resetlabels,labeled]{multibib}
%... 
\newcites{New}{The other list}
\begin{document}
%... 

\section{test}
\citep{GM05} this is a test \citeNew{Williams2009} 
% and this as well \citeNew{Gren}

\bibliographystyle{ACM-Reference-Format}
\bibliography{sample-bibliography}

\bibliographystyleNew{plain}
\bibliographyNew{references}

\end{document}

-- 我的reference.bib文件的内容

@article{Williams2009,
author = {Williams, Laurie and Kudrjavets, Gunnar and Nagappan, Nachiappan},
doi = {10.1109/ISSRE.2009.32},
isbn = {9780769538785},
title = {{On the Effectiveness of Unit Test Automation at Microsoft 1}},
year = {2009}
}

@article{Gren,
author = {Gren, Lucas and Antinyan, Vard},
title = {{On the Relation Between Unit Testing and Code Quality}}
}

-- 我的 sample-bibliography.bib 文件的内容

@article{GM05,
author = {Williams, Laurie and Kudrjavets, Gunnar and Nagappan, Nachiappan},
doi = {10.1109/ISSRE.2009.32},
isbn = {9780769538785},
title = {{Example}},
year = {2009}
}

但是,引用不正确。我希望它是“[1]这是一个测试[New1]“, 代替 ”[1] 这是一个测试 [1]

答案1

看起来问题不在于acmart,而在于natbib。以下是 的示例article

%\documentclass[sigconf]{acmart}
\documentclass{article}
\usepackage{natbib,url}
\setcitestyle{numbers,square}
\usepackage[resetlabels,labeled]{multibib}
%... 
\newcites{New}{The other list}
\begin{document}
%... 

\section{test}
\citep{GM05} this is a test \citeNew{Williams2009} 
% and this as well \citeNew{Gren}

\bibliographystyle{plainnat}
\bibliography{sample-bibliography}

\bibliographystyleNew{plainnat}
\bibliographyNew{references}

在此处输入图片描述

作为一种解决方法,我将使用连续编号来代替:

\documentclass[sigconf]{acmart}
\usepackage{multibib}
%... 
\newcites{New}{The other list}
\begin{document}
%... 

\section{test}
\citep{GM05} this is a test \citeNew{Williams2009} 
% and this as well \citeNew{Gren}

\bibliographystyle{ACM-Reference-Format}
\bibliography{sample-bibliography}

\bibliographystyleNew{ACM-Reference-Format}
\bibliographyNew{references}

\end{document}

在此处输入图片描述

相关内容