As shown below, tables and figures seem to add extra space at the bottom:
In the example below the problem persist also using float (\intextsep was multiplied by 1.5 \baselineskip for better readability):
Code for the first image:
\documentclass[a4paper,12pt]{article}
\usepackage[demo]{graphicx}
\begin{document}
\noindent AAAAAAAAAAAAAAAAAAAAAAAA
\begin{table}[h]
\begin{tabular}{c}
\hline
table \
\hline
\end{tabular}
\end{table}
\noindent BBBBBBBBBBBBBBBBBBBBBBBB
\begin{table}[h]
\vspace{-\baselineskip}
\begin{tabular}{c}
\hline
table \
\hline
\end{tabular}
\vspace{-\baselineskip}
\end{table}
\noindent CCCCCCCCCCCCCCCCCCCCCCCC
\begin{figure}[ht]
\includegraphics{demo}
\end{figure}
\noindent DDDDDDDDDDDDDDDDDDDDDDDD
\begin{figure}[!ht]
\vspace{-\baselineskip}
\includegraphics{demo}
\vspace{-\baselineskip}
\end{figure}
\noindent EEEEEEEEEEEEEEEEEEEEEEEE
\end{document}



hposition) adds\intextsepbefore and after the float. – David Carlisle Mar 22 '21 at 15:52figureandtableenvironments. – David Carlisle Mar 22 '21 at 15:53\intextsepsomething else is adding space. Even after removing the two\intextsepthere is a bit of space left under the figures/tables – Polizi8 Mar 22 '21 at 16:18\belowcaptionskip– David Carlisle Mar 22 '21 at 16:35\intextsep. However, setting it to zero makes everything a mess, you get overlapping lines if you try. My goal is fixing the issue for the first image, and then apply the change to the second one myself. Caption doesn't add any extra space below it by default, and I can't fix it with negative\belowcaptionskip, that's why I posted a MWE without\caption, in order to focus on less code. – Polizi8 Mar 22 '21 at 16:45