In my code below, I wanted to change the color of the text for the table and figure caption. I am using this:


\renewcommand{\figurename}{\textcolor{ocre}{\bfseries\itshape Fig.}}
\renewcommand{\tablename}{\textcolor{ocre}{\bfseries\itshape Table}}

This is what I get as the output.

enter image description here

Can you tell me how to get the caption text the same color as the Fig.1.1 text?

  • 2
    Use font instead of labelfont. Sep 10, 2013 at 15:50

1 Answer 1


You can do all your changes using options for the caption package:



\chapter{Test chapter}
\caption{Test figure}


enter image description here

In standard classes book and report, the figure and table counters are by default subordinated to the chapter counter; if you are using a class in which this is not the default, you can use


so the counter will be subordinated and will reset each time chapter steps.

It is not a good idea,in general, to involve direct modifications of attributes like color in redefinitions of \thefigure (or \thetable), since then the changes will also appear in (most of the times) undesired locations, such as cross-references.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .