ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XML filtering and \setupcombinations
@ 2015-05-19 15:21 Michael Eidenbenz
  0 siblings, 0 replies; only message in thread
From: Michael Eidenbenz @ 2015-05-19 15:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I'm enjoying the power of the new publication framework and started to manage my images with it. 
This works quite nice. But now I reached the point where my (limited) context knowledge comes to an end.

I  would like to print a contact sheet of my large image database. To save paper I want combine floats next to each other.

I use the XML framework to filter my images according the 'keywords' field:


\usebtxdataset[image][../../4_source/2_image/1_image.bib]
\convertbtxdatasettoxml[image]

\startxmlsetups btx:render
    \xmlfilter {#1} {
        /bibtex
        /entry[@category='image']
        /field[@name='keywords' and (find(text(), 'one'))]
        /..
        /command(btx:figure)
    }
\stopxmlsetups

\startxmlsetups btx:figure
    \externalfigure [\xmlfirst{#1}{/field[@name='file']}]
\stopxmlsetups

\setupexternalfigures [location=global, directory={../../4_source/2_image}, width=3cm]

\xmlsetup {btx:image} {btx:initialize}

\starttext
\xmlsetup {btx:image} {btx:render}
\stoptext


the file 1_image.bib has the following structure:

@image{test_1,
	keywords = {one, two, three},
	file = {test_1.png}
}


my problem is that I cant figure out how to process the filtered entries to form groups of let's say (3x4) twelve and use it with \ setupcombinations [3*4]

Thanks for any help.

Michael
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-19 15:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 15:21 XML filtering and \setupcombinations Michael Eidenbenz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).