Possible Duplicate:
Continuous v. per-chapter/section numbering of figures, tables, and other document elements

I have written my thesis in document class 'article' (don't ask me why). Now I want to number my equations by sections, i.e. in section 1 they should go 1.1, 1.2, ..., in section 2 they should go 2.1, 2.2, ...

I don't want to change the document class (e.g. to 'report') because then I would have to change all sections to chapters, subsections to sections and because I fear a lot of other unintended consequences.

How can solve this?

Thanks for any help!


The amsmath package provides the command \numberwithin which can be used in your document as


enter image description here

A MWE follows



\section{Here is a section}
  • Thank you so much for your help!
    Jul 30 '21 at 0:23
  • Thank you so much!
    Nov 12 '21 at 6:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.