2

How can I have two figure side by side with two captions and in the floating format, like

fig. 10A. some caption                fig. 10B. some caption
Ruben
  • 13,448
khaled
  • 1,435
  • Hi! Have you seen the subfig, or the subcaption packages? – yo' Dec 14 '13 at 00:07
  • 1
    @Ruben I've first thought it's a duplicate, but it's not. That one asks for numbering like Fig 10, Fig 11, this one wants Fig 10a, Fig 10b. – yo' Dec 14 '13 at 00:09
  • @tohecz you are totally right. And you alredy suggested the use of subfig. Why not adding it as an answer? – Ruben Dec 14 '13 at 00:13
  • @Ruben Because I know that the question was asked before, I just can't find it. Moreover, I've never used subfig myself, so I'm just leaving it to someone else ;) – yo' Dec 14 '13 at 00:15

1 Answers1

1
\documentclass{article}
\usepackage{subfig}
\usepackage[pdftex]{graphicx} %ifpdf
\makeatletter
  \def\thesubfigure{Fig. \@arabic\c@figure\Alph{subfigure}.}
\makeatother

\begin{document}
\begin{figure}
\centering
\subfloat[Some caption]{\rule{.45\textwidth}{3cm}} %replace \rule... with \includegraphics[width=0.45\textwidth]{picname}
\hspace{2em}
\subfloat[Some other caption]{\rule{.45\textwidth}{3cm}} %idem
%\caption{Some caption title}
\end{figure}
\end{document}

subcap_demo

Ruben
  • 13,448