3

What I am trying to achieve is this:

AA B
AA C

A being one subfigure, B+C a second. However, I don't achieve the line break between B and C:

\documentclass{article}
\usepackage{subfig}
\usepackage{mwe}
%\usepackage[showframe]{geometry}
\begin{document}
    \begin{figure}
        \subfloat[]{%
            \includegraphics[width=0.6666\linewidth]{example-image-a}}
        \subfloat[]{%
            \includegraphics[width=0.3333\linewidth]{example-image-b}\\
            \includegraphics[width=0.3333\linewidth]{example-image-c}}
    \end{figure}
\end{document}

It basically looks like this:

AA 
AA BC

What am I doing wrong?

5
  • either of the first two links in the related list on the right shows how to force a linebreak in subfig May 11, 2016 at 17:51
  • The second one is tex.stackexchange.com/questions/125287 and the answer is about the subcaption package.
    – bers
    May 11, 2016 at 17:56
  • The first one is tex.stackexchange.com/questions/31420 and recommends using \shortstack. However, changing \\ into \shortstack{\\} gives Misplaced \cr.
    – bers
    May 11, 2016 at 18:07
  • 1
    it means \shortstack{\includegraphics{} \\ \includegraphics{}} (it is just a form of compressed tabular) May 11, 2016 at 19:00
  • Oh, I incorrectly assumed \shortstack was for text only. Thanks, much simpler than a table or a minipage!
    – bers
    May 11, 2016 at 23:58

1 Answer 1

6

Try

\documentclass{article}
\usepackage{subfig}
\usepackage{mwe}
%\usepackage[showframe]{geometry}
\begin{document}
    \begin{figure}
        \subfloat[]{%
            \includegraphics[width=0.6666\linewidth]{example-image-a}}
        \subfloat[]{\begin{tabular}[b]{c}%
            \includegraphics[width=0.3333\linewidth]{example-image-b}\\            
            \includegraphics[width=0.3333\linewidth]{example-image-c}
                    \end{tabular}}
    \end{figure}
\end{document}

enter image description here

It seems that inside subfloat is not possible to break line, so I put both figures in tabular` environment.

2
  • Thanks for the suggestion! The spacing is not optimal, but maybe a minipage will improve that.
    – bers
    May 11, 2016 at 18:00
  • @bers, I didn't bother with spacing, but it can be done also with use of tabular. horizontal distance between A and B you can set with \hspace {<length>} or hfil between subfloats, vertical distance between image b and c with `\[<length>] after first row of table. To set the same height ... you can guess image with which will give desired height of image or, more complex approach, first you measure of height of right subfloat and than with it adjust height of image in the lest subfloat.
    – Zarko
    May 11, 2016 at 18:09

You must log in to answer this question.

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