![使用 multibib 和 moderncv 重置参考书目编号](https://linux22.com/image/302922/%E4%BD%BF%E7%94%A8%20multibib%20%E5%92%8C%20moderncv%20%E9%87%8D%E7%BD%AE%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%E7%BC%96%E5%8F%B7.png)
我有两个文件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}
输出