Menu

HowTo_ListOfNoChapterGap

Wie man Gleitumgebungsverzeichnisse wie das Tabellen- oder Abbildungsverzeichnis bei scrreprt oder scrbook ohne Abstand für neue Kapitel setzen kann

Die Klassen scrreprt und scrbook fügen normalerweise in Gleitumgebungsverzeichnisse beim Kapitelwechsel einen kleinen vertikalen Abstand ein. Insbesondere, wenn man die Nummerierung der Gleitumgebungen beispielsweise per

\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}

unabhängig von der Kapitelnummerierung und damit dokumentweit durchgehend ändert, kann es sinnvoll sein, diesen Abstand abzuschalten. Am einfachsten geht das bei den beiden KOMA-Script-Klassen mit der Option listof=nochaptergap:

\documentclass[listof=nochaptergap]{scrbook}
\usepackage{mwe}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\begin{document}
\tableofcontents
\listoffigures
\listoftables
\chapter{The first chapter}
\blindtext
\begin{figure}
  \centering
  \includegraphics{example-image-a}
  \caption{Example A image in chapter \thechapter}
\end{figure}
\begin{table}
  \caption{Example for a missing table}  
\end{table}

\blindtext
\begin{table}
  \caption{Example for another missing table}  
\end{table}
\begin{figure}
  \centering
  \includegraphics{example-image-b}
  \caption{Example B image in chapter \thechapter}
\end{figure}

\chapter{One more chapter}
\blindtext
\begin{figure}
  \centering
  \includegraphics{example-image-a}
  \caption{Example A image in chapter \thechapter}
\end{figure}
\begin{table}
  \caption{Example for a missing table}  
\end{table}

\blindtext
\begin{table}
  \caption{Example for another missing table}  
\end{table}
\begin{figure}
  \centering
  \includegraphics{example-image-b}
  \caption{Example B image in chapter \thechapter}
\end{figure}
\end{document}

Hinweis: Nach Änderungen von Option listof werden mindestens zwei LaTeX-Läufe benötigt, um die Auswirkungen im PDF zu sehen.


Related

Wiki (Deutsch): HowTo_ToCConfiguration

MongoDB Logo MongoDB