I know this has been asked a lot, and I've browsed all possible answers, but none help. This is my code:


This is the first (and only figure) of my paper. However, in the text, the figure number is not 1 but 2.1 (section in which it appears). I have made sure that the label is after the caption. I've even tried out putting the label inside the caption, or putting the caption at the top and the label at the end. Nothing works and the figure number remains the section number. How can I change this??

  • 1
    Welcome to TeX.SE. Which document class do you use? In all likelihood, your document class has a setting that numbers floats (figures and tables) within sections.
    – Mico
    Oct 9, 2015 at 10:09
  • 1
    oh, forgot to add that. I use \documentclass{article}. And this is the first time I have problems with it.
    – Lawell
    Oct 9, 2015 at 10:10
  • That is odd, then. Can you provide a full MWE so we can find out who it is that changes the number format?
    – moewe
    Oct 9, 2015 at 10:11
  • it's best to add code to the question (where it can be formatted) not comments, I'll do it this time Oct 9, 2015 at 10:34
  • 2
    I get Figure 1: from the posted example. Oct 9, 2015 at 10:35

1 Answer 1


As you hint at yourself, the line


means that figures are numbered per section, so the output you're seeing is in fact exactly what you have told LaTeX to do. Anyway, getting continous numbering of figures is of course just a matter of deleting that line.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .