我有两个文件art1.bib
:
@article{article1,
title={Journal Article},
author={Man},
year={2014},
journal={Journal}
}
和conf1.bib
:
@article{magazine1,
title={Magazine Article},
author={Woman},
year={2014},
journal={Magazine}
}
当我编译该文件时mwe.tex
:
\documentclass[12pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\usepackage[scale=0.75]{geometry}
\firstname{Hi}
\familyname{There}
\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother
\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}
\usepackage{multibib}
\newcites{art,conf}{{Articles},{Conferences}}
\begin{document}
\makecvtitle
\section{Publications}
\nociteart{*}
\bibliographystyleart{plain}
\bibliographyart{art1}
\nociteconf{*}
\bibliographystyleconf{plain}
\bibliographyconf{conf1}
\end{document}
我明白了:
如何重置编号以便第二个参考书目也从 1 开始?
答案1
您只需使用multibib
以下选项加载resetlabels
:
\usepackage[resetlabels]{multibib}
梅威瑟:
\documentclass[12pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}
\usepackage[scale=0.75]{geometry}
\firstname{Hi}
\familyname{There}
\makeatletter
\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}
\makeatother
\renewcommand*{\bibliographyitemlabel}{[\arabic{enumiv}]}
\usepackage[resetlabels]{multibib}
\newcites{art,conf}{{Articles},{Conferences}}
\begin{document}
\makecvtitle
\section{Publications}
\nociteart{*}
\bibliographystyleart{plain}
\bibliographyart{art1}
\nociteconf{*}
\bibliographystyleconf{plain}
\bibliographyconf{conf1}
\end{document}
输出