I am writing a document with margin figures, an environment that comes with sidenotes.
I want to change the caption for those figures, with the caption package. But doing
\usepackage{caption}
\captionsetup[marginfigure]{
labelfont=bf, % for example,
}
doesn't make the caption label in bold, and indeed the log tells me about it:
Package caption Warning: Unused \captionsetup[marginfigure] on input line 6.
See the caption package documentation for explanation.
Is it possible to blend the marginfigure environment with caption?
\documentclass{book}
\usepackage[utf8]{inputenc}
\usepackage{graphicx,sidenotes,caption}
\captionsetup[marginfigure]{
labelfont=bf, % for example,
}
\begin{document}
Lorem ipsum.
\begin{marginfigure}
\includegraphics[width=\marginparwidth]{example-image}
\caption{Caption for the margin figure.}
\end{marginfigure}
\end{document}




\captionsetup[marginfigure]? In the caption manual, I git zero hits formarginfigure? – Dr. Manuel Kuehner Feb 11 '22 at 02:25