[Tex/LaTex] How to insert a line break after the captionlabel (koma-script options)

captionskoma-script

On page 125 in scrguien.pdf, the two lower captions have a line break after the label. How can I do the same for my captions? Is that even possible with built-in KOMA options? Looked for a good 15 minutes now and so far, no luck. :/

Picture of Markus's output, what I would like to have as well

enter image description here

My MWE

\documentclass[
12pt,
a4paper
]{scrartcl}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}

%% built-in KOMA caption specifications
\setcapmargin{1cm}
\setkomafont{captionlabel}{\sffamily}

\begin{document}
\begin{table}
\centering
AAA
\caption{Test.}
\end{table}
\begin{center}
BBB
\captionof{table}{Some more words 12. Some more words 12. Some more words 12. Some more words 12. Some more words 12. Some more words 12.}
\end{center}
\end{document}

Best Answer

Use \setcapindent*; note the difference when the argument is positive or negative. I used the command in the center environment, but of course you should make a global decision in the preamble.

\documentclass[
  12pt,
  a4paper
]{scrartcl}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{showframe} % just for the example

%% built-in KOMA caption specifications
\setcaphanging
\setcapmargin{1cm}
\setcapindent*{0pt}
\setkomafont{captionlabel}{\sffamily}

\begin{document}
\begin{table}
\centering
AAA
\caption{Test.}
\end{table}
\begin{center}
BBB

\captionof{table}{Some more words 12. Some more words 12. Some more words 12. 
Some more words 12. Some more words 12. Some more words 12.}

\setcapindent*{1em}

\captionof{table}{Some more words 12. Some more words 12. Some more words 12. 
Some more words 12. Some more words 12. Some more words 12.}

\setcapindent*{-1em}

\captionof{table}{Some more words 12. Some more words 12. Some more words 12. 
Some more words 12. Some more words 12. Some more words 12.}


\end{center}
\end{document}

enter image description here