ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andreas Schneider <aksdb@gmx.de>
To: ntg-context@ntg.nl
Subject: Re: \everyaftershipout isn't "called" for every pagebreak
Date: Mon, 18 Jan 2010 13:12:54 +0100	[thread overview]
Message-ID: <hj1j87$com$1@ger.gmane.org> (raw)
In-Reply-To: <4B539651.8010503@wxs.nl>

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
___________________________________________________________________________________


      reply	other threads:[~2010-01-18 12:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-16 16:53 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hj1j87$com$1@ger.gmane.org' \
    --to=aksdb@gmx.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).