附录中的编号

附录中的编号

编译我的文件时,附录没有编号(虽然章节有编号,但附录中会计数)。因此,似乎无法识别章节。在附录中,我使用\chapter\section作为\subsection标题。您可以在这里找到我的代码:

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

答案1

它似乎是一个memoir文档。删除\backmatter,我看不出有任何理由使用它。它关闭了编号。

相关内容