I would like to reset equation numbering after each section or subsection. Right now I use
I saw in another page you could also reset it by adding the following line to the preamble.
But this doesn't seem to work. The equation counters just increment across subsections. It's the same across sections if we changed the preamble to