[NTG-context] DEB of Context 2008-01-28 anybody?
Hans Hagen
pragma at wxs.nl
Mon Feb 11 23:24:17 CET 2008
the cleanest way is:
\startxmlsetups xml:mysetups
\xmlsetsetup{\xmldocument}{text:p}{xml:paragraph}
\stopxmlsetups
\xmlregistersetup{xml:mysetups}
\startxmlsetups xml:paragraph
\xmlflush{#1}\endgraf
\stopxmlsetups
\usezipfile[\inputfilename]
\starttext
\xmlprocess{main}{*/content.xml}{}
\stoptext
and then:
texexec --lua --purge --environment=yourstyle.tex Versuch.odt
(you need to add the .tex, there is a buglet)
however, more fun is:
texexec --ctx=openoffice Versuch.odt
with (someplace in your tree) openoffice.ctx
<?xml version='1.0' standalone='yes'?>
<ctx:job>
<ctx:message>open office processing</ctx:message>
<ctx:preprocess/>
<ctx:flags>
<ctx:flag>purge</ctx:flag>
<ctx:flag>texengine=luatex</ctx:flag>
<ctx:flag>interface=en</ctx:flag>
</ctx:flags>
<ctx:process>
<ctx:resources>
<ctx:environment>t-openoffice.tex</ctx:environment>
</ctx:resources>
</ctx:process>
<ctx:postprocess/>
</ctx:job>
and t-openoffice.tex as style
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
More information about the ntg-context
mailing list