I am trying to have two subfigures inside a figure (one on top of the
other) and I am using the package memoir.
- Using the \subfigure command without importing subfigure doesn't
work.
- Importing subfigure doesn't work:
(/usr/share/texmf-dist/tex/latex/subfigure/subfigure.sty
! LaTeX Error: Command \c@lofdepth already defined.
Or name \end... illegal, see p.192 of the manual.
- Using \subbottom instead of \subfigure doesn't work:
! LaTeX Error: No counter 'subfigure' defined.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.288 \subbottom
[First]{\includegraphics{normaldist.pdf}} \\
- Defining a new counter with \newcounter{subfigure}[figure] doesn't
work:
<use ./figures/priorities.pdf>
! Undefined control sequence.
\@memsubfigcaptionlist ...berline{\@@thesubfigure
}{\ignorespaces
First}}
l.289 ...Second]{\includegraphics{priorities.pdf}}
I am using the latest version of memoir.
Any tips on how to use subfigures?
Thanks,
Paulo Matos
> Any tips on how to use subfigures?
Not to use it at all as {subfigures} is superseded by {subfig}
with common command \subfloat for s/figures and s/tables
I use it regularly with memoir
HTH Victor
>
> Thanks,
>
> Paulo Matos
I was actually wondering how to caption those subfloats since I tried
with:
\subfloat[Caption]{...float...}
but this seems to create the float but then the text "[Caption]" shows
up before the float... so I guess this is not the right way to do it.
Any tips?
>
>
> > Thanks,
>
> > Paulo Matos
\documentclass{memoir}
\usepackage{subfig}
\begin{document}
\begin{figure}
\centering
\subfloat[caption]{\rule{3cm}{3cm}}
\caption{sdf}
\label{fig:sdf}
\end{figure}
\end{document}
more details on memoirs own subfloats, see the memoir manual
/daleif