![](https://secure.gravatar.com/avatar/a2ee49f73607373bc054c9efc25691b1.jpg?s=120&d=mm&r=g)
On Thu, 07 Nov 2002 10:51:00 +0100
Hans Hagen
At 10:09 PM 11/6/2002 +0100, you wrote:
The files above do not show the error, but if you uncomment the ...
It's related to the sectioning structure. (well, it show up there).
The problem is in a local manipulation with the real page counter, adding grouping solves the problem:
\def\savenofpages {\bgroup \advance\realpageno \minusone \savecurrentvalue\lastpage\realfolio \advance\userpageno \minusone \savecurrentvalue\lastpagenumber\folio \egroup}
Now, for that extra last page, this is a side effect of resetting marks (should be an (e)tex primitive, but sofar i could not convince implementers).
For the moment i'll add the following to my local cont-new file:
\appendtoks \gdef\shipout{\dowithnextbox{\deadcycles\zerocount}}% \to \everylastshipout
many thanks, this helps Jens