我正在使用带有数字编号的 bibunit 和 Natbib 包。
\begin{bibunit}[plainnat]
\nocite{ref1,ref2}
\putbib[mybiblio]
\end{bibunit}
\begin{bibunit}[plainnat]
\nocite{ref3,ref4}
\putbib[mybiblio]
\end{bibunit}
如何将 ref3 和 ref4 的起始数字设置为不同于 1(例如 15),而不影响 ref1 和 ref 2 的起始数字?期望结果如下:
- [1] 参考文献 1
[2] 参考文献 2
[15] 参考3
- [16] 参考4
答案1
我的回答首次引用的次数如何设定?也可以应用,如果使用bibunits
:
\documentclass{article}
\usepackage[numbers]{natbib}
\usepackage{bibunits}
\usepackage{etoolbox}
\makeatletter
\newcommand*{\newbibstartnumber}[1]{%
\apptocmd{\thebibliography}{%
\global\c@NAT@ctr #1\relax
\addtocounter{NAT@ctr}{-1}%
}{}{}%
}
\makeatother
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
@misc{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
@misc{D04,
author = {Duthor, D.},
year = {2004},
title = {Delta},
}
\end{filecontents}
\usepackage{lipsum}
\begin{document}
\begin{bibunit}[plainnat]
\nocite{A01,B02}
\putbib[\jobname]
\end{bibunit}
\newbibstartnumber{15}
\begin{bibunit}[plainnat]
\nocite{C03,D04}
\putbib[\jobname]
\end{bibunit}
\end{document}