That's what I use
\usepackage{caption}
\usepackage{subcaption}
The template I'm using is from a university and uses the Koma Script
When adding figures or graphs I do this:
\begin{figure}[h!]
\begin{subfigure}[normal]{0.40\textwidth}
\includegraphics[width=\textwidth]{figures/Fig1}
\caption{Caption of Fig1}
\label{Label of Fig1}
\end{subfigure}
\begin{subfigure}[normal]{0.40\textwidth}
\includegraphics[width=\textwidth]{figures/Fig2}
\caption{Caption of Fig2}
\label{Label of Fig2}
\end{subfigure}
\caption{This is the caption for whole graphic}
\label{This is the label for the whole graphic}
\end{figure}
what I want to know is how to simply adjust different font styles for the captions of the subfigures
and figure
.
I want especially the captions fonts of the subfigures
to be smaller than the captions fonts of the figures
.
As far as I googled the problem, I could do this with a Koma
script command or by addressing the caption
package.
I tried the following:
\captionsetup{font=small,labelfont={bf,sf}}
this affects all captions but how can I adjust the captions of subfigures separately?
I don't understand the difference in the approaches between the koma
Script and the caption
packages
So I simply want to adjust the Font sizes of the different Caption types separately and uniquely for the whole document and I would like to adjust the space between the captions and the subfigures …..
Best Answer
You can use the
[sub]
optional parameter of\captionsetup
, e.g.BTW, I would add a
\centering
in yourfigure
environment.