Changes
Jump to navigation
Jump to search
an example of a simple .ctx file to simplify compiling .xml files (posted to the mailing list by Hans); feel free to move the content to another/better place
See:
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
= Processing XML files =
To process an <code>xml.xml</code> file with style definitions in <code>xml.ctex</code> you can make a <code>xml.ctx</code> file that says:
<xmlcode>
<?xml version='1.0' standalone='yes'?>
<ctx:job>
<ctx:message>whatever you like</ctx:message>
<ctx:preprocess/>
<ctx:process>
<ctx:resources>
<ctx:environment>xml.ctex</ctx:environment>
</ctx:resources>
</ctx:process>
<ctx:postprocess/>
</ctx:job>
</xmlcode>
and directly run
newtexexec xml.xml
[[Category:XML]]
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
= Processing XML files =
To process an <code>xml.xml</code> file with style definitions in <code>xml.ctex</code> you can make a <code>xml.ctx</code> file that says:
<xmlcode>
<?xml version='1.0' standalone='yes'?>
<ctx:job>
<ctx:message>whatever you like</ctx:message>
<ctx:preprocess/>
<ctx:process>
<ctx:resources>
<ctx:environment>xml.ctex</ctx:environment>
</ctx:resources>
</ctx:process>
<ctx:postprocess/>
</ctx:job>
</xmlcode>
and directly run
newtexexec xml.xml
[[Category:XML]]