As a document class, memoir
provides sub-float support out of the box. As such, it may have some compatibility problems with packages (extensions) provided by packages like subcaption
or caption
. Hence, the errors/warnings being displayed during compilation.
Given your code snippet, here's what a comparable version would look like in memoir
:
\documentclass{memoir}% http://ctan.org/pkg/memoir
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\newsubfloat{figure}% Allow subfloats in figure environment
\begin{document}
\begin{figure}
\centering
\subbottom[Increase]{%
\includegraphics[width=0.3\linewidth]{example-image-a}}
\subbottom[Increase]{%
\includegraphics[width=0.3\linewidth]{example-image-b}}
\subbottom[Increase]{%
\includegraphics[width=0.3\linewidth]{example-image-c}}
\caption{Round}
\end{figure}
\end{document}
\newsubfloat
creates the appropriate interface and output-generating structure for a sub-float environment. \subbottom[<ToC>][<caption>]{<stuff>}
sets a sub-float with a caption at the bottom (a counterpart to \subtop
).
This is a little confusing to do. Remember that class options are not dynamic, so since 13pt
is not hardcoded into the class, memoir
does not recognize it. Instead we need to use the provided interface (page 3-4 in the memoir manual).
Firstly you need to place your mem13.clo
in a place where LaTeX can find it. For testing it is easiest to just palce it in the same folder as your .tex
file. If placed elsewhere, then as Mico says in a comment, you need to update the filename DB.
Secondly, we need to use the *pt
option to tell memoir
to use a user defined font size file, the name of which HAS to be declared BEFORE \documentclass
, as placeing it after \documentclass
after it will be too late (a macro like \normalsize
or \normalfont
might be issued by the class while loading).
This works:
\newcommand*{\anyptfilebase}{mem}
\newcommand*{\anyptsize}{13}
\documentclass[a4paper,*pt]{memoir}
\begin{document}
test
\end{document}
I have the mem13.clo
in current dir, and in the log I can find the tell-tell
(./mem13.clo)
showing that it was loaded.
Yes the interface it a little clunky, but that is due to the fact that we need the clo to be loaded by the class at the right time. Plus memoir
does not support key=value
class options
Best Answer
As egreg mentioned in his comment, you should use
memoir
's commands\captionnamefont
and\captiontitlefont
: