The attached MWE shows how to:
- embed tex code in
> ------------------------------
>
> The code above is considered a long comment as if it were written as
> ------------------------------
>
> ------------------------------
>
> so the context.setuppapersize function call is ignored.
>
> The workaround is:
> ------------------------------
>
> ------------------------------
>
> A lua analogous of \xmlcontext (line-wise) would be great.
>
Hans prompted me to use xml.content() instead of xml.text(). The first
one preserves newlines, so short comments don't extend to the next line.
> * * *
>
> Here's another problem related to space in
> ------------------------------
>
> adds a space after an element.
> A solution could be this:
>
> ------------------------------
> \startxmlsetups myHtml:i
> {\it\blue\xmlflush{#1}}\stopxmlsetups
> ------------------------------
>
> I prefer this one:
>
> ------------------------------
> \startxmlsetups myHtml:i
> {\it\blue\xmlflush{#1}}\relax
> \stopxmlsetups
> ------------------------------
>
> You need to end the line with a macro eating up all the trailing spaces
> (newlines included).
>
> Massi
>
> Il 22/03/22 15:23, mf via ntg-context ha scritto:
>> I found the solution I was looking for. The command to run is still
>>
>> context --environment=nested-xmlsetup.tex --forcexml
>> nested-xmlsetup.xhtml
>>
>> In the
>>>
>>
>> ___________________________________________________________________________________
>>
>> 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
>> ___________________________________________________________________________________
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________