如何超越附录中 26 个文件的限制?

如何超越附录中 26 个文件的限制?

2020 年 8 月 5 日更新(包含最新建议)

我目前正在处理一个大型 LaTeX 文档,其中(到目前为止)有 26 个附录文件,这些文件是通过 合并的\include。当我尝试添加第 27 个文件并失败时,评论很有帮助地将问题诊断为标签系统,但是,\alphalpha在 `\begin{appendices' 部分实施解决方案仍然导致我遇到一些问题。

\documentclass[a4paper,12pt,times,authoryear,print,index]{Classes/PhDThesisPSnPDF} 
% The class file, `PhDThesisPSnPDF`, is based on the standard `book` class

\begin{document}

\frontmatter

\maketitle

\include{Dedication/dedication}
\include{Declaration/declaration}
\include{Acknowledgement/acknowledgement}
\include{Abstract/abstract}

\mainmatter

\include{01/chapter1}
\include{02/chapter2}
\include{03/chapter3}
\include{04/chapter4}
\include{05/chapter5}

\bibliographystyle{apalike}
%\bibliographystyle{unsrt} % Use for unsorted references  
\bibliographystyle{plainnat} % use this to have URLs listed in References
\cleardoublepage
\bibliography{References/library} % Path to your References.bib file

\begin{appendices} 

    \include{Appendix_01/appendix_01}
    \include{Appendix_02/appendix_02}
    \include{Appendix_26/appendix_26}
    \include{Appendix_27/appendix_27}

\end{appendices}

\end{document}

我一直在尝试使用 alphalph 包让 AA、AB 等工作,并在 下方的花括号中包含以下内容/begin{appendices}。我理解这应该将更新命令限制在此部分?每个附录都以 \chapter{Title} 开头,但也许我不应该使用\thechapter?下面的内容导致了大量错误,但一直在尝试替代方案以查看它是否有效:

\begin{appendices} 
    {
        \usepackage{alphalph}
        \renewcommand*{\thechapter}
        \AlphAlph{\value{chapter}}%

    \include{Appendix_01/appendix_01}
    \include{Appendix_02/appendix_02}
    \include{Appendix_26/appendix_26}
    \include{Appendix_27/appendix_27}
    }   
\end{appendices}

到目前为止还没有运气。感谢您的帮助!

相关内容