Open FrankMittelbach opened 3 years ago
Moving behind amstext avoid that the zref hook gets completly lost, but wouldn't solve all problems: the hook code would then be outside the \iffirstchoice@ .. \fi
from the amstext definition, and this would break perpage counters inside \text
.
There are some open points here. Perhaps one should start by moving the amstext definition into the kernel ...
maybe, in any case it is something that needs consolidation betcause right now it simply doesn't work at all if in the wrong order.
Problem would go away if we have the mechanism directly in LaTeX but right now it isn't.