modifying pagenumbers in crossreferences
I need to typeset crossreferences to pages, using \pageref, with wherever possible no more than two digits. For example:
pp. 1-23
pp. 101-23 %(for 101-123)
pp. 101-105 %(not 101-05, because the second number starts with a zero)
pp. 101-222 %full range because 101-22 would be wrong
The crux is: \pageref just turns out 101-123; how can I modify this?
(Sorry no MWE, because I would need one with hundreds of pages...) I looked at some packages, but none seem to offer the sort of thing I need.
I need to typeset crossreferences to pages, using \pageref, with wherever possible no more than two digits. For example:
pp. 1-23
pp. 101-23 %(for 101-123)
pp. 101-105 %(not 101-05, because the second number starts with a zero)
pp. 101-222 %full range because 101-22 would be wrong
The crux is: \pageref just turns out 101-123; how can I modify this?
(Sorry no MWE, because I would need one with hundreds of pages...) I looked at some packages, but none seem to offer the sort of thing I need.
No comments:
Post a Comment