TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using the standard book class. If I write

\documentclass{book}

\begin{document}

\frontmatter
\tableofcontents

\mainmatter
\chapter{foo}
\section{Donald}

\backmatter
\chapter{bar}
\section{Mickey}

\end{document}

I expect to have chapter bar numbered as appendix A and section Mickey as A.1. Instead chapter bar is not numbered and section Mickey is 1.2, following section Donald. If I insert the appendix command to obtain

\documentclass{book}

\begin{document}

\frontmatter
\tableofcontents

\mainmatter
\chapter{foo}
\section{Donald}

\backmatter
\appendix
\chapter{bar}
\section{Mickey}

\end{document}

then chapter bar is unnumbered and section Mickey is numbered as .1.

What am I doing wrong?

share|improve this question
up vote 23 down vote accepted

Simply remove the \backmatter in your second version. The \backmatter should only be the bibliography and index (and similar things) at the end, which are not numbered.

share|improve this answer

Try putting \backmatter after your appendices?

share|improve this answer

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.