I can't find the solution to this problem. I did google it and nothing came out. My project has 3 chapters and the appendix, but as far as I used \chapter*{Ap\'endice} and so, the appendix page headers are the same as third's chapter (I assume this is why).

I want to have something like "Number (space) Apéndice" on even pages and "Apéndice (space) Number" on odd pages.

I already tried the afterpage package. \afterpage{\lhead{Ap\'endice} or \afterpage{\rhead{Ap\'endice}} modifies every page after that and since this is the book class with different even and odd pages headers, \lhead on even pages replaces the page number and the same with \rhead on odd pages. Is there any way to solve this out?

I would really appreciate your help.

I'm using fancyhdr package, I'm sorry I didn't made that clear before. Here's my code. As you would see when compile, page 4 (Appendix) header is Capítulo 1 instead of Ap\'endice.




\chapter{Cap\'itulo 1}
\addcontentsline{toc}{chapter}{Ap\'endice: Teor\'ia de Grupos}
\lipsum[2]. \newpage
  • Welcome to TeX.SE. Please provide a compilable document in order to show the issue.
    – user31729
    Feb 19, 2016 at 16:53

1 Answer 1


You can use the fancyhdr package and the command \fancyhead


Edit: To clarify, you have to set a propper page style for this to work. Add


to the beginning of your document.

Alternatively, you can simply declare the chapter to be an appendix by stating

\chapter{Name of the appendix}

Note that here I have used the standard \chapter command, not the \chapter* command. This will produce slightly different results, however, it might be a more robust (and in my opinion better) solution.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .