2

I want to put three images in a figure. Two shall be above each other on the right. The third one shall be on the left. The left picture shall be vertically centered. I tried several approaches using minipage and multirow. However, I always have a problem with the vertical alignment of the left image. Can anybody give me a hint how to achieve my goal?

\documentclass[a4paper,10pt]{scrreprt}
\usepackage[T1]{fontenc}
% \usepackage[utf8]{inputenc}
\usepackage[latin1]{inputenc}
\usepackage{geometry}
\geometry{a4paper,left=25mm,right=25mm, top=25mm, bottom=25mm}
\usepackage{multirow}
\usepackage{subcaption}
\usepackage{tikz}

\begin{document}

\begin{figure}[htbp]
\begin{tabular}{cc}
\multirow{2}{*}{
\begin{subfigure}[t]{0.48\textwidth}
\centering
\includegraphics[height=.22\textheight]{example-image-a}
\caption{Subcaption left}
\end{subfigure}
}
&
\begin{subfigure}[t]{0.48\textwidth}
\centering
\includegraphics[height=.18\textheight]{example-image-b}
\caption{Subcaption upper right}
\end{subfigure}
\\
&
\begin{subfigure}[t]{0.48\textwidth}
\centering
\includegraphics[height=.12\textheight]{example-image-c}
\caption{Subcaption lower right}
\end{subfigure}
\end{tabular}
\caption{Caption}
\end{figure}

\end{document}
3
  • Does this help: tex.stackexchange.com/questions/124537/… Apr 17, 2015 at 14:17
  • Remove all [t] after \begin{subfigure} which gives already a slightly better result, but the solution that @StevenB.Segletes mentioned is really better.
    – crixstox
    Apr 17, 2015 at 14:23
  • @StevenB.Segletes : Indeed, the thread helped. Thx
    – raedma
    Apr 21, 2015 at 12:38

1 Answer 1

1

A possiblity using floatrow package based on this thread:

\documentclass[a4paper,10pt]{scrreprt}
\usepackage[T1]{fontenc}
% \usepackage[utf8]{inputenc}
\usepackage[latin1]{inputenc}
\usepackage{floatrow}
\usepackage{geometry}
\geometry{a4paper,left=25mm,right=25mm, top=25mm, bottom=25mm}
\usepackage{subcaption}
\usepackage{tikz}

\begin{document}

\begin{figure}[htbp]
\centering
\ffigbox[7.8cm]{%
  \begin{subfloatrow}
\ffigbox[\FBwidth][]{\caption{A large subfigure}\label{sfig:testc}}{\includegraphics[width=3cm,height=7cm]{example-image-c}}
  \end{subfloatrow}
  \hspace*{\columnsep}
  \begin{subfloatrow}
\vbox to 7.35cm{
  \ffigbox[\FBwidth]{\caption{small subfigure A}\label{sfig:testa}}
  {\includegraphics[width=3cm,height=3cm]{example-image-a}}
  \vss
  \ffigbox[\FBwidth]
  {\caption{small subfigure B}\label{sfig:testb}}
  {\includegraphics[width=3cm,height=2cm]{example-image-b}}
}
  \end{subfloatrow}
  }{
  \caption{three subfigures}
  \label{fig:test}
  }
\end{figure}

\end{document}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .