下の例のように、インラインサブセクションの見出しが欲しいです。titlesecパッケージを使えば簡単に実現できますが、このスレッドただし、KOMA と titlesec の間には互換性がありません。
titlesec を使用せず、KOMA クラスと完全に互換性のあるソリューションはありますか?
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}
スクリーンショット:
答え1
KOMAスクリプトの最新バージョンでは、次のように宣言できます。
\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}
出力: