ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \everyaftershipout isn't "called" for every pagebreak
@ 2010-01-16 16:53 Andreas Schneider
  2010-01-16 20:00 ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Andreas Schneider @ 2010-01-16 16:53 UTC (permalink / raw)
  To: ntg-context

Hi,

I'm using \appendtoks...\to\everyaftershipout to reset a variable on every 
pagebreak. This doesn't work as I expect(ed) it, since it seems to only 
trigger after a paragraph. The following example shows the problem. On every 
new page, the first footnote should be "New", which is not the case here.
What would be the way to go for me, to get the result I described?

Thanks in advance,
Andreas.


The example:

\define\test{\doifelse{\getvalue{testvar}}{page}{%
  \footnote{Repeat}%
}{%
  \footnote{New}%
  \setvalue{testvar}{page}%
}}

\appendtoks
  \global\setvalue{testvar}{}
\to\everyaftershipout

\starttext
  \dorecurse{10}{\dorecurse{250}{text }\test}

  \dorecurse{10}{\dorecurse{250}{text }\test}
\stoptext

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-01-18 12:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-16 16:53 \everyaftershipout isn't "called" for every pagebreak Andreas Schneider
2010-01-16 20:00 ` Wolfgang Schuster
2010-01-16 21:58   ` Andreas Schneider
2010-01-17 20:42     ` Hans Hagen
2010-01-17 21:16       ` Andreas Schneider
2010-01-17 21:45         ` Hans Hagen
2010-01-17 22:13           ` Andreas Schneider
2010-01-17 22:25             ` Martin Schröder
2010-01-17 22:59             ` Hans Hagen
2010-01-18 12:12               ` Andreas Schneider

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).