I'm using the pagesel package to output only selected parts of a large document. The page numbers in that document are not absolute page numbers, but pagesel (quite rightly) uses absolute page numbers. So what I'd like to do is, within my document, put a command to list the absolute page number on my TeX log. The pagesel package uses the counter ps@count to keep track of the absolute page number, so I've tried the following two ideas, but neither works:
\makeatletter
\typeout{Absolute Page \value{ps@count}}
\makeatother
\makeatletter
\typeout{Absolute Page \theps@count}
\makeatother
Could someone fix one of these? (I see from another answer How to find absolute page number as an integer? that I could use the zref package, but that seems a lot of work when pagesel already has the counter that I want.)
pagesel(it breaks the build with undefined references for me), for example for inserting blank pages to align e.g. for a back cover – mirabilos Jan 13 '22 at 17:30