I'm relatively new to this forum and LaTeX in general, so please excuse me if I'm duplicating a question, but I can't find a satisfying solution to my problem. I have introduced numbered paragraphs by extending the secnumdepth to 4. Now, I would like to have the same appearance as with the subsubsection titles and the associated text for these numbered paragraphs. Therefore, I have added a line break after the paragraph title and indentation to the first line of text (I'm using \usepackage[indentafter]{titlesec}
), but I would also like to add the same vertical spacing between the title and the associated text as done with \subsubsection
. I tried using \titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}
(= default titlespacing settings for subsubsections, found here: Obtaining the default section spacing into the \titlespacing* parameters), but it didn't change anything. I'm not sure whether this is relevant, but I'm using the scrreprt
class. Can anyone help me, please? Here is my code including the entire preamble in case that something interferes with anything else:
\documentclass[12pt,a4paper]{scrreprt}
\usepackage{graphicx}
\usepackage{lineno}
\usepackage[english]{babel}
\usepackage[super]{natbib}
\usepackage{subscript}
\usepackage{booktabs}
\usepackage[indentafter]{titlesec}
\usepackage{textcomp, gensymb}
\usepackage{color}
\usepackage{colortbl}
\usepackage[onehalfspacing]{setspace}
\usepackage{enumitem}
\usepackage{comment}
\usepackage{caption}
\setkomafont{disposition}{\normalcolor\bfseries}
\setkomafont{descriptionlabel}{\normalcolor\bfseries}
\setkomafont{captionlabel}{\normalcolor\bfseries}
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{4}
\renewcommand{\labelitemi}{-}
\renewcommand{\labelenumi}{\arabic{enumi}.)}
\begin{document}
\chapter{Chapter title}
Sample text
\section{Section title}
Sample text
\subsection{Subsection title}
Sample text
\subsubsection{Subsubsection title}
Sample text
\paragraph{Paragraph title}
\ \\
\indent Sample text
\end{document}
\documentclass{...}
and ending with\end{document}
.