ich möchte zwei Bilder untereinander in Figure-Um gebung darstellen. Hierzu habe ich mir ein Makro geschrieben (da das mehrfach vorkommt):
\newcommand{\bildBB}[4]{ \begin{figure} \setcapindent{1em} \begin{minipage}{0.96\textwidth} \centering \includegraphics[width=0.8\textwidth]{#1.jpg} \caption{#3} \label{fig:#1} \end{minipage}\hfill \setcapindent{1em} \begin{minipage}{0.96\textwidth} \centering \includegraphics[width=0.8\textwidth]{#2.jpg} \caption{#4} \label{fig:#2} \end{minipage}\hfill \end{figure} }
Wie kann ich hochformatige Fotos schmaler formatieren?
Algorithmisch etwa so:
if (Width> Height) return width=0.8\textwidth else return width=0.5\textwidth