## LaTeX forum ⇒ Theses, Books, Title pages ⇒ How do I get in Appendices Appendix appears in the header Topic is solved

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

### How do I get in Appendices Appendix appears in the header

Place appendages in the template, but in the header of each page tells me chapter, instead of appendix, as I do to change me to Appendix chapter, thank you very much.

caedvaur

LaTeXguide.org • LaTeX-Cookbook.net

Stefan Kottwitz
Posts: 9805
Joined: Mon Mar 10, 2008 9:44 pm

### How do I get in Appendices Appendix appears in the header  Topic is solved

Usually this is simply done by starting the appendix by

\appendix

in the document.

However, currently the template doesn't respect the changes made by this command. You can fix it by adding

\renewcommand*{\chaptername}{\appendixname}

The template itself could be fixed by changing that line in structure.tex (PAGE HEADERS section):

\renewcommand{\chaptermark}[1]{\markboth{\sffamily\normalsize\bfseries\chaptername\
\thechapter.\ #1}{}} % Chapter text font settings

to

\makeatletter
\renewcommand{\chaptermark}[1]{\markboth{\sffamily\normalsize\bfseries\@chapapp\
\thechapter.\ #1}{}} % Chapter text font settings
\makeatother

The reason is, \appendix in the book class does this:

\newcommand\appendix{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\gdef\@chapapp{\appendixname}%
\gdef\thechapter{\@Alph\c@chapter}}

Stefan

sdey15
Posts: 1
Joined: Wed Apr 21, 2021 8:55 am

### How do I get in Appendices Appendix appears in the header

I am very new to LaTex. So please excuse if my language is technically incorrect/incomplete.

My .sty file has this command that you mentioned to be a default for the \appendix command in books.

\renewcommand\appendix{\par
\setcounter{chapter}{0}%
\setcounter{section}{0}%
\gdef\@chapapp{\appendixname}%
\gdef\thechapter{\@Alph\c@chapter}