5

I want inline subsubsection headings, as displayed in the example below. It is easy to realize them with the titlesec package, but according to this thread, there are incompatibilities between KOMA and titlesec.

Is there a solution which does not use titlesec and is fully compatible with the KOMA classes?

MWE:

\documentclass{scrbook}

\usepackage{blindtext}
\usepackage{titlesec}
\titleformat{\subsubsection}[runin]{\bfseries}{}{}{}[.]

\begin{document}
\chapter{A chapter heading}
\section{A section heading}
\subsection{A subsection heading}
\blindtext
\subsubsection{Inline subsubsection heading}
\blindtext
\subsubsection{Another inline subsubsection heading}
\blindtext
\end{document}

and a screenshot:

screenshot

  • 2
    Welcome to TeX.SX! Yes, there are incompatibilities between KOMA and titlesec, as written in the manual, but it's basically ignored ;-) – user31729 Feb 17 '15 at 10:51
9

With the latest version of KOMA-script, you can declare

\RedeclareSectionCommand[afterskip=-.5em]{subsubsection}

MWE:

\documentclass{scrbook}

\usepackage{blindtext}

\RedeclareSectionCommand[afterskip=-.5em]{subsubsection}

\begin{document}

\chapter{A chapter heading}
\section{A section heading}
\subsection{A subsection heading}
\blindtext
\subsubsection{Inline subsubsection heading.}
\blindtext
\subsubsection{Another inline subsubsection heading.}
\blindtext
\end{document} 

Output:

enter image description here

  • What does the style option do? I couldn't find a more specific description in scrguide and not using it doesn't change anything. – Juri Robl Feb 17 '15 at 12:20
  • 2
    @JuriRobl style=section is the default, so you can omit it. I've edited the answer to reflect it. – karlkoeller Feb 17 '15 at 12:21
  • The new interface is quite nice, right? That should have come a lot earlier. – Johannes_B Feb 17 '15 at 14:15
  • @Johannes_B Indeed it is. In the manual it is stated that it is a beta feature. Does it mean that we have to expect further improvements? – karlkoeller Feb 17 '15 at 16:06
  • As far as i know, Markus is working on this for just a few months, somebody will find a bug. I guess labeling this as beta is not a bad idea right now. ;-) – Johannes_B Feb 17 '15 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.