\documentclass[14paper,12pt]{article} \usepackage{graphicx,lipsum,caption,csquotes,setspace} \makeatletter \setstretch{1.5} \setlength{\intextsep}{\baselineskip} \setlength{\floatsep}{\baselineskip} \setlength{\textfloatsep}{\baselineskip} \setlength{\abovecaptionskip}{0pt} \setlength{\belowcaptionskip}{0pt} \setlength{\abovedisplayskip}{\baselineskip} \setlength{\belowdisplayskip}{\baselineskip} \setlength{\abovedisplayshortskip}{\baselineskip} \setlength{\belowdisplayshortskip}{\baselineskip} \setlength{\jot}{\baselineskip} \renewcommand\section{ \@startsection {section}{1}{\z@} {-\baselineskip} {\baselineskip} {\normalfont\normalsize\bfseries} } \makeatother \begin{document} \section{ALSDJKFH ALSKDJFH} ALSDJKFH ALSKDJFH LASKJDHF ALSKDJFHALSDKJFHA SLDKJFHALSKDJFHALSKDJFH ALSKDJF ALKSJDHF ALSJDKFHALKJSD FLAKJSD FLKJAHSDF LKJAHSD FLJKAHSDF LKJAHSD FLKJAHSD FLKJAHSDFLKJAHSD LFKJHKLAJSDHFLAKJ SDHFL AKSJDHF LAKJSDHF ALKDJSFH \begin{figure}[!htb] \centering \caption*{ALSDJKFH ALSKDJFH} \includegraphics[width=.6\textwidth]{example-image} \caption*{ALSDJKFH ALSKDJFH} \end{figure} ALSDJKFH ALSKDJFH LASKJDHF ALSKDJFHALSDKJFHA SLDKJFHALSKDJFHALSKDJFH ALSKDJF ALKSJDHF ALSJDKFHALKJSD FLAKJSD FLKJAHSDF LKJAHSD FLJKAHSDF LKJAHSD FLKJAHSD FLKJAHSDFLKJAHSD LFKJHKLAJSDHFLAKJ SDHFL AKSJDHF LAKJSDHF ALKDJSFH \end{document}
In the image below, all green rectangles have the same height. But the spacing on top of the image caption is smaller than one `\baselineskip` (yellow rectangle) and the space below is larger than `\baselineskip` (red rectangle). But to my university template, everything should be with the same spacing. How to fix this?
