[pdftex] ambiguous \pdfpageref

Heiko Oberdiek oberdiek at uni-freiburg.de
Wed Dec 8 12:17:07 CET 2004


On Wed, Dec 08, 2004 at 10:45:36AM +0100, Martin Schröder wrote:

> On 2004-12-08 09:02:57 +0100, Alexander Grahn wrote:
> > \documentclass{book}
> \usepackage{count1to}
> 
> > \begin{document}
> >     \pagenumbering{roman}
>      Page object: \pdfpageref\count1\\
> >     \newpage
> >     \pagenumbering{arabic}
>      Page object: \pdfpageref\count1\\
> > \end{document}

Except that \count1 is incremented at shipout, so it points to the
previous page or zero in the first case. (\pdfpageref will complain
about the zero.)

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>
-- 



More information about the pdftex mailing list