-----Ursprüngliche Nachricht----- Von: ntg-context
Im Auftrag von Pablo Rodriguez via ntg-context Gesendet: Dienstag, 15. November 2022 16:07 An: Denis Maier via ntg-context Cc: Pablo Rodriguez Betreff: Re: [NTG-context] Do environment files add implicit \starttext ... \stopttext On 11/15/22 13:22, Denis Maier via ntg-context wrote:
Hi,
if I process an XML buffer, I’ve noticed I need to wrap the \xmlprocessbuffer in a \starttext ... \stoptext pair. [] However, if I have the XML and the setups in dedicated files, there seems to be no need for \starttext ... \stoptext. [] Therefore my question:
Does the use –environment automatically wrap the processed file in \starttext ... stoptext ?
Hi Denis,
try a source file with this contents:
\ConTeXt\ is great.
with the following environment:
\setuppapersize[A6] \setupbodyfont[pagella]
It looks like when --environment is used, ConTeXt assumes that the main source only contains text. Which makes sense (at least, to me).
Thanks, Pablo. Yes, that makes sense. Denis