Liebe Leute,
ich komme alleine wieder nicht weiter und suche Hilfe.
Ich bin beim Gestalten von Bildertafeln im Anhang meiner Arbeit.
Bei - von Natur aus - gleich hohen Bildern funktionert das mit verschachtelten Minipages super.
Also nach dem Schema:
Begin Seite
Begin Obere (Über)Minipage[ganze Seitenbreite]{
(Unter)Minipage[0.3\Seitenbreite]{Bild mit Captionof} alle Bilder mit \height=z.B. 0.3\textheight
\hfill
(Unter)Minipage[0.3\Seitenbreite]{Bild mit Captionof}
\hfill
(Unter)Minipage[0.3\Seitenbreite]{Bild mit Captionof}
Ende Obere (Über)Minipage
Begin Untere (Über) Minipage
(Unter)Minipage[0.5\Seitenbreite]{Bild mit Captionof} alle Bilder mit \height=z.B. 0.3\textheight
\hfill
(Unter)Minipage[0.5\Seitenbreite]{Bild mit Captionof}
Ende Untere (Über) Minipage
Ende Seite
Aber es kommt doch sehr oft vor, dass die Bilder nicht gleich hoch sind. Dann lässt sich das zwar über die \height-Option von \includegraphics regeln. Aber dann gibt es Probleme mit dem horizontalen Abstand der Minipages zueinander. Weil die ja eine - wenn auch relative - Breitenangabe benötigen. Also Problem ist vielleicht das falsche Wort... Ästhetisches Defizit trifft es besser.
EDIT: Es geht mir darum, dass Bilder mit verschiedenen Proportionen, bei gleicher Höhe nebeneinander mit Bildunterschrift im gleichen Abstand stehen können.
Welche Lösung stelle ich mir vor:
Eine Modifizierung der Minipage-Umgebung, sodass man keine Breite angeben muss, aber dafür eine relative Höhe angeben kann.
Oder:
Eine Modifizierung der parbox, sodass sie in Zusammenhang mit captionof keine Fehler ausgibt.
Wer hat eine Idee?
\documentclass[
pagesize=auto,
paper=a4,
BCOR=1.25cm,
DIV=11,
fontsize=12,
]{scrreprt}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage[format=plain, font=small, figurename=Abb. , justification=RaggedRight]{caption}
\DeclareCaptionLabelSeparator{colona}{: \\ }
\captionsetup[figure]{labelsep=colona}
\usepackage[colorlinks=true, linkcolor=black, urlcolor=black]{hyperref}
\begin{document}
\LARGE{Überschrift}
Variante mit verschachtelten Minipages
\noindent\begin{minipage}{\textwidth}
\captionsetup{type=figure}
\begin{minipage}[t]{0.32\textwidth}
\includegraphics[angle=90, height=0.3\textheight, keepaspectratio]{example-image-a}
\captionof{figure}{Bild 1}\label{A:1}
\end{minipage}
\hfill
\begin{minipage}[t]{0.32\textwidth}
\includegraphics[angle=90, height=0.3\textheight, keepaspectratio]{example-image-golden}
\captionof{figure}{Bild 2}\label{A:2}
\end{minipage}
\hfill
\begin{minipage}[t]{0.32\textwidth}
\includegraphics[angle=90, height=0.3\textheight, keepaspectratio]{example-grid-100x100pt}
\captionof{figure}{Bild 3}\label{A:3}
\end{minipage}
\end{minipage}
\vfill
\noindent\begin{minipage}[t]{\textwidth}
\centering
\captionsetup{type=figure}
\includegraphics[width=\textwidth, height=0.4\textheight]{example-image-b}
\captionof{figure}{Bild 4}\label{A:4}
\end{minipage}
\newpage
Variante mit parbox
\noindent\begin{minipage}{\textwidth}
\parbox [0.5\textheight]{\textwidth} { % Die größere Höhe soll eigentlich auch die caption erfassen. Das führt leider zu Fehlern und es kommt keine Ausgabe zu stande
\includegraphics[height=0.26\textheight, keepaspectratio]{example-image-golden}
\hfill
\includegraphics[angle=90, height=0.26\textheight, keepaspectratio]{example-image-c}
}
\parbox [t] [0.5\textheight]{\textwidth}{ % Versuch, die Captions ohne Fehler darunter zu ordnen. Leider erfolglos...
\captionof{figure}{Bild 5}\label{A:5}
%\hfill
\captionof{figure}{Bild 6}\label{A:6}
}
\end{minipage}
\newpage
Variante ohne verschachtelte Minipages und ohne parbox
\noindent\begin{minipage}{\textwidth}
\captionsetup{type=figure}
{\includegraphics[height=0.26\textheight, keepaspectratio]{example-image-golden}
\captionof{figure}{Bild 5}}
\hfill
{\includegraphics[angle=90, height=0.26\textheight, keepaspectratio]{example-image-c}
\captionof{figure}{Bild 6}\label{A:6}}
\end{minipage}
\end{document}