this is my first question, I hope I am right here. My problem is, that I have a float that is placed on a new page above a new section, as I want it by using the placeins package. However the spacing between the caption of the figure and the new section is less than the spacing between normal text and a new section, like in this example:
\documentclass{scrreprt}
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage[draft]{graphicx}
\usepackage[section]{placeins}
\usepackage[onehalfspacing]{setspace}
\usepackage{parskip}
\setlength{\parindent}{0cm}
\begin{document}
\section{This is a test}
\blindtext\par
\blindtext
\section{This section has normal spacing above it}
\blindtext
\begin{figure}[htb]
\centering
\includegraphics[width = \textwidth]{test.png}
\caption{This is a caption with a somewhat longer text, therefore I write stuff untill at least one line is full.}
\label{fig:my_label}
\end{figure}
\section{This section has less spacing above it}
\end{document}
How do I change the space between the caption and the section to be the same as between normal text and a section? I already tried adding `\vslace, but it didn't work, probably because the float gets set behind the vspace and even if it worked, I wouldn't know, how much space was right. Thank you and best wishes, Jannik
\textfloatsep. – Fran Sep 03 '20 at 19:45\textfloatseponly for a figure or a group of figures (e.g.:{\textfloatsep10em <your float here>}. It s not mandatory change it in the preamble. Although for a single figure some like\vspace{10em}just after the caption or\belowcaptionskip10emjust before the caption also do the job and it is simpler. What else? – Fran Sep 03 '20 at 22:00