我正试图将附录中的标题“章节”改为“附件”,但无法这样做。我查找并找到了\renewcommand\appendixname{Annex}的解决方案,但这并没有解决我的问题,标题仍然显示为“章节”。
我猜想这可能是因为我改变了章节的标题格式(也可能不是因为……)。
如果有人能帮我解决这个问题。我在序言中的代码如下:
\usepackage[titletoc]{appendix}
\titleformat{\chapter}[display]
{\normalfont\LARGE\bfseries\center}{Chapter \thechapter}{0.3em}{\LARGE}
\titlespacing*{\chapter}{0pt}{-15pt}{15pt}
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand{\thesection}{\arabic{chapter}.\arabic{section}}
\renewcommand{\thetable}{\arabic{chapter}.\arabic{table}}
\renewcommand{\thefigure}{\arabic{chapter}.\arabic{figure}}
\titleformat{\section}
{\normalfont\fontsize{14}{10}\bfseries}{\thesection}{1em}{\fontsize{14}{10}}
\renewcommand{\appendixname}{Annex}
\begin{document}
All contents that matters.....
\begin{appendices}
\chapter{Some Annex}
\input{Chapters/Appendix}
\end{appendices}
\end{document}发布于 2021-03-31 15:33:15
问题是,您在这里硬编码了单词Chapter:
\titleformat{\chapter}[display]
{\normalfont\LARGE\bfseries\center}{Chapter \thechapter}{0.3em}{\LARGE}要使用正确的单词,无论您是在主要内容中还是在附录中,在\chaptertitlename包文档中使用记录在案作为记录在案(第4页):
\chaptertitlename它默认为\chaptername,但附录中的\appendixname除外。在定义章节时使用它而不是\chaptername。
请记住添加{}使尾随空间具有显着性:
\titleformat{\chapter}[display]
{\normalfont\LARGE\bfseries\center}{\chaptertitlename{} \thechapter}{0.3em}{\LARGE}https://stackoverflow.com/questions/66890551
复制相似问题