[OS X TeX] Memoir figure problem

David Arnold dwarnold45 at suddenlink.net
Sun Mar 1 16:16:06 EST 2009


Victor et al,

Thanks for the suggestion. But this:

\documentclass{memoir}
\usepackage{subfig}

\begin{document}
Hello.
\end{document}

Produces this warning in the log file:

Class memoir Warning: You are using the caption package with the memoir
(memoir)              class. This may cause unexpected or inconsistent
(memoir)              results if you use any of memoir's captioning  
facilities.

My code is trying to use memoir's builtin routines, but I'm not sure  
what I am doing wrong.

David.


On Mar 1, 2009, at 11:48 AM, Victor Ivrii wrote:

On Sun, Mar 1, 2009 at 2:26 PM, David Arnold  
<dwarnold45 at suddenlink.net> wrote:
> All,
>
> I am trying an example from memman.pdf using the memoir class.
>
> \documentclass{memoir}
>
> \begin{document}
>
> \begin{figure}
> \centering
> \begin{minipage}{0.45\textwidth}
> Hello
> \subcaption{Bar chart.}
> \end{minipage}\hfill
> \begin{minipage}{0.45\textwidth}
> Hello
> \subcaption{Bar chart.}
> \end{minipage}
> \caption{my caption\label{fig:BarAndLinePlot}
> \end{figure}
>
> \end{verbatim}
>
> \end{document}
>
> I am getting this error:
>
> ! LaTeX Error: No counter 'subfigure' defined.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type  H <return>  for immediate help.
>  ...
>
> l.9 \subcaption
>               {Bar chart.}
>
> Any suggestions?
>
> David.
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
>
>

Use package subfig and {subfloat} instead of {subfigure}
Also you do not need to encapsulate subfloats into minipage


-- 
========================
Victor Ivrii, Professor, Department of Mathematics, University of  
Toronto
http://www.math.toronto.edu/ivrii
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
List Archive: http://tug.org/pipermail/macostex-archives/
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex





More information about the MacOSX-TeX mailing list