I want my figure captions to have the following format:
- Figure number is bold
- First couple of words are the title of the figure and always bold
- Rest of caption is not bold
Here's my MWE:
\documentclass{report}
\usepackage{graphicx}
\usepackage[labelfont=bf,textfont=bf]{caption}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=\textwidth]{cat}
\caption{A cat} depicted sitting at the table.
\end{figure}
\end{document}
This makes the following:
I don't like this because the caption shouldn't be centered and also the non-bold text shouldn't be on a new line. It should look like this:
And the name of the figure in the list of figures (not shown) should be only the bold portion, not the whole thing.
Unacceptable solutions:
- Removing
textfont=bf
and then boldingA cat
- figure caption will be too long in list of figures. - Using the short title parameter of
\caption
- I will end up typing every title twice, it's annoying and violates DRY.
\captionsetup{format=plain, justification=justified, font=bf}
.