![引用は、multibib によって定義されたカスタム プレフィックスを使用していません](https://rvso.com/image/358109/%E5%BC%95%E7%94%A8%E3%81%AF%E3%80%81multibib%20%E3%81%AB%E3%82%88%E3%81%A3%E3%81%A6%E5%AE%9A%E7%BE%A9%E3%81%95%E3%82%8C%E3%81%9F%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%20%E3%83%97%E3%83%AC%E3%83%95%E3%82%A3%E3%83%83%E3%82%AF%E3%82%B9%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%9B%E3%82%93.png)
私は 2 つの参考文献が必要な論文を書いています。たとえば、通常の参考文献ページと、特定のトピックに関するページです。次のようになります。
すでにマルチビブでやりました。
\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}