Das Ziel besteht darin, mehrere (oft recht große) aufeinanderfolgende Tabellen mit Überschriften innerhalb der jeweiligen Kapitel anzuordnen, zum Beispiel: Kapitel 1, Tabelle 1.1, Tabelle 1.2, Tabelle 1.3 --- Kapitel 2, Tabelle 2.1, Tabelle 2.2 …
Zwischen den Tabellen befindet sich kein Text. Die Tabellen sind im üblichen Tabellenformat (siehe MWE), das ich nach Möglichkeit beibehalten möchte.
Hier sind zwei Bilder aus dem folgenden MWE. Das erste zeigt ein Kapitel, einen zufälligen Text und den normalen Abstand, den ich nach jedem neuen Kapitel im Dokument erreichen wollte, mit der Bezeichnung „Zielabstand“.
Das zweite Bild zeigt, dass der Abstand zwischen Kapiteln und Tabellen größer ist als normal:
Hier ist das MWE:
\documentclass[a4paper, 12pt, headsepline, smallheadings,]{scrreprt}
\usepackage{booktabs}
\usepackage[labelfont={small,bf}, textfont=small, labelsep=colon,singlelinecheck=false,format=plain, parindent=1em]{caption}
\usepackage[a4paper]{geometry}
\renewcommand*{\chapterheadstartvskip}{\vspace{-1.8\baselineskip}}
\raggedbottom
\begin{document}
\chapter{B}
Some text to show the target distance from a chapter headline
\chapter{A}
\begin{table}[h]
\caption{Description}
\begin{tabular}{lccccc}
\toprule
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
\bottomrule
\end{tabular}
\end{table}
\begin{table}[h]
\caption{Description}
\begin{tabular}{lccccc}
\toprule
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE &
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
\bottomrule
\end{tabular}
\end{table}
\begin{table}[h]
\caption{Description}
{\scriptsize
\begin{tabular}{lccccc}
\toprule
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
ABCDE & ABCDE & ABCDE & ABCDE & ABCDE & ABCDE \\
\bottomrule
\end{tabular}
}
\end{table}
\end{document}
Viele Grüße, Tom.
Antwort1
@karlkoeller hat in einem anderen Thread einen Teil des Problems mithilfe des Befehls gelöst \setlength{\abovecaptionskip}{-x pt}
. Dies löst das Distanzproblem für Seiten, die eine Überschrift enthalten.
Bei Seiten, die keine Überschrift enthalten, kann das Schweben von ursprünglich schwebenden Tabellen (z.B. Seite 3 des MWE) dadurch verhindert werden, dass man das float
-Paket lädt und den Floating-Parameter auf setzt [H]
. Anschließend kann der Zielabstand durch vspace
Ausprobieren mit eingestellt werden.
Dies ist die Lösung, die ich derzeit verwende. Wenn jemand eine bessere hat, kann er sie gerne posten.