在我的文档附录中,我引用了一些以前使用过的参考文献和一些新的参考文献。因此,我需要为附录部分单独列出参考书目,其中只列出新的参考文献。但是,编号必须从主参考书目继续。
以下是 MWE:
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{myrefs.bib}
@Book{Knuth:90,
author = {Knuth, Donald E.},
title = {The {\TeX}book},
year = {1990},
publisher = {Addison\,\textendash\,Wesley},
}
@Book{Lamport:94,
author = {Lamport, Leslie},
title = {\LaTeX: A Document Preparation System},
year = {1994},
publisher = {Addison\,\textendash\,Wesley},
}
\end{filecontents}
\begin{document}
\section{Main Section}
The first ref \cite{Knuth:90} is cited in the main text.
\bibliographystyle{ieeetr}
\bibliography{myrefs}
\section{Appendix}
The first \cite{Knuth:90} and the second \cite{Lamport:94} are both cited in the appendix.
\bibliographystyle{ieeetr}
\bibliography{myrefs}
\end{document}
我需要参考文献 [Knuth:90] 仅显示在主参考文献列表中并编号为 [1],并且参考文献 [Lamport:94] 仅显示在附录参考文献列表中并编号为 [2]。
答案1
这是我解决这个问题的方法。这不是最干净的解决方案,但确实有效!
我将主要部分和附录部分的参考文献放在每个部分的末尾,并更改了附录参考文献的起始编号。有关起始编号,请参阅此链接:更改书目起始编号
以下是代码:
\documentclass{article}
\begin{document}
\section{Main Section}
The first ref \cite{Knuth:90} is cited in the main text.
\renewcommand\refname{Main References}
\begin{thebibliography}{1}
\bibitem{Knuth:90}
D.~E. Knuth, {\em The {\TeX}book}.
\newblock Addison\,\textendash\,Wesley, 1990.
\end{thebibliography}
\section{Appendix}
The first \cite{Knuth:90} and the second \cite{Lamport:94} are both cited in the appendix.
\renewcommand\refname{Appendix References}
\begin{thebibliography}{1}
\makeatletter
\addtocounter{\@listctr}{1}
\makeatother
\bibitem{Lamport:94}
L.~Lamport, {\em \LaTeX: A Document Preparation System}.
\newblock Addison\,\textendash\,Wesley, 1994.
\end{thebibliography}
\end{document}