Creating ToC of parts using \parttoc, I'd like to be able to define pagestyle of ToC generated. In the next code, I have been able to define a pagestyle to every page I wanted, except to ToCs of parts. This is the code:


%Define general pagestyle
\fancyhf{}% Clear all headers/footers
\fancyhead[L]{Left header}\fancyhead[C]{Centre header}\fancyhead[R]{Right header}
\fancyfoot[L]{Left footer}\fancyfoot[C]{Centre footer}\fancyfoot[R]{Right footer}

%Define general ToC pagestyle

%Modifying part page pagestyle

\part{part 1}
\section{section 1}
\section{section 2}
\part{part 2}
\section{section 3}
\section{section 4}


Could someone help me to define pagestyle of ToCs generated by \parttocas the other pages?

Thank you.

put on hold as off-topic by Mensch, Stefan Pinnow, siracusa, Sebastiano, Raaja Jul 16 at 16:43

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • \renewcommand*\thispageparttocstyle{\pagestyle{toc}} changes the pagestyle of the first parttoc page to toc. BTW: Note that \tableofcontents\thispagestyle{toc} sets the pagestyle of the last TOC page to style toc. – esdd Jan 28 at 12:02
  • That works me, thanks! I add a \begingroup \endgroup to not affect the rest. – Daniel Jan 28 at 17:16
  • 4
    I'm voting to close this question as off-topic because it was solved in comments – Mensch Jul 16 at 15:15