Menu

HowTo_SubsectionRunin

How to output \subsection and \subsubsection as a so called run-in headline that introduces the paragraph instead of a free-standing headline

By default, the headings of \subsection and \subsubsection in the KOMA-Script classes are output as free-standing headings above the following paragraph, as in the standard classes. Only the headings of \paragraph and \subparagraph are formatted as so-called run-in headline. This means that these headings do not appear as separate lines above the following section, but as an introduction at the beginning of the section. If you already want to format the headings of \subsection and \subsubsection as run-in headline, this is very easy with the help of \RedeclareSectionCommand:

\documentclass{scrartcl}
\usepackage{mwe}
\RedeclareSectionCommands[runin=true]{subsection,subsubsection}
\begin{document}
\blinddocument
\end{document}

Related

Wiki (English): HowTo_Headings

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.