# KOMA: format (sub) section number different that title

I want my subsection heading to have an italic title but an upright number:

1.2.3 My Title

How can I reach this in KOMA? I only got the whole title in italics:

\documentclass{scrbook}
\usepackage{blindtext}
\begin{document}
\blinddocument
\end{document}


Or do I need titlesec?

\documentclass{scrbook}
\usepackage{blindtext}

\newcommand\subsectionnumberfont{\upshape}
\renewcommand*{\othersectionlevelsformat}[3]{\csname#1numberfont\endcsname#3\autodot\enskip}

\begin{document}
\blinddocument
\end{document}


## Edit

With newer versions of scrbook you do it like this:

\documentclass{scrbook}
\usepackage{blindtext}

• I tried to achieve something similar with \renewcommand*{\subsectionformat}{\makebox[40pt][r]{\\upshape\thesubsubsection\autodot\enskip}} but it seems pretty wrong because of the fixed length of 40pt -- isn't there a more elegent way?