\thechapter を使用した派手なヘッダーでは、\appendix の後に「Chapter」と表示されます。正しくは「Appendix」と表示されます。

\thechapter を使用した派手なヘッダーでは、\appendix の後に「Chapter」と表示されます。正しくは「Appendix」と表示されます。

章と付録があります。 は使用していません\part。ヘッダーは次のように定義されています。

\fancyhead[RO,LE]{\textsf{\footnotesize \thechapter--\thepage}}

章から付録に移動した後 ( 以降\appendix)、付録の見出しは問題ありませんが、ヘッダーには「付録 A: blah」ではなく「章 A: blah」と表示されます。

答え1

ここに解決策があります。

コマンドは\@chapapp最初に章を展開し、使用後に付録を展開します。\appendixここで使用できます。 \renewcommand{\chaptermark}[1]{\markboth{\@chapapp{} \thechapter:\ #1}{}}

\documentclass{book}
\usepackage{blindtext}


\usepackage{fancyhdr}
\renewcommand{\chaptermark}[1]{% 
\markboth{\@chapapp{} \thechapter:\ #1}{}} 
\fancyhead{} 
\makeatletter
\fancyhead[RO,LE]{\textsf{\footnotesize \thechapter--\thepage}} 
\fancyhead[LO,RE]{\textsf{\footnotesize \leftmark}}
\makeatother
\pagestyle{fancy}

\begin{document}
\blinddocument
\appendix 
\blinddocument 
\end{document}

関連情報