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.

When compiling my file, the appendices are not numbered (the sections are though, but they are counting throughout the appendices). Therefor it seems that the chapters are not recognized. In the appendices I use \chapter, \section and \subsection for the headers. Here you can find my code:

\input{Style} %in the preamble the \usepackage[titletoc]{appendix} is used

\begin{document}

\frontmatter
    \input{...}

\tableofcontents
\pdfbookmark[-1]{Contents}{Contents}

\mainmatter
\ChapterInsidePart
    \input{...} 
    \input{...}
    \input{...}

\backmatter
\input{...}

\appendix
\appendixpage
\addappheadtotoc
\renewcommand{\chaptername}{Appendix} %I added these lines of code to try and work around the problem. This would not help. 
\setcounter{chapter}{0}
\renewcommand{\thechapter}{\Alph{chapter}}
\renewcommand{\thesection}{\thechapter.\arabic{section}}
\setcounter{figure}{0} 
\renewcommand\thefigure{\thesection.\arabic{figure}}     
\setcounter{table}{0} 
\renewcommand\thetable{\thesection.\arabic{table}} 
    \input{...}
    \input{...}
    \input{...}
    \input{...}
    \input{...}
\underline{}
\end{document}

Thanks for helping me out!

Simone

share|improve this question
2  
Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Christian Hupfer Sep 4 at 9:50
    
What is in \input{style}? And what should the bunch of \input at the bottom do? –  Christian Hupfer Sep 4 at 9:51

1 Answer 1

It seems to be a memoir document. Drop \backmatter, I do not see any reason to use it. It switches off the numbering.

share|improve this answer
    
other document classes (amsbook for one) use \backmatter to purposefully switch off chapter numbering. (it's not wanted for a bibliography or index.) appendices should be numbered, so they should never be placed after \backmatter. –  barbara beeton Sep 4 at 12:58
    
How many classes number bibliography or index by default? In memoir I just think it confuses most users, thus I recommend no using it. –  daleif Sep 4 at 13:03
    
i don't know of any, actually, but i haven't really looked. on the other hand, a question did come up about how to deal with a requirement that appendices appear after the bibliography; in that case, using \chapter* for the bibliography was the only feasible approach, and forget the \backmatter. (actually, amsbook bases both index and bibliography titles on \chapter*, so the use of \backmatter is moot, but it's good for jogging the memory.) –  barbara beeton Sep 4 at 13:15
    
Thank you so much, \backmatter was indeed the problem. By making my appendices \mainmatter the problem was solved! –  Simone Sep 4 at 13:44

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.