章の見出しと表の間の垂直スペース

章の見出しと表の間の垂直スペース

私の付録には、各章の後に 1 つ以上の表が続くだけです。これらの表にはキャプションが付いています。ただし、章の後に単にテキストを書く場合に置かれる通常の垂直スペースの後に表を開始したいと思います。

これを説明するために、非常に短い MWE を示します。ご覧のとおり、見出しと章の間の垂直方向のスペースは、見出しとテキストの間のスペースよりもはるかに大きくなっています。

\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}

編集: スペースが減っていることに気づきました\captionsetup{aboveskip=0pt}。スペースはキャプション パッケージから来ているようですね。使用する適切な値はどれでしょうか (いくつかのテストでは、ゼロではなく、少し負の値である必要があることが示されています)。また、これを付録全体に対してローカルに設定し、前のコンテンツに対しては設定しないようにするにはどうすればよいでしょうか。

元の質問: 見出しと表の間の垂直スペースを、見出しとテキストの間と同じ値に設定するにはどうすればよいですか?

ありがとう!

答え1

このギャップは、

\setlength{\abovecaptionskip}{-12.75pt}

または(ロード後caption

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

上記のコマンドは両方とも、それに続くコードにのみ影響するため、付録を開始した後に単純に配置できることに注意してください。

ムウェ

\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} 

出力

ここに画像の説明を入力してください

答え2

解決策としては、単純に\raggedbottomをローカルにタイプセットするか、テーブルをフロートさせる必要がないことを考慮するかの2つが考えられます。持っている章の見出しの後に置く必要があります。subcaption パッケージを使用して、これを試すことができます。

\chapter{Chapter}

\noindent\begin{minipage}{\textwidth}
\captionsetup{type=table}
\begin{subtable}\caption{description table1}\label{tabA1}Table A.1\end{subtable}
\begin{subtable}\caption{description table2}\label{tabA2}Table A.2\end{subtable}
\begin{subtable}\caption{description table3}\label{tabA3}Table A.3\end{subtable}
\end{minipage}

関連情報