In preamble,
\usepackage{newfloat}
\DeclareFloatingEnvironment[name={Supplementary Figure}]{suppfigure}
In text,
\begin{suppfigure}
\caption{...}
\end{suppfigure}
If you use old versions of caption
package, there is no newfloat
package, then use caption
package and \DeclareCaptionType
command instead.
You can do all your changes using options for the caption
package:
\documentclass[12pt,twoside]{report}
\usepackage[svgnames]{xcolor}
\definecolor{ocre}{RGB}{243,102,25}
\usepackage{caption}
\usepackage[font={color=ocre,bf},figurename=Fig.,labelfont={it}]{caption}
\begin{document}
\chapter{Test chapter}
\begin{figure}
\centering
A
\caption{Test figure}
\end{figure}
\end{document}
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
\usepackage{chngcntr}
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter
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.
Best Answer
A global modification to
\thefigure
of the formwould suffice (in your document preamble). Alternatively, if you only want to modify the figure number representation in the caption only (since you might not be referencing it as part of "supplementary figures"), you could use
The former is preferred, since it makes more sense.