From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55578 Path: news.gmane.org!not-for-mail From: Andreas Schneider Newsgroups: gmane.comp.tex.context Subject: \everyaftershipout isn't "called" for every pagebreak Date: Sat, 16 Jan 2010 17:53:54 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1263660888 6789 80.91.229.12 (16 Jan 2010 16:54:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 Jan 2010 16:54:48 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 16 17:54:40 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NWBv6-0001qg-08 for gctc-ntg-context-518@m.gmane.org; Sat, 16 Jan 2010 17:54:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 995E1C9C98; Sat, 16 Jan 2010 17:54:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id aLYE6VqgGKnI; Sat, 16 Jan 2010 17:54:36 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4A4F4C9BAC; Sat, 16 Jan 2010 17:54:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4DEAEC9BAC for ; Sat, 16 Jan 2010 17:54:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZxKVzx-AaAaI for ; Sat, 16 Jan 2010 17:54:32 +0100 (CET) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by balder.ntg.nl (Postfix) with ESMTP id 09861C9BA3 for ; Sat, 16 Jan 2010 17:54:31 +0100 (CET) Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NWBur-0001kP-Pl for ntg-context@ntg.nl; Sat, 16 Jan 2010 17:54:25 +0100 Original-Received: from p54b4e509.dip.t-dialin.net ([84.180.229.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Jan 2010 17:54:25 +0100 Original-Received: from aksdb by p54b4e509.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Jan 2010 17:54:25 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.comp.tex.context Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54b4e509.dip.t-dialin.net User-Agent: KNode/4.3.4 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55578 Archived-At: 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 ___________________________________________________________________________________