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.

This question already has an answer here:

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?

enter image description here 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} 
share|improve this question

marked as duplicate by Peter Jansson, Heiko Oberdiek, Gonzalo Medina, Guido, Werner Feb 4 at 20:10

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
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 at 20:35
    
Please read the very good documentation of the caption package. –  Martin Schröder Feb 4 at 21:07

1 Answer 1

up vote 1 down vote accepted

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.

share|improve this answer
    
\usepackage{caption} \DeclareCaptionLabelFormat{bsc}{\textbf{\textsc{#1}\ #2}} \captionsetup[figure]{labelformat=bsc} makes text bold but not delete the caps format –  mathsalomon Feb 4 at 20:57
    
Why a new format? It's enough to use \captionsetup[figure]{labelfont={bf,sc}}. –  Gonzalo Medina Feb 4 at 20:59
    
@GonzaloMedina this code produces bold text but format times. It removes the caps –  mathsalomon Feb 4 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 at 21:10
    
@mathsalomon: Does your version of times have bols smallcaps? –  Bernard Feb 4 at 21:13

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