# Numbering in appendix

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

-
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 '14 at 9:50
What is in \input{style}? And what should the bunch of \input at the bottom do? – Christian Hupfer Sep 4 '14 at 9:51