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

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 8544
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

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):

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


to

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


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

  1. \newcommand\appendix{\par
  2. \setcounter{chapter}{0}%
  3. \setcounter{section}{0}%
  4. \gdef\@chapapp{\appendixname}%
  5. \gdef\thechapter{\@Alph\c@chapter}}


Stefan
Site admin


Return to “Theses, Books, Title pages”

Who is online

Users browsing this forum: No registered users and 1 guest