LaTeX forum ⇒ Theses, Books, Title pagesHow 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

Postby templateuser » Sun Mar 08, 2015 3:11 am

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 9768
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Thu Mar 12, 2015 4:08 pm

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
LaTeX.org admin

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

Postby sdey15 » Wed Apr 21, 2021 9:05 am

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}


I am not able to figure out where I should implement the changes your suggested in order to get an "Appendix" header instead of the "Chapter" header for the appendix section. Please help.


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 6 guests