I want my figure to have the number 1.1 ,instead I got figure 1

Asked
Active
Viewed 36 times
0
AIme999
- 127
documentclass. Not all of them add thechapterorsectionto the figure label. There is a very detailed answer here: https://tex.stackexchange.com/a/28334/118712 My guess is that you want to use\usepackage{chngcntr} \counterwithin{figure}{section}. – Markus G. Jun 14 '21 at 10:26chngcntris not even necessary as it should be part of your latex kernel (since 2018). – Οὖτις Jun 15 '21 at 13:46