[Tex/LaTex] How to change the fontsize of the \part command

fontsizepartssectioning

I am using the report style and I would just like to change the fontsize of the \part command. How do I do it ?

Best Answer

You can patch the relevant command by the »etoolbox« package. The \@part macro is responsible for the formatting of the part prefix and the heading itself. It contains two commands that determine the font sizes. Hence you have to patch it two times.

\documentclass[11pt]{report}
\usepackage{etoolbox}

\makeatletter
\patchcmd{\@part}{\huge}{\normalsize}{}{}   % Choose your favorite size instead of \normalsize
\patchcmd{\@part}{\Huge}{\normalsize}{}{}   % Choose your favorite size instead of \normalsize
\patchcmd{\@spart}{\Huge}{\normalsize}{}{}  % Choose your favorite size instead of \normalsize
\makeatother

\begin{document}
  \part{Foo}
\end{document}

Choose the font size that you need as remarked in the comments.

As remarked in the comments, I added a patch for the \@spart macro that is responsible for unnumbered part headings.