I want to "reset" the figure counting in my document when the appendix starts, and follow a different pattern than 1, 2, 3... Specifically, I want figures in the appendix to start with A.1, A.2 onward, instead of continuing on from the main document. How can I do this?
\documentclass[twoside]{article}
\usepackage{graphicx,dblfloatfix}
\usepackage{titlesec}% Allows customization of titles
\titleformat{\section}[block]{\large\scshape\centering{\Roman{section}.}}{}{1em}{} % Change the look of the section titles
\begin{document}
\section{Introduction}
\subsection{Problem description}
Blah blah
\begin{figure}[!htb]
\centering
\includegraphics{decon}
\caption{Call this figure 1.}
\label{fig1}
\end{figure}
\appendix
\section{Figures}
\begin{figure}[!htb]
\centering
\includegraphics{decon}
\caption{Call this figure A.1.}
\label{figa1}
\end{figure}
\begin{figure}[!htb]
\centering
\includegraphics{decon}
\caption{Call this figure A.2.}
\label{figa2}
\end{figure}
\end{document}