TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Similar questions have been answered but the solutions didn't seem to give what I need.

I would like theorems and equations both to proceed as follows within each section.

Say we've begun Section 6. If I started with a theorem, it'd be Theorem 6.1. Then if I next used an equation, it would show up with numbering (6.2). The next equation or theorem (whichever is first) would be 6.3, and so on.

share|improve this question
Welcome to TeX.SE. It would be helpful if you composed a fully compilable MWE including \documentclass and the appropriate packages that sets up the problem. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem. And sometimes the solutions depend on the packages being used. – Peter Grill May 8 '14 at 2:01
Thanks for the guidelines! – Andy 121 May 8 '14 at 2:22
up vote 7 down vote accepted



(requires amsmath) makes the section counter to be used as prefix for equations, and then


makes theorem share the equation counter. A complete example




\section{Test section}
test theorem


test theorem

a &= b \\
&= c


enter image description here

share|improve this answer
Works perfectly, thank you! – Andy 121 May 8 '14 at 2:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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