Seite 1 von 1

Subcaptionbox

Verfasst: Fr 23. Mär 2018, 13:42
von Patty
Hallo zusammen,

ich habe den untenstehenden Beispielcode erstellt.

Daran gefällt mir aber nicht, dass zwischen den beiden "Bilderreihen" ein so geringer Abstand ist.
Wie könnte ich den Abstand denn vergrößern?

Grüße
Patty
\documentclass{article}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{graphicx} % H in figure
\begin{document}
\begin{figure}
	\centering
	\subcaptionbox{Bild 1\label{test:Bild1}}
								[.4\linewidth]{\includegraphics[width=0.30\linewidth]{test.png}}
  \subcaptionbox{Bild 2\label{test:Bild2}}
								[.4\linewidth]{\includegraphics[width=0.30\linewidth]{test.png}}
	\subcaptionbox{Bild 3\label{test:Bild3}}
								[.4\linewidth]{\includegraphics[width=0.30\linewidth]{test.png}}
	\subcaptionbox{Bild 4\label{test:Bild4}}
								[.4\linewidth]{\includegraphics[width=0.30\linewidth]{test.png}}
	\caption{Anordnung der Bilder}
	\label{fig:Bilder}
\end{figure}
\end{document}

Verfasst: Fr 23. Mär 2018, 13:56
von Gast
Was hindert dich, mehr Abstand nach Belieben einzufügen:
[\documentclass{article}
\usepackage{caption}
\usepackage{subcaption}
\usepackage[demo]{graphicx} % H in figure
\begin{document}
\begin{figure}
   \centering
   \subcaptionbox{Bild 1\label{test:Bild1}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{test.png}}
  \subcaptionbox{Bild 2\label{test:Bild2}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{test.png}}
                        
                        \bigskip
   \subcaptionbox{Bild 3\label{test:Bild3}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{test.png}}
   \subcaptionbox{Bild 4\label{test:Bild4}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{test.png}}
   \caption{Anordnung der Bilder}
   \label{fig:Bilder}
\end{figure}
\end{document}

Verfasst: Fr 23. Mär 2018, 13:57
von markusv
Mit \bigskip solltest du den gewünschten Abstand bekommen. Individuell geht's natürlich immer über \vspace{<Wert>}
\documentclass{article}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{graphicx}
\begin{document}
\begin{figure}
   \centering
   \subcaptionbox{Bild 1\label{test:Bild1}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{example-image}}
  \subcaptionbox{Bild 2\label{test:Bild2}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{example-image}}\par\bigskip
  \subcaptionbox{Bild 3\label{test:Bild3}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{example-image}}
  \subcaptionbox{Bild 4\label{test:Bild4}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{example-image}}
   \caption{Anordnung der Bilder}
   \label{fig:Bilder}
\end{figure}
\end{document}

Verfasst: Fr 23. Mär 2018, 13:57
von Gast
Der Kommentar bezüglich graphicx ist übrigens falsch. Und wenn du wissen willst, warum ich beim Laden von graphicx Option demo hinzugefügt habe: → Minimalbeispiel

Verfasst: Fr 23. Mär 2018, 18:16
von Patty
markusv hat geschrieben:Mit \bigskip solltest du den gewünschten Abstand bekommen. Individuell geht's natürlich immer über \vspace{<Wert>}
\documentclass{article}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{graphicx}
\begin{document}
\begin{figure}
   \centering
   \subcaptionbox{Bild 1\label{test:Bild1}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{example-image}}
  \subcaptionbox{Bild 2\label{test:Bild2}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{example-image}}\par\bigskip
  \subcaptionbox{Bild 3\label{test:Bild3}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{example-image}}
  \subcaptionbox{Bild 4\label{test:Bild4}}
                        [.4\linewidth]{\includegraphics[width=0.30\linewidth]{example-image}}
   \caption{Anordnung der Bilder}
   \label{fig:Bilder}
\end{figure}
\end{document}
Vielen Dank.
Das hat zum gewünschten Ergebnis geführt!
Grüße
Patty

Verfasst: Fr 23. Mär 2018, 18:17
von Patty
Anonymous hat geschrieben:Der Kommentar bezüglich graphicx ist übrigens falsch. Und wenn du wissen willst, warum ich beim Laden von graphicx Option demo hinzugefügt habe: → Minimalbeispiel
Danke für den Link.
Grüße
Patty