I would like to change the header and footer to only a group of pages in my document. I'm using the fancyhdr
package with these settings:
\usepackage{fancyhdr}
\pagestyle{fancy}
\makeatletter
\DeclareRobustCommand{\format@sec@number}[2]{{\normalfont\upshape#1}#2}
\renewcommand{\chaptermark}[1]{%
\markboth{\format@sec@number{\ifnum\c@secnumdepth>\m@ne\@chapapp\ \thechapter\, \fi}{#1}}{}}
\renewcommand{\sectionmark}[1]{%
\markright{\format@sec@number{\ifnum\c@secnumdepth>\z@\thesection\, \fi}{#1}}}
\makeatother
\fancyhf{}
\fancyhead[L]{\itshape\nouppercase{\rightmark}}
\fancyhead[R]{\thepage}
I would likt to not use these settings for some pages. How can I accomplish this?
Best Answer
This is a job for the command
\fancypagestyle
from thefancyhdr
package. You can define two styles and alter between them at your wish.