\renewcommand{\thefigure}{\arabic{section}-\arabic{figure}}
I used this commend, and I get the figure number like this: 1-1,1-2.....2-9.....5-54, but I want to set the figure number to the type that corresponding to its section number and start from 1 at each section, like this, section1: 1-1,1-2,1-3,etc; section2: 2-1,2-2,etc; section3: 3-1,3-2,etc
\usepackage{chngcntr} \counterwithin{figure}{section}– Gonzalo Medina Jul 16 '15 at 15:05\counterwithin{figure}{section}before your\renewcommand .... – Zarko Jul 16 '15 at 15:05