# zref-abspage and perpage incompatibility

It seems that zref-abspage and perpage both defines the abspage counter so

\documentclass{article}
\usepackage{perpage}
\usepackage{zref-abspage}
\begin{document}
This is a test
\end{document}


would produce error.

How should this be fixed? it seems that changing loading order will fix it.

-

Yes, I know it already and have prepared version 3.0 of zref. In zref-abspage I rename the counter to zabspage. Also I take the opportunity of the major version step to change the way, the counter is increased. Before version 3.0 the counter is increased during shipout time via \AtBeginShipout, that means that in the output routine the counter is not yet updated to the value for the page like counter page. With version 3.0 the counter zabspage shows to the next page number and it is increased after the shipout like the behaviour of counter page.
@GonzaloMedina Currently both packages wants to use the same counter name, but incrementing it at different times. Thus I can't see, how savesym can be of help here. – Heiko Oberdiek Oct 29 '12 at 2:18