编译我的文件时,附录没有编号(虽然章节有编号,但附录中会计数)。因此,似乎无法识别章节。在附录中,我使用\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
,我看不出有任何理由使用它。它关闭了编号。