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.

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

If amsmath is loaded after zref-perpage, zref-perpage will not reset counters in each page. What should be done to fix this except changing the loading order:

This is a test \footnote{test}
This is another test \footnote{test}
share|improve this question
up vote 7 down vote accepted

Both packages zref-perpage and amstext (loaded by package amsmath) redefine \stepcounter to add some code. Package zref-perpage keeps the \stepcounter it finds, but amstext overwrites \stepcounter deleting the additions of zref-perpage.

Thus loading zref-perpage after amstext/amsmath is the correct workaround.

In the next version of zref the module zref-perpage will check for amstext and its redefinition of \stepcounter and will fix it.

share|improve this answer

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.