[Tex/LaTex] Figure numbering removing section LyX

floatslyxnumbering

Figures are labeled as 1.0.1 but as I am only using "Parts" and do not have "chapters" or"sections" i would like them to be 1.1, 1.2 and so on.

Best Answer

Add to your Document > Settings... > LaTeX Preamble the following code:

\makeatletter
\@addtoreset{figure}{part}% Reset figure numbering at every part
\makeatother
\renewcommand{\thefigure}{\arabic{part}.\arabic{figure}}% Figure number is part.figure

The default numbering of parts in KOMA-Script is Roman, so I've used \arabic{part} since. However, if you've updated this somehow to be Roman elsewhere, you could just use \thepart.\arabic{figure}.

Related Question