Marco Patzer schrieb am 27.11.18 um 18:34:
On Tue, 27 Nov 2018 18:21:45 +0100
Hans Hagen <j.ha...@xs4all.nl> wrote:

MWE:

\startcomponent *
    \appendtoks Foobar \to\everystarttext
    \startdocument\null\stopdocument
\stopcomponent

If the first and last line is commented out, it prints “Foobar”,
when compiled as a component it doesn't.
it kicks in when context things a text starts (so earler in this
case)
Has that changed over the course of the last year or always been
that way?

This was always the case.

... it's not a godo idea to use that hook to add content
I'm not adding content, it was just for the MWE. I'll post another
thread about what I intend to achieve.

When you use \startdocument you can use

\startsetups [document:start]
...
\stopsetups

to insert code at the begin of the document.

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to