Changes

Jump to navigation Jump to search
859 bytes added ,  09:39, 21 July 2004
no edit summary
< [[Graphics]]

ConTeXt's direct XML processing allows a rather mighty management of pictures with an XML database.

'''XML database file'''

<pre>
<figurelibrary language="en">
<description>
<organization>Pragma ADE</organization>
<project>ConTeXt Wiki</project>
<product>prd_pictures</product>
<comment>pictures for \ConTeXt Wiki</comment>
</description>
<figure>
<file>filename</file>
<label>reference</label>
<copyright>owner</copyright>
<comment>comment</comment>
</figure>
<figure>
...
</figure>
...
</figurelibrary>
</pre>

'''Making a PDF list'''

<pre>
texexec --pdf --use=fig-make --mode=compact myfile
</pre>

'''Use pictures from database'''

<pre>
\usemodule [fig-base]
\usefigurebase [myfile]

\externalfigure [reference] % like in <label>
</pre>

(is there a dtd or a relax ng schema somewhere out there? --[[User:Patrick Gundlach|pg]])

Navigation menu