add section or chapter numbers to figure numbers
June 1st, 2010 by Lawrence David
Despite having multiple sections and chapters in my document, my figures were only numbered: Figure 1, Figure, 2, etc.
To change their naming to Figure 1.1, Figure 1.2, etc, I simply included the following code:
\usepackage{amsmath}
\numberwithin{figure}{section}
awesome. i’ve been wondering how to do that. thanks!