# Change typeface in caption figure [duplicate]

It is possible to make the caption of a figure in CAPS (versalitas) typeface format? Like as image below. But I want to change only the 'FIGURE 1.1'. Descriptive text label that is invariant. That has not been answered in another post

I also want to ask if it

is possible to write in bold the test in CAPS format?

Code (false) right here for either case:

  \documentclass{article}
\usepackage{mathtools,amsmath}
\usepackage{amsthm}

\begin{document}

\begin{center}
\fbox{\parbox[b]{.3\linewidth}{
\begin{center}
.......\\This is a figure\\*******
\end{center} }
}
\end{center}

\begin{center}
\textsc{Figure 1.1:} Solution of $x^2\leq 4$
\end{center}
\end{document}

-

## marked as duplicate by Peter Jansson, Heiko Oberdiek, Gonzalo Medina, Guido, WernerFeb 4 '14 at 20:10

But I want to change only the 'FIGURE 1.1'. Descriptive text label that is invariant. That has not been answered in another post. – mathsalomon Feb 4 '14 at 20:35
Please read the very good documentation of the caption package. – Martin Schröder Feb 4 '14 at 21:07

I add some more details for the case of bold smallcaps.

Load the caption package:

\usepackage[labelfont=sc]{caption}


If you want small caps only for the figure environment:

 \usepackage{caption}
\captionsetup[figure]{labelfont=sc}


For bold smallcaps, you need a font that has such glyphs. Latin Modern doesn't but cm-super has. So if you use Computer Modern fonts, writing in the preamble:

\usepackage{caption}
\DeclareCaptionLabelFormat{bsc}{\textbf{\textsc{#1}\ #2}}
\captionsetup[figure]{labelformat=bsc}


should work.

-
\usepackage{caption} \DeclareCaptionLabelFormat{bsc}{\textbf{\textsc{#1}\ #2}} \captionsetup[figure]{labelformat=bsc} makes text bold but not delete the caps format – mathsalomon Feb 4 '14 at 20:57
Why a new format? It's enough to use \captionsetup[figure]{labelfont={bf,sc}}. – Gonzalo Medina Feb 4 '14 at 20:59
@GonzaloMedina this code produces bold text but format times. It removes the caps – mathsalomon Feb 4 '14 at 21:06
@GonzaloMedina: Well, I thought that, in case of using cm-super, one had to use \textbf{\textsc{...}} and it was only way to do so was \DeclareLabelFormat. Moreover if the main font is Latin Modern, one should also change the font family for cm-super – btw I'm unsure of how to do this; maybe \fontfamily{t1cm}\selectfont? – Bernard Feb 4 '14 at 21:10
@mathsalomon: Does your version of times have bols smallcaps? – Bernard Feb 4 '14 at 21:13