Is it somehow possible to have different \captionsetup depending on the floating position a table ends up with?
In the following MWE I'd like to have \captionsetup{belowskip=0pt} automatically for all tables which end up to be placed at the top of a page in order to remove the space marked by the red arrow:
\documentclass{book}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{caption}
\captionsetup*[table]{position=above, belowskip=\baselineskip}
\usepackage[showframe]{geometry}
\begin{document}
\lipsum[2]
\begin{table}[htbp]
\caption{test}
\end{table}
\lipsum[2-6]
\begin{table}[htbp]
%\captionsetup{belowskip=0pt}
\caption{test}
\end{table}
\lipsum[2]
\end{document}

\textfloatsepwent exactly in right direction. Modifying\intextsepgave me the desired output. Would you like to add an answer? – samcarter_is_at_topanswers.xyz Mar 08 '18 at 18:42\floatswitchworks perfectly! ... until one loads the caption package. Then it reports true for bottom and top for each float. Nevertheless thank you very much for finding your previous answer! – samcarter_is_at_topanswers.xyz Mar 08 '18 at 18:43