6

I am writing a paper that I need to have two bibliographies. For example, a regular references pages and another one for a specific topic. Something like this:enter image description here

I already did it with 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}

-- Content of my reference.bib file

@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}}
}

-- Content of my sample-bibliography.bib file

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

However, the citation is not correct. I want it to be "[1] this is a test [New1]", instead of "[1] this is a test [1]"

1 Answers1

2

It looks like the problem is not with acmart, but rather with natbib. Here is your example with 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}

enter image description here

As a workaround, I would use consecutive numbering instead:

\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}

enter image description here

Boris
  • 38,129