I do my homework with LaTeX and it is often just a few pages, so I don't have different sections or anything like that. I would just like to be able to reset the equation counter after each exercise that I do.

Is it possible for me to type in a command, such as \reset whenever I want in the document, and have the equation counter reset to 1?

  • You can also have the equation counter reset every time you increnent another counter, like the exercise number. Something like \@addtoreset{equaton}{exercise} – John Kormylo Nov 14 '19 at 3:45


Your \reset would be equivalent to \setcounter{equation}{0}. Perhaps you want to add


somewhere in your preamble. This would allow you to use \eqnumreset before any equation you want to have starting from (1) again.

Note that this might be problematic if you are using hyperref, together with \labels and \refs to the equations. A work-around is possible though.

  • Thanks! .......... – Ovi Nov 13 '19 at 23:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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