I just wrote a long 200 pages documents with Latex, and realized a small issue. All my figure have the following format:
\documentclass[a4paper,11pt,fleqn]{book}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[french,german,english]{babel}
\usepackage{graphicx}
\begin{document}
\begin{figure}[!ht]
\centering
\includegraphics[width=0.9\textwidth]{image.pdf}
\caption[Short Description]{Long Description}
\label{fig:test}
\end{figure}
\end{document}
The caption of this figure reads as "Figure 1.1 - Long Description".
And the short description is only shown in my list of figures. Is there a way to automatically add the short description at the beginning of the long description, in bold? Such that I don't need to edit all the figures manually?
So it would read as: "Figure 1.1 - Short Description. Long Description".
Or do I need to manually go through all my figures and edit them like this?:
\begin{figure}[!ht]
\centering
\includegraphics[width=\textwidth]{my_figure.pdf}
\caption[Short description.]{\textbf{Short description.} Long description}
\label{fig:my_label}
\end{figure}
I tried using this macro, but it doesn't work:
\renewcommand{\caption}[2]{\caption[#1]{\textbf{#1}. #2}}
Thank you in advance for your help!
\documentclass{...}
and ending with\end{document}
.