My problem is that every time I write \caption in a figure, the preceding number increases its value in one unit. Nevertheless, I'd like to group them as in sections. For example, instead of 1,2,3,etc. I'd like 1.1,1.2,2.1,etc. The class of document I'm using is an article.
Thank you for your responses.
\usepackage{amsmath}and\numberwithin{figure}{section}– Hafid Boukhoulda Feb 04 '19 at 18:54