Changes

Jump to navigation Jump to search
792 bytes added ,  22:21, 6 June 2020
m
no edit summary
< [[Graphics]]ConTeXt's direct XML processing allows a rather mighty management of pictures with an XML database.You can not only store images in this way, officially this technique is now named "Resource Libraries".
ConTeXt's direct XML processing allows a rather mighty management of pictures with an XML database[http://www.ntg.nl:8061/makeres.pdf Here] you can make such files online. (PDF interface!)
'''XML database file: MKII'''
<prexmlcode>
<figurelibrary language="en">
<description>
<project>ConTeXt Wiki</project>
<product>prd_pictures</product>
<comment>pictures for \ConTeXt Wiki</comment>
</description>
<figure>
...
</figurelibrary>
</xmlcode>
 
'''XML database file: MKIV'''
 
<xmlcode>
<rl:library language="en">
 
<rl:description>
<rl:organization>Organisation</rl:organization>
<rl:project>ConTeXt Wiki</rl:project>
<rl:product>product pictures</rl:product>
<rl:comment>pictures for ConTeXt Wiki</rl:comment>
</rl:description>
 
<rl:resource>
<rl:file>filename</rl:file>
<rl:label>reference</rl:label>
<rl:copyright>owner</rl:copyright>
<rl:comment>comment</rl:comment>
</rl:resource>
</rl:library
</xmlcode>
 
'''Making a PDF list MKII'''
 
<pre>
texexec --pdf --use=fig-make --mode=compact myfile
</pre>
'''Making a PDF listMKIV'''
<pre>
texexec context --pdf input=figure-lib.xml auto:x-use=figres-make 01.mkiv --moderesult=compact myfilefigure-lib
</pre>
</texcode>
(is there a dtd or a relax ng schema somewhere out there? -- [[UserCategory:Patrick Gundlach|pgGraphics]][[Category:XML]])

Navigation menu