0

this is my current choice of the options for the caption package:

\usepackage[labelfont={rm,md,bf},textfont={rm,md,sl}]{caption}

And the results is looking like this:

enter image description here

I would like to have 'Figure 5.2' with bold font, but '(a)' and '(b)' not. Is this possible?

1
  • Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. Aug 7, 2018 at 18:22

1 Answer 1

3

You can use \captionsetup[sub]{...} to change the properties of subcaptions:

enter image description here

\documentclass{article}

\usepackage{subcaption}
% Configure main captions
\captionsetup     {labelfont={rm,md,bf},textfont={rm,md,sl}}
% Configure subcaptions
\captionsetup[sub]{labelfont={rm,md   },textfont={rm,md,sl}}

\begin{document}

\begin{figure}
  \centering
  \begin{subfigure}{2cm}
    \caption{bla 1}
  \end{subfigure}
  \begin{subfigure}{2cm}
    \caption{bla 2}
  \end{subfigure}
  \caption{bla}
\end{figure}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.