[NTG-context] \everystarttext in components

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Tue Nov 27 18:42:51 CET 2018

Marco Patzer schrieb am 27.11.18 um 18:34:
> On Tue, 27 Nov 2018 18:21:45 +0100
> Hans Hagen <j.hagen at 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]

to insert code at the begin of the document.


More information about the ntg-context mailing list