This is similar to this question about using subfigures in memoir class and this one about using subfigure memoir and hyperref together
Is it possible to use memoir class with sucaption package?
I tried dissemulating the ccaption
packages but it doesn't work.
\DisemulatePackage{ccaption}
\documentclass[a4paper,12pt,fleqn,openany]{memoir}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\begin{subfigure}[b]{.5\linewidth}
\centering\large A
\caption{A subfigure}\label{fig:1a}
\end{subfigure}%
\begin{subfigure}[b]{.5\linewidth}
\centering\large B
\caption{Another subfigure}\label{fig:1b}
\end{subfigure}
\caption{A figure}\label{fig:1}
\end{figure}
\end{document}
I get the following error
LaTeX Error: Command \subcaption already defined.
LaTeX Error: Command \subfloat already defined.
any ideas?
Update
This doesn't work with hyperref
... Adding
\usepackage{hyperref}
leads to compilation errors.
So the new question is, is it possible to use memoir class with sucaption and hyperref packages? Are the 3 packages compatible?