Latex 在制作附录时显示错误

Latex 在制作附录时显示错误

附录显示为“第 A 章”,而不是“附录”。有人可以帮忙吗?我使用的代码是:

\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}{\Huge\bfseries}{\chaptername\ \thechapter}{0pt}{\vskip 15pt\raggedright}
\titlespacing{\chapter}{0pt}{0pt}{5pt}[0pt]
\begin{document}
\appendix
\chapter{Appendix Title}
Some text.
\end{document}

答案1

我没有太多经验,但我知道如果你想处理一个章节而不给它提供 Latex 自动分配的名称,你必须输入 * 然后在括号中写下你喜欢的内容。但同样,我没有太多经验。我会这样做。

代码:

\documentclass{book}
\usepackage{titlesec}
\titleformat{\chapter}{\Huge\bfseries}{\chaptername\ \thechapter}{0pt}{\vskip 15pt\raggedright}
\titlespacing{\chapter}{0pt}{0pt}{5pt}[0pt]
\begin{document}
\appendix
\chapter*{Appendix Title}
Some text.
\end{document}

尝试在线编译纸业

相关内容