I have big figures with long captions. My captions are formatted (using the captions package) and look fine, but I would like to customize it a bit more to also have my short description added in blue and bold.
Currently a figure caption has the short description added twice. This seems redundant and prone to errors. The short description also gets used in the list of figures and I want to make sure to have exactly the same short description in both the list and figure itself.
MWE:
\documentclass{book}
\usepackage{caption}
\usepackage{graphicx}
\usepackage{xcolor}
\captionsetup[figure]{font={small, singlespacing, sf},labelfont={color=blue, bf, sf}, indention=.5cm, labelsep=quad}
\begin{document}
\listoffigures
\begin{figure}
\includegraphics[width=0.8\textwidth]{black.png}
\centering
\caption[Short description]{\textbf{\color{blue}Short description} Very long description spanning several lines.}
\label{label}
\end{figure}
\end{document}