Take the 2-minute tour ×
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.

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:

\documentclass{article}
\usepackage{zref-perpage}
\zmakeperpage{footnote}
\usepackage{amsmath}
\begin{document}
This is a test \footnote{test}
\newpage
This is another test \footnote{test}
\end{document}
share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.