Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

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.

share|improve this answer
1  
+1, but consider to add a patch for \@spart (unnumbered parts). –  lockstep Jun 10 '12 at 13:14
    
@lockstep: Thanks for the hint. I have supplemented my example correspondingly. –  Thorsten Donig Jun 10 '12 at 13:17
add comment

Here's another option, using the sectsty package (instead of \large, use the font size that best suit your needs):

\documentclass{report}
\usepackage{sectsty}

\partfont{\large}

\begin{document}

\part*{A test unnumbered part}
\part{A test numbered part}

\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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