[Tex/LaTex] Vertical space between chapter heading and table

spacingtablesvertical alignment

In my appendix I have only chapters followed by one or more tables each. These tables are captioned. But I'd like the tables to begin after the usual vertical space which is put if you simply write some text following a chapter.

Here is a very short MWE to illustrate this. As you can see, the vertical space between the heading and the chapter is much bigger than the one between the heading and some text.

\documentclass[a4paper, 12pt, headsepline, smallheadings,]{scrreprt}
\usepackage{booktabs}
\usepackage[showframe]{geometry}
\renewcommand*{\chapterheadstartvskip}{\vspace{-1\baselineskip}}
\begin{document}
\chapter{Chapter}
\begin{table}[h]
\caption[title table 1]{description table 1}
\fbox{content}
\end{table}
\chapter{Chapter}
aaa
\end{document}

edit: I realized that \captionsetup{aboveskip=0pt} reduces the space. So the space seems to come from the caption package? What is the right value to use (some tests have shown that it's not zero but has to be a little negative)? Also how can I set this locally for the whole appendix but not for the content before?

Original question: How can the vertical space between the heading and the table be set to the same value as between the heading and the text?

Thanks!

Best Answer

You can remove that gap either issuing

\setlength{\abovecaptionskip}{-12.75pt}

or (after loading caption)

\captionsetup[table]{aboveskip=-12.75pt}

Note that both the above commands affect only the code that follows them, so you can simply put them after you start with the appendices.

MWE

\documentclass[a4paper, 12pt, headsepline, smallheadings,]{scrreprt}
\usepackage{booktabs}
\usepackage[showframe]{geometry}
\renewcommand*{\chapterheadstartvskip}{\vspace{-1\baselineskip}}
\begin{document}
\setlength{\abovecaptionskip}{-12.75pt}
\chapter{Chapter}
\begin{table}[h]
\caption[title table 1]{description table 1}
\fbox{content}
\end{table}
\chapter{Chapter}
aaa
\end{document} 

Output

enter image description here

Related Question