Is the LaTeX package caption compatible with KOMA-Script classes like scrreprt?
(I did not find anything about that in the KOMA-Script manual, but as KOMA-Script redefines a lot for the floats and captions, I wonder if there might be problems.)
Is the LaTeX package caption compatible with KOMA-Script classes like scrreprt?
(I did not find anything about that in the KOMA-Script manual, but as KOMA-Script redefines a lot for the floats and captions, I wonder if there might be problems.)
See section 5.4 of the caption manual for an overview of the interplay between KOMA-script and caption. Quoting the "Side effects":
The optional argument of
\setcapwidthis not supported and will be ignored if used in conjunction with thecaptionpackage. Furthermore theKOMA-Scriptoptionstablecaptionabove&tablecaptionbelowand the commands\captionabove&\captionbeloware stronger than theposition=setting offered by thecaptionpackage.
At the start of figure or table, KOMA redefines \caption to be either \captionabove or \captionbelow. This forces them to use the caption package \caption.
\documentclass{scrartcl}
\usepackage{caption}
\makeatletter
\let\x@caption\caption% original (caption package) \caption
\renewcommand{\captionabove}{\captionsetup{position=above}\x@caption}%
\renewcommand{\captionbelow}{\captionsetup{position=below}\x@caption}%
\makeatother
\begin{document}
\listoffigures
\begin{figure}
\captionsetup{singlelinecheck=false}
\caption{should be left justified}
\end{figure}
\end{document}
memoir is not a KOMA-Script class. Furthermore, all KOMA-Script classes have and use \captionabove and \captionbelow and you can configure them using option captions. And you do not need to redefine \captionabove or \captionbelow.
– Schweinebacke
Jul 25 '17 at 07:12