# Swap "Part" and corresponding number

I am trying to figure out how I can swap the word "Part" and the part's number in my document. The default style for \part{mypartname} is something like:

Part I:

mypartname

However, I want it to be

I Part:

mypartname

Can anyone tell me how to achieve this? I use scrbook as document class.

Best wishes and thanks for your help!

The class scrbook allows this by redefining \partformat:

\documentclass{scrbook}

\renewcommand*{\partformat}{%
\thepart\autodot~\partname:%
}

\begin{document}
\part{My part name}
\end{document}


• Thank you very much! That's exactly what I was looking for!
– yuki
Jun 9, 2015 at 18:53

You can patch the standard report document class to achieve this as follows.

\documentclass{report}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@part}{\huge\bfseries \partname\nobreakspace\thepart}
{\huge\bfseries \thepart\nobreakspace\partname}{}{}
\makeatother
\begin{document}
\part{The first}
\part{The second}
\end{document}