Skip to main content
6 events
when toggle format what by license comment
10 hours ago comment added cfr @egreg Ulrike's answer also uses \ProvideDocumentCommand?
10 hours ago comment added cfr @egreg that is just copied from the OP's code.
10 hours ago comment added egreg Why \ProvideDocumentCommand? I can't see any reason for it instead of \NewDocumentCommand.
12 hours ago comment added cfr @Erwann yes, I think \ReadonlyShipoutCounter will work and is a better option if you use multiple formats for page e.g. if you restart the counter for the main matter having numbered frontmatter independently.
12 hours ago comment added Erwann "Why don't you use kernel labels?" I've settled on \ReadonlyShipoutCounter < \PreviousTotalPages so now I don't need the zref-*'s.
19 hours ago history answered cfr CC BY-SA 4.0