> -----Ursprüngliche Nachricht----- > Von: ntg-context <ntg-context-boun...@ntg.nl> Im Auftrag von Pablo > Rodriguez via ntg-context > Gesendet: Dienstag, 15. November 2022 16:07 > An: Denis Maier via ntg-context <ntg-context@ntg.nl> > Cc: Pablo Rodriguez <oi...@gmx.es> > 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________