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.

Is there some way to tell subfig package to place subfigure captions to the left or to the right of subfigures? There is sidecap package which does it for the main captions, but it does not affect subfigure captions.

Or, if subfig does not have this options, which way to do it is the best? I tried to use tabular environment inside the figure, but there were some problems with alignment inside cells.

share|improve this question
3  
I am the maintainer of subfig package. You can request new feature with full details and I will make it avaliable in a few days. bitbucket.org/vafa/subfig/issues?status=new –  IRAN Jan 19 '11 at 5:20
    
Thanks for the offer, Vafa, I filed the request: bitbucket.org/vafa/subfig/issue/1/… . I hope the description is clear. –  Bogdan Jan 19 '11 at 6:51

2 Answers 2

up vote 5 down vote accepted

The subcaption package offers a command called \subcaption which typesets a sub-caption alone and has the same syntax as \caption. You can place this command where you want, i.e. also beside a figure.

Addendum 2011-01-19, Example code:

\documentclass{article}
\usepackage{caption,subcaption}
\begin{document}
\begin{figure}
\parbox[b]{.5\linewidth}{\Large
Insert picture here --
Insert picture here --
Insert picture here --
Insert picture here}%
\hspace{.1\linewidth}%
\parbox[b]{.4\linewidth}{%
\subcaption{This is just a short document to show that
we can place the sub-caption where we want to.}}
\caption{Main caption.}
\end{figure}
\end{document}

Furthermore the floatrow package offers stuff like that (and more).

share|improve this answer
    
As far as I understand, subcaption package only allows you to tune style, but not the relative position of the subcaption. –  Bogdan Jan 19 '11 at 14:32
    
No, that is not true. Since you can place the \subcaption where YOU want it, and because the sub-caption will be typeset where you have placed the \subcaption command, you have total control about its position. Will do some handicraft work right now... (Please hold the line...) –  Axel Sommerfeldt Jan 19 '11 at 19:39

I found the solution with tabular environment, which is a bit messy, but works. It is based on this StackOverflow thread.

\def\imagetop#1{\vtop{\null\hbox{#1}}}

\begin{figure}
    \begin{tabular}{l l}
    \imagetop{\includegraphics{figure1.eps}} & \imagetop{(a)} \\
    \imagetop{\includegraphics{figure2.eps}} & \imagetop{(b)}
    \end{tabular}
    \caption{Main caption.}
\end{figure}
share|improve this answer

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.