I am looking for a way to set the vertical space after headers, end of paragraphs, etc., to specific values, using koma script. I checked previous answers, but the closest I found was the following: Adjusting spacing around section/subsection titles with koma-script which I found quite confusing. My code for testing:
\documentclass[12pt]{scrreprt}
\usepackage{setspace}
\usepackage{lipsum}
\RedeclareSectionCommands[
beforeskip=-.5\baselineskip,
afterskip=.25\baselineskip
]{section,subsection,subsubsection}
\RedeclareSectionCommands[
beforeskip=.5\baselineskip,
afterskip=-1em]{paragraph,subparagraph}
\doublespacing
\begin{document}
\section{Hello}
\lipsum
\end{document}
So lets say I want to have exactly 12 pt vertical space after each header (chapters, sections, subsections, etc), and also 12 pt space after the end of a paragraph and before a new section, is that possible to obtain? In my case the space always seems to be a bit larger when there is both a paragraph ending and a new section beginning.
It would be very helpful to know the case with zero space to start from, and then put in values from there. I am confused by the before- and afterskips, which dont tell me what is the base and what I will end up with eventually.