@LiveSucks: "Hello!
At some places in my LaTeX2e-document I need to know how many
pages have been printed/finished so far.
I was tempted to use the LaTeX-owned counter "page".
The problem hereby is that this counter will occasionally be reset
(e.g. when toggling between \frontmatter and \mainmatter) and
thus will not deliver the desired result.
In the log-file one can read how many pages of output were
produced.
So I think that there must be a counter/register for that
somewhere.
Which one is it?
So far I have a very cumbersome workaround and I wish to
overcome it:
- I implemented another counter "totalprintedpages" in the
  document-preamble.
- At each "\shipout"-occurrence, this counter is to be
  incremented by 1. So I have the \shipout-macro patched
  in the preamble also:
\documentclass{<someclass>}
\usepackage{<somepackage>}
...
\newcounter{\totalprintedpages}%
\setcounter{\totalprintedpages}{0}%
\let\oldshipout=\shipout%
\def\shipout{\global\stepcounter{totalprintedpages}\oldshipout}%
...
\begin{document}
<some content>
\end{document}
Where are possible problems or crucial points with this practise?
Sincerely
Sam"
    @moho01ab: "On Tue, 5 Oct 2004 21:23:06 +0200, Hendri Adriaens  
<quote>
Not what he's after. That one refers to the "page" counter only.
Morten H�gholm
I haven't got a smelly address.
UK-TUG FAQ: <URL:<url>"
{'source': 'USENET', 'other_information': '{"reply_count": 1, "forum_name": "comp.text.tex.20140909.mbox"}', 'file': 'data/output/usenet-comp.text.parquet'}