dealing with multipass data in mkiv is completely different from mkii and at some point there will be a proper api for users (makes no sense now as i might as well change internals along with luatex developments)
in mkiv we store info in tables and much is available during a document run anyway (in mkii we filter data from the tuo file) so the question is, what info do you need? it's probably easier to provide it as core functionality
so i need speccs and a small test file
Hans
Thanks for that info! I think for specs my "plan" is too vague. I will explain what my goal is then you either see a good solution and/or tell me that this is out of scope for now :-) The test file to demonstrate the problem is in my initial newsgroup post for this thread. I will re-attach it here. What I need would be a precise page break handling. Currently ConTeXt seems to process a whole paragraph as one object, and then breaks it down to individual pages. That leads to a problem however: I want to refine my citation style. All bibliography is inserted into footnotes. If two (or more) consecutive citations _on the same page_ refer to the same bib entry, the footnote for that citation should read "Ibidem". Therefore I have to remember the last cited entry. Currently I use \appendtoks...\to\everyaftershipout to reset/clear the variable I use for storing that last entry. That works fine as long as the paragraphs are small. If however several citations within one (possibly large) paragraph are separated by a page break, the output will be wrong, since the event to reset the variable occurs too late (see above). The problem can be demonstrated with this example - the first footnote on each page should be "New". \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 Best Regards, Andreas.