Page Break Events
Hello, since that question has probably gone by unnoticed in my other posting, I'll ask more directly here: How can I react on page breaks (in MkII)? More specifcally: I need to reset a variable whenever a pagebreak occurs (atleast when automatic page breaks occur ... but it would be nice, if it also works for manually broken pages). The only thing that I was able to find was \insertpagebreakhandler ... but it seems as if this can only be triggered manually with \page. Thanks in advance! Andreas.
On Wed, Jul 1, 2009 at 5:01 PM, Andreas Schneider
Hello,
since that question has probably gone by unnoticed in my other posting, I'll ask more directly here:
How can I react on page breaks (in MkII)? More specifcally: I need to reset a variable whenever a pagebreak occurs (atleast when automatic page breaks occur ... but it would be nice, if it also works for manually broken pages).
The only thing that I was able to find was \insertpagebreakhandler ... but it seems as if this can only be triggered manually with \page.
Did you seen into page-ini.mkii ? -- luigi
Am 01.07.2009 um 17:01 schrieb Andreas Schneider:
Hello,
since that question has probably gone by unnoticed in my other posting, I'll ask more directly here:
How can I react on page breaks (in MkII)? More specifcally: I need to reset a variable whenever a pagebreak occurs (atleast when automatic page breaks occur ... but it would be nice, if it also works for manually broken pages).
The only thing that I was able to find was \insertpagebreakhandler ... but it seems as if this can only be triggered manually with \page.
\appendtoks \resetcounter{mycounter}% %\global\mycount=0 \to\everyaftershipout Wolfgang
Andreas Schneider wrote:
On Wed, 1 Jul 2009 18:14:13 +0200 Wolfgang Schuster
wrote: \appendtoks \resetcounter{mycounter}% %\global\mycount=0 \to\everyaftershipout
Wolfgang
Fantastic! That is exactly, what I was looking for.
you can also try to set the counter's way to 'way=page' which will number per page (within some constraints) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Andreas Schneider
-
Hans Hagen
-
luigi scarso
-
Wolfgang Schuster