Il problema di cui parlo si è presentato nelle testatine. Mi sono definito uno stile per con il pacchetto fancyhdr`\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername \space \thechapter.\ \textit{#1}}{}}
\fancyfoot[C]{\thepage}
\fancyhead[LO,RE]{\footnotesize{\nouppercase{\leftmark}}}`Il semplice problema che ho è che i capitoli dell’appendice prendono, nella testatina, il \chaptername e dunque ottengo ad esempioCapitolo B
anziché
Appendice B
.Qualcuno ha qualche suggerimento?
Naturalmente. Devi usare il comando \@chapapp invece di \chaptername. Il comando \appendix nella classe book ridefinisce \@chapapp come \appendixname, mentre normalmente esso vale \chaptername.`\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\makeatletter
\renewcommand{\chaptermark}[1]{\markboth{\@chapapp \space \thechapter.\ \textit{#1}}{}}
\makeatother
\fancyfoot[C]{\thepage}
\fancyhead[LO,RE]{\footnotesize{\nouppercase{\leftmark}}}`Ciao
Enrico