[pdftex] How to find the current pdf page number?
Heiko Oberdiek
oberdiek at uni-freiburg.de
Thu Oct 20 22:46:53 CEST 2005
On Thu, Oct 20, 2005 at 06:49:50PM +0100, Tigran Aivazian wrote:
> So, I need to find out the current physical page number. I checked pdftex
> manual but couldn't see any such primitive. And TeX \page gives me logical
> page number, not physical.
>
> On the other hand, if LaTeX kept separate counters for roman page numbers
> and arabic page numbers
No, it's one counter only.
> then I could just add these two and have a
> solution that worked for both dvi and pdf case (but I only care about pdf
> case so I don't mind if the solution is pdftex-specific).
Of course you can add the pages of the differently numbered sections.
The standard solutions:
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=howmanypp
How many pages are there in my document?
Yours sincerely
Heiko <oberdiek at uni-freiburg.de>
--
More information about the pdftex
mailing list