The following MWE:
\documentclass[11pt]{memoir}
\usepackage{caption}
\captionsetup[table]{
listformat=empty,
tablename=Table,
justification=justified,
labelsep=quad,
position=above,
skip=\onelineskip,
width=\linewidth,
labelfont={small},
font={small}
}
\begin{document}
\begin{table}
\caption{A table.}
\end{table}
\end{document}
generates the error message ! Package caption Error: Can be used only in preamble
. If I comment the \captionsetup
command, there is no such error message. I know the class memoir
provides its own tools for captions, but I'd rather use the package caption
for them. Anyone could possibly shed some light on this issue?
EDIT: As soon as I comment the key tablename
, the problem disappears. But even though it works, I wouldn't call it precisely a satisfactory solution.