Difference between revisions of "Image Database"
Jump to navigation
Jump to search
m (category added (Graphics, XML)) |
|||
Line 44: | Line 44: | ||
</texcode> | </texcode> | ||
− | + | ||
[[Category:Graphics]] | [[Category:Graphics]] | ||
[[Category:XML]] | [[Category:XML]] |
Revision as of 05:29, 14 December 2010
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".
Here you can make such files online. (PDF interface!)
XML database file
<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>
Making a PDF list
texexec --pdf --use=fig-make --mode=compact myfile
Use pictures from database
\usemodule [fig-base] \usefigurebase [myfile] \externalfigure [reference] % like in <label>