On 6/4/24 13:51, Christoph Edenhauser wrote:
Dear list,
I am currently trying to get into Context and XML. I would like to do the typographical fine-tuning in Context and not in the XML document. My question is: Is it possible to have ConTeXt output a (preliminary) ConTeXt file instead of typesetting a PDF file, for further editing?
Hi Christoph,
not clear to me whether you meant an environment (a format file) with the ConTeXt generated file.
In that case, this might help:
context --extra=xml --analyze --template your-file.xml
With that template, you may run:
context --environment=xml-analyze-template.tex your-file.xml
BTW, there are two typos in xml-analyze-template.tex (lines 8-9):
- \startxmlsetup should read \startxmlsetups. - \xmlsetsetups should read \xmlsetsetup.
But consider that this only flushes text with no formatting (you will have all text in a single paragraph.
If this is not what you need, a more detailed (or simply more verbose) explanation) might help.
Just in case it might help,
Pablo