Quiero usar el entorno detallado dentro de un título colgante, pero la sangría es igual que en el cuerpo principal. Me gustaría que la lista tenga una sangría del título colgante.
\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}
Respuesta1
Parece probable que tal configuración sea una exclusión más que la norma. Por lo tanto, configure los elementos manualmente usando \textbullet
un itemize
espaciado apropiado.
\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}
También puede configurar el contenido en un tabularx
entorno:
\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}