Quero usar o ambiente itemize dentro de uma legenda suspensa, mas o recuo é igual ao do corpo principal. Gostaria que a listagem fosse recuada da legenda suspensa.
\documentclass{scrbook}
\usepackage{caption}
\begin{document}
foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo
\begin{itemize}
\item bar
\end{itemize}
\begin{figure}
\captionsetup{singlelinecheck=off}
\caption[foo bar]{foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
\begin{itemize}
\item this listing belongs to the caption
\item but looks as if it was part of the body
\end{itemize}}
\end{figure}
\end{document}
Responder1
Parece provável que tal configuração possa ser uma exclusão e não a norma. Portanto, defina os itens manualmente usando \textbullet
um espaçamento apropriado itemize
.
\documentclass{scrbook}
\usepackage{caption}
\begin{document}
foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo
\begin{itemize}
\item bar
\end{itemize}
\begin{figure}
\captionsetup{singlelinecheck=off}
\caption[foo bar]{foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
\textbullet \hspace{\labelsep}this listing belongs to the caption
\textbullet \hspace{\labelsep}but looks as if it was part of the body
}
\end{figure}
\end{document}
Você também pode definir o conteúdo em um tabularx
ambiente:
\documentclass{scrbook}
\usepackage{caption,tabularx}
\begin{document}
foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo
\begin{itemize}
\item bar
\end{itemize}
\begin{figure}
\captionsetup{singlelinecheck=off}
\caption[foo bar]{foo foo foo foo foo foo foo foo foo foo foo foo
foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo
\medskip
\noindent
\begin{tabularx}{\linewidth}{@{\phantom{\figurename~\thefigure:~}} l @{\hspace{\labelsep}} X @{}}
\textbullet & this listing belongs to the caption \\
\textbullet & but looks as if it was part of the body
\end{tabularx}}
\end{figure}
\end{document}