Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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!

share|improve this question

marked as duplicate by lockstep, yo', cmhughes, Marco Daniel, Gonzalo Medina May 18 '12 at 3:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

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}
share|improve this answer

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