.png)
Ich versuche, Unterbeschriftungen für Unterabbildungen in einer Abbildung anzupassen, die mehrere \subfloatrow
„s“ und ein zusätzliches \ffigbox
außerhalb der Zeilen enthält.
Wie kann ich den vertikalen Abstand zwischen Unterabbildung und Unterüberschrift sowie zwischen Unterüberschrift und einer darunter liegenden Unterabbildung ändern? Ich möchte, dass die Unterüberschrift näher an der Unterabbildung und etwas weiter von einer darunter liegenden Unterabbildung entfernt ist.
Code:
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[valign=c,heightadjust=all]{floatrow}
\begin{document}
\begin{figure}
\centering
\captionsetup[subfloatrow]{font+={footnotesize}}%
\floatbox{figure}{%
\begin{subfloatrow}[2]
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\end{subfloatrow}
\begin{subfloatrow}[3]
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\end{subfloatrow}
\begin{subfloatrow}[3]
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\end{subfloatrow}
\begin{subfloatrow}[2]
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\end{subfloatrow}
\ffigbox{%
\includegraphics[height=8em]{example-image-a}}{\subcaption*{Sub-Caption}}
}{%
\caption{Caption}\label{fig:label}%
}
\end{figure}
\end{document}
Guntrams Frageist ähnlich, wurde aber seit über 2 Jahren nicht mehr beantwortet. In den Kommentaren wird vorgeschlagen, die Verwendung von aufzugeben floatrow
. Ich glaube jedoch, dass dies mit den caption
/ subcaption
-Paketen funktionieren soll. Zumindest steht das so in der Dokumentation.
Allerdings finde ich floatrow
die Dokumentation überhaupt nicht einfach und kann nicht wirklich herausfinden, wie caption
- subcaption
- floatrow
gut zusammenarbeiten sollen.
Antwort1
Die Steuerung des vertikalen Abstands zwischen den Zeilen ist in der Dokumentation gut versteckt: Sie müssen einen Schlüssel über deklarieren \DeclareFloatVCode
und mit dessen Anwendung anfordern \floatsetup{rowpostcode= …}
. Die Schriftgröße kann über geändert werden \captionsetup[subfigure]
und der vertikale Abstand zwischen Abbildung und Überschrift wird mit festgelegt \floatsetup{captionskip= …}
.
Hier ist ein (abscheuliches) Beispiel:
\documentclass{article}
\usepackage[showframe, margin=25mm]{geometry}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage[,heightadjust=all]{floatrow}
\DeclareFloatVCode{largevskip}%
{\vskip 20pt}
\floatsetup{captionskip=0pt,rowpostcode =largevskip, valign=c }%
\captionsetup[subfigure]{font =Large}
\begin{document}
\begin{figure}
\centering-%
\floatbox{figure}{%
\begin{subfloatrow}[2]
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\end{subfloatrow}
\begin{subfloatrow}[3]
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\end{subfloatrow}
\begin{subfloatrow}[3]
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\end{subfloatrow}
\begin{subfloatrow}[2]
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\ffigbox[\FBwidth]{%
\includegraphics[height=8em]{example-image-a}}{\caption*{Sub-Caption}}
\end{subfloatrow}
\ffigbox{%
\includegraphics[height=8em]{example-image-a}}{\subcaption*{Sub-Caption}}
}{%
\caption{Caption}\label{fig:label}%
}
\end{figure}
\end{document}