Sign up ×
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 switched to using the memoir class and stopped including subfigures. All of my subfigures now interpret the caption as actual text, i.e. as [caption...], which shows up in the document with the square brackets. How do I created captioned subfigures using memoir?

share|improve this question

2 Answers 2

up vote 6 down vote accepted



to activate


inside environments.

share|improve this answer
I'm sorry, I don't think I know how to use it. It says 'no counter "<float>" defined' – Neil G Aug 6 '10 at 7:59
\newsubfloat{figure} if you want to use \subtop or \subbottom inside a figure environment. \newsubfloat{table} for tables. – Leo Liu Aug 6 '10 at 8:14

In addition to Marin's answer, if you also want to use cleveref with memoir, I have found sub figures can not be properly referenced unless loading subfig. Here is what I do:


so that I can continue using \subtop and if one day I decide to drop subfig my document needs no change.

A full example can look like this:

  \subtop[1 pass]{\includegraphics{eye1}}%
  \subtop[5 passes]{\includegraphics{eye5}}%
  \caption{loop performance comparison}
share|improve this answer
how do you add captions? – Neil G Aug 6 '10 at 8:04
For sub captions: \subtop[caption]{\includegraphics{fig1}} – Leo Liu Aug 6 '10 at 8:11
Thanks! I wasn't able to include subfig though: ! Missing \endcsname inserted. <to be read again> \@classoptionslist l.297 \ProcessPackageOptions – Neil G Aug 6 '10 at 8:15
I added an example. – Leo Liu Aug 6 '10 at 8:37
Thanks, it works, but I get this weird warning: pdfTeX warning (ext4): destination with the same identifier (name{subfigure.2}) has been already used, duplicate ignored Any ideas? – Neil G Aug 6 '10 at 8:42

Your Answer


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.