Let's say I have two standard figures and two supplementary figures. If I change the name of figure using \renewcommand{\figurename}
the figure counter will still count all figures continuously (i.e. Fig 1, Fig 2, Supp Fig 3, Supp Fig 4 – see code below). How can I reset the figure counter so it will count standard figures separately from supplementary figures?
\documentclass[]{article}
\usepackage[footnotesize]{caption}
\begin{document}
\begin{figure}[ht]
\caption{}
\end{figure}
\begin{figure}[ht]
\caption{}
\end{figure}
\begin{figure}[ht]
\renewcommand{\figurename}{Supplementary Figure}
\caption{}
\end{figure}
\begin{figure}[ht]
\renewcommand{\figurename}{Supplementary Figure}
\caption{}
\end{figure}
\end{document}
Best Answer
In preamble,
In text,
If you use old versions of
caption
package, there is nonewfloat
package, then usecaption
package and\DeclareCaptionType
command instead.