Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

My problem is best illustrated with an example:

\documentclass{scrreprt}

\usepackage{caption}
\captionsetup[subfigure]{font={sf,md,sl,small}}
\setkomafont{caption}{\itshape\sffamily}
\setkomafont{captionlabel}{\upshape\bfseries\sffamily}
\usepackage{subfig}

\begin{document}
\begin{figure}
 \subfloat[Test]{\hskip70pt}\hskip30pt
 \subfloat[Test 2]{\hskip70pt}
\caption{Main caption.}
\end{figure}
\end{document}

I wish for the labels (a) and (b) to render as (a) and (b) as opposed to (a) and (b). How can I go about this?

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

At least when using a KOMA-Script class together with the caption package, you also need to redefine labelfont with \captionsetup.

\documentclass{scrreprt}

\usepackage{caption}
\captionsetup[subfigure]{font={sf,md,sl,small},labelfont={sf,md,sl,small}}
\setkomafont{caption}{\itshape\sffamily}
\setkomafont{captionlabel}{\upshape\bfseries\sffamily}
\usepackage{subfig}

\begin{document}
\begin{figure}
 \subfloat[Test]{\hskip70pt}\hskip30pt
 \subfloat[Test 2]{\hskip70pt}
\caption{Main caption.}
\end{figure}
\end{document}
share|improve this answer
    
Both \setkomafont do not have an effect here. It only has an effect as long as you don't overwrite the KOMA settings with \captionsetup. –  Axel Sommerfeldt Feb 5 '12 at 19:52
    
In the example, \setkomafont effects the main caption. –  lockstep Feb 5 '12 at 19:57
    
Upps, (of course) you are right, I didn't read the [subfigure] part. –  Axel Sommerfeldt Feb 6 '12 at 7:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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