Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The document:

\documentclass{article}
\usepackage{natbib}
\begin{document}
\appendix
\renewcommand{\bibsection}{\section{References}
\bibliographystyle{apalike}
\bibliography{foo}
\appendix
\section{More Details}
\end{document}

The output:

[...]
11pdfTeX warning (ext4): destination with the 
same identifier (name{section.A}) has been already used, duplicate ignored

The document looks like (appendix numbers are duplicate):

A. References
...
A. More Details

How to solve it?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You don't need the second \appendix, and you also had a missing } on your example. (Maybe missed on copy/paste?)

\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}

The \appendix instruction resets the numbering of chapters and makes them use letters (A, B, ...) rather than numbers (1, 2, ...). So you only need to use it once before all of your appendices.

share|improve this answer
    
Many thanks! –  yegor256 Nov 8 '10 at 12:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.