From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55620 Path: news.gmane.org!not-for-mail From: Andreas Schneider Newsgroups: gmane.comp.tex.context Subject: Re: \everyaftershipout isn't "called" for every pagebreak Date: Mon, 18 Jan 2010 13:12:54 +0100 Message-ID: References: <36ACBB12-6EB5-4ED9-A7A0-70F1CDDEE50D@googlemail.com> <4B53761C.3070106@wxs.nl> <4B5384E1.5010604@wxs.nl> <4B539651.8010503@wxs.nl> 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 1263816833 13271 80.91.229.12 (18 Jan 2010 12:13:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jan 2010 12:13:53 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 18 13:13:45 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 1NWqUK-0004rl-83 for gctc-ntg-context-518@m.gmane.org; Mon, 18 Jan 2010 13:13:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60883C9BE2; Mon, 18 Jan 2010 13:13:45 +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 8eKjGTTnHiGu; Mon, 18 Jan 2010 13:13:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 58E30C9BC1; Mon, 18 Jan 2010 13:13:27 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7FF36C9BC1 for ; Mon, 18 Jan 2010 13:13:25 +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 qlDtuQ-owK0d for ; Mon, 18 Jan 2010 13:13:20 +0100 (CET) Original-Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by balder.ntg.nl (Postfix) with ESMTP id 9556CC9B8C for ; Mon, 18 Jan 2010 13:13:20 +0100 (CET) Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1NWqTt-0004hq-N9 for ntg-context@ntg.nl; Mon, 18 Jan 2010 13:13:17 +0100 Original-Received: from p54b4d08e.dip.t-dialin.net ([84.180.208.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jan 2010 13:13:17 +0100 Original-Received: from aksdb by p54b4d08e.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jan 2010 13:13:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.comp.tex.context Original-Lines: 42 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p54b4d08e.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:55620 Archived-At: Hans Hagen wrote: > as it takes less time wrting a helper than explaining how to do it i > just added it as feature (a few years from probably only wolfgang > remembers that it's there) > > i'll upload a beta to the website that provides ... > > \starttext > > \dorecurse {100} { > test \footnote{\doifnoteonsamepageelse[footnote]{ibidem}{aaa}} > } > > \stoptext > > keep in mind that such features, depending on multiple passes, might > result in a few more as it will never get things right the first time > > actually, in some cases it might make sense to delete the tuc file > before a run > > Hans Thank you very much for all that effort! It works very well and as a side- effect also gives me a nice point to start learning more about the (lua)tex internals. Seems like I will have to go to one of the next ConTeXt user meetings so I can repay you with the beer(s) I now owe you :-) Just in case someone else needs it: I used the following code now to reset my variable whenever a footnote is placed on a new page. That was necessary so a manually set footnote doesn't interfere with my citation-footnotes. (Otherwise, if a manually inserted footnote would be the first on a page, the next citation footnote would evaluate as "being on the same page as the last one".) \appendtoks \doifnoteonsamepageelse[footnote]{}{\global\setvalue{mycitelast}{}} \to\everyinsidenoteinsert Best Regards (and many thanks again!) Andreas. ___________________________________________________________________________________ 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 ___________________________________________________________________________________