[NTG-context] page counter problem
Alan Bowen
bowenalan03 at gmail.com
Wed Sep 30 12:50:51 CEST 2020
he page counter does not increase in the first iteration an PDf inclusion
but seems to work properly after that. Have attached a sample file (69K)
that will serve to show the problem—at least, on my machine.
\starttext
\setupexternalfigures[location=default]
\setuplayer[preset=middlebottom, method=overlay]{}
\setcounter[userpage][101]
\noheaderandfooterlines
\getfiguredimensions[HannahBW.pdf]
\dorecurse{\noffigurepages}
{\vbox to \paperheight
{\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax
\hbox to \hsize
{\hskip-\backspace
\layeredtext[]
[boffset=3pc]
{\red\userpagenumber}
{\externalfigure[HannahBW.pdf][page=#1]}%
\hss}%
\vss}
}
\dorecurse{\noffigurepages}
{\vbox to \paperheight
{\vskip-\dimexpr\headerheight+\headerdistance+\topspace\relax
\hbox to \hsize
{\hskip-\backspace
\layeredtext[]
[boffset=3pc]
{\red\userpagenumber}
{\externalfigure[HannahBW.pdf][page=#1]}%
\hss}%
\vss}
}
\stoptext
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200930/5795d897/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HannahBW.pdf
Type: application/pdf
Size: 59987 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200930/5795d897/attachment-0001.pdf>
More information about the ntg-context
mailing list