Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I know how to use the subfig package to fit many subfigures (each with its own caption) into a larger figure (with a general caption).

I know how to use the sidecap package, the put a figure's caption on the side of the figure.

What I do not know is how to display a caption inside the figure, as if it were a subfigure. More precisely, I have three subfigures that I would like to fit on a 2x2 layout, with the remaining quadrant used for the caption.

2x2 layout with the Figure's caption in the last quadrant

Is that easy to achieve?

share|improve this question

1 Answer 1

up vote 7 down vote accepted
\documentclass{article}
\usepackage{subfig}

\newcommand{\fakeimage}{{\fboxsep=-\fboxrule\fbox{\rule{0pt}{3cm}\hspace{4cm}}}}

\begin{document}

\begin{figure}
\centering
\subfloat[Caption]{\fakeimage}\quad
\subfloat[Caption]{\fakeimage}\\
\subfloat[Caption]{\fakeimage}\quad
\begin{minipage}[b][3cm][c]{4cm}            
\caption{This is the global caption}\label{globalcaption}
\end{minipage}
\end{figure}

\end{document}

The \fakeimage command is just for producing a blank box; you should clearly see how the dimensions are used for the "caption box".

enter image description here

In order to get a ragged right setting of the caption (which is recommendable for such a narrow space available), adding

\captionsetup{justification=raggedright}

in the minipage environment would be sufficient.

share|improve this answer
    
So simple... Thanks! –  adl Feb 24 '12 at 12:05
    
@barbarabeeton For that one can use the features of the caption package. –  egreg Feb 24 '12 at 13:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.