该文件:
\documentclass{article}
\usepackage{natbib}
\begin{document}
\appendix
\renewcommand{\bibsection}{\section{References}
\bibliographystyle{apalike}
\bibliography{foo}
\appendix
\section{More Details}
\end{document}
输出:
[...]
11pdfTeX warning (ext4): destination with the
same identifier (name{section.A}) has been already used, duplicate ignored
该文件如下所示(附录编号重复):
A. References
...
A. More Details
如何解决?
答案1
您不需要第二个\appendix
,并且您的示例中也缺少一个}
。(也许是复制/粘贴时遗漏了?)
\documentclass{article}
\usepackage{natbib}
\begin{document}
\appendix
\renewcommand{\bibsection}{\section{References}} % <- was missing
\bibliographystyle{apalike}
\bibliography{foo}
%\appendix <- don't need this
\section{More Details}
\end{document}
该\appendix
指令重置了章节编号,并使用字母(A、B、...)而不是数字(1、2、...)。因此,您只需在所有附录前使用它一次。