When I label my figures, they are labelled Figure 1, Figure 2, ... How can I have the labelling match the section it comes from? That is, if Figure 2 is in section 3, it will be labelled Figure 3.1.
\documentclass{article}
\usepackage{floats}
\usepackage[demo]{graphicx}
\usepackage[caption = false}{subfig}
\begin{document}
\section{A}
\begin{figure}[H]
\includegraphics[width = 2in]{something}
\caption{figure}
\label{fig}
\end{figure}
\end{document}
chngcntras suggested by @egreg – Thruston Jun 19 '13 at 22:12