
章と付録があります。 は使用していません\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}