ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Michael Eidenbenz <eidenbenz@arch.ethz.ch>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: XML filtering and \setupcombinations
Date: Tue, 19 May 2015 17:21:25 +0200	[thread overview]
Message-ID: <B73093AA-A7B8-4308-8C9C-29786146CD8B@arch.ethz.ch> (raw)

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
___________________________________________________________________________________

                 reply	other threads:[~2015-05-19 15:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B73093AA-A7B8-4308-8C9C-29786146CD8B@arch.ethz.ch \
    --to=eidenbenz@arch.ethz.ch \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).