# Fixing part layout using \patchcmd

I want to remove the linebreak between part numeration and part name as found here. However the solution doesn't work for me.

MWE:

\documentclass[draft, onecolumn, oneside, paper=a4, 12pt]{scrartcl}
\usepackage{etoolbox}

\makeatletter
\makeatother

\begin{document}
\part{A}
\end{document}


"Part I." and "A" are still displayed in seperate lines. The output doesn't containg error warnings.

I'm using overleaf and pdfLaTeX.

• With \patchcmd{\@part}{\par}{\quad}{}{\PatchFailed} you would get the error message that \PatchFailed is not defined. Then you would know that the false part of \patchcmd is excecuted because the patch fails. – esdd Oct 15 '18 at 10:42

Avoid patching internal KOMA-Script commands. Redefine the KOMA-Script command \partheadmidvskip to remove the linebreak between the part number and the part text:

\renewcommand*\partheadmidvskip{\enskip}


Example:

\documentclass[fontsize=12pt]{scrartcl}