I use the fancyhdr package. It works fine for the whole document, however, in the Appendix, the last two pages are without header. I haven't found a solution online and I am grateful for any help!

Also, I would like to have only "Part I" on the right header, without the "A" Prefix. However, \renewcommand{\sectionmark}[1]{\markright{#1}} only results in nothing on the right side.

Here is my code:

\usepackage[left= 2.7cm,right = 2cm, bottom = 4 cm]{geometry}


\section{Part I}
\subsection{Image I}
\subsection{Image II}
\subsection{Image III}

\section{Part II}


Thank you!


Ok I found part of the answer - the command \pagestyle{fancy} needs to be set before \begin{appendices} and it works fine!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.