ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* everybeforeoutput vs everyafteroutput
@ 2017-03-10  9:07 Michael Eidenbenz
  2017-03-10 16:36 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Eidenbenz @ 2017-03-10  9:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

hello,

i try to understand the difference of everybeforeoutput and everafteroutput to inject some pages. it seems as there is no difference. 
\the\everybeforeoutput is placed after the output of the page:

\newtoks\Before
\appendtoks
\the\Before  
\global\Before\emptytoks 
\to\everybeforeoutput

\newtoks\After
\appendtoks
\the\After 
\global\After\emptytoks 
\to\everyafteroutput

\starttext
\input{knuth}\par
\appendtoks{before}\to\Before
\appendtoks{after}\to\After
\stoptext


this code in page-otr.mkvi seems to put it before the content:

\def\page_otf_set_engine_output_routine#content%
  {\global\output
     {\inotrtrue
      \the\everybeforeoutput
      #content\relax
      \the\everyafteroutput}}

can this be fixed? 
thanks michael





___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2017-03-11 21:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-10  9:07 everybeforeoutput vs everyafteroutput Michael Eidenbenz
2017-03-10 16:36 ` Hans Hagen
2017-03-11 21:55   ` Michael Eidenbenz

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).