I have a document that contains 31 figures. I'd like to configure the document such that figure numbers are printed with a leading zero, both in captions and in the list of figures (LOF). That is, I would like numbers to be written in the form
01, 02, ..., 09, 10, 11, ..., 30, 31.
I've seen this post about printing a counter with a leading zero, but I'm not sure how to (or if I should) apply that to modify the automatic numbering in the caption or LOF. I've generally been having success modifying the TOC, LOF, and LOT using tocloft, but as much as the package can do it doesn't seem to have any functionality regarding the figure or table numbers, and I don't imagine it would do anything to help with the actual captions.
I'm not sure what would be expected for a "MWE", but it would be sufficient for my purposes if someone could modify the below to have the desired leading zeros.
\documentclass[paper=letter, fontsize=11pt, twoside]{article}
\usepackage{graphicx}
\usepackage{tocloft}
\begin{document}
\listoffigures
\newpage
\begin{figure}[!ht]
Figure
\caption{It's a figure}
\end{figure}
\begin{figure}[!ht]
Figure
\caption{It's a figure}
\end{figure}
\begin{figure}[!ht]
Figure
\caption{It's a figure}
\end{figure}
\begin{figure}[!ht]
Figure
\caption{It's a figure}
\end{figure}
\begin{figure}[!ht]
Figure
\caption{It's a figure}
\end{figure}
\begin{figure}[!ht]
Figure
\caption{It's a figure}
\end{figure}
\begin{figure}[!ht]
Figure
\caption{It's a figure}
\end{figure}
\begin{figure}[!ht]
Figure
\caption{It's a figure}
\end{figure}
\begin{figure}[!ht]
Figure
\caption{It's a figure}
\end{figure}
\begin{figure}[!ht]
Figure
\caption{It's a figure}
\end{figure}
\end{document}
MWE
of what you tried so far.\thefigure
, it will change it everywhere.\ifnum\value{figure}<10\relax 0\arabic{figure}\else \arabic{figure}\fi