2

I would like to show inside my doc sub-images with the following schema:

schema

How can I do that? Regards, vi.

1 Answer 1

3

A possibility using \subcaptionbox from the subcaption package:

\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}

\begin{document}

\begin{figure}
\centering
\subcaptionbox{}{\includegraphics[height=4cm]{example-image-a}}\hfill
\subcaptionbox{}{\includegraphics[height=4cm]{example-image-b}}\par
\subcaptionbox{}{\includegraphics[width=.8\textwidth,height=3cm]{example-image-c}}
\end{figure}

\end{document}

enter image description here

Add

\captionsetup[subfigure]{labelformat=brace}

if you only want a right parenthesis for the label.

In a comment it was requested to do the same using subfig instead of subcaption; here's how:

\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}

\begin{document}

\begin{figure}
\centering
\subfloat[]{\includegraphics[height=4cm]{example-image-a}}\hfill
\subfloat[]{\includegraphics[height=4cm]{example-image-b}}\par
\subfloat[]{\includegraphics[width=.8\textwidth,height=3cm]{example-image-c}}
\end{figure}

\end{document}
3
  • Is it possible to use subfig package instead of subcaption?
    – vdenotaris
    Sep 16, 2013 at 17:27
  • @vdenotaris sure! I'll update the answer. Sep 16, 2013 at 17:33
  • @vdenotaris answer updated. Sep 16, 2013 at 17:34

You must log in to answer this question.

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