Hi Hans,
Is the following correct?
(1) [alternative=...] is a new key for \definecombination
(2) \definecombination[mycombiA][alternative=text] means you specify
the combination's contents as item, caption, item, caption, etc.
\startcombination[mycombiA][nx=2,ny=1]
{item}{caption}
{another item}{another caption}
\stopcombination
(3) \definecombination[mycombiB][alternative=label] means you specify
the combination's contents as item, item, item, etc.
\startcombination[mycombiB][nx=2,ny=1]
{item}
{another item}
\stopcombination
and the caption (label) will be placed automatically.
(4) You can setup the mycombiB labels like so:
\setuplabel[combination:mycombiB][
text={Item },
numberconversion=character,
stopper=!
]
(If you do not setup the mycombiB label, each item's label will be a
bold number.)
Cheers,
Sietse
On 15 April 2013 10:50, Hans Hagen
Hi,
As follow up on the combinations tread I made this:
\useMPlibrary[dum]
\starttext
\definecombination[mycombi][alternative=label]
\setuplabel[combination:mycombi][text={Item },numberconversion=character,stopper=!]
\startcombination[mycombi][2*2] {\externalfigure[dummy][width=4cm,height=1cm]} {\externalfigure[dummy][width=4cm,height=1cm]} {\externalfigure[dummy][width=4cm,height=1cm]} {\externalfigure[dummy][width=4cm,height=1cm]} \stopcombination
\blank[2*big]
\startcombination[mycombi][nx=2,ny=1,continue=yes] {\externalfigure[dummy][width=4cm,height=1cm]} {\externalfigure[dummy][width=4cm,height=1cm]} \stopcombination
\blank[2*big]
\startcombination[mycombi][alternative=text,nx=2,ny=2] {\externalfigure[dummy][width=4cm,height=1cm]} {alpha} {\externalfigure[dummy][width=4cm,height=1cm]} {beta} {\externalfigure[dummy][width=4cm,height=1cm]} {gamma} {\externalfigure[dummy][width=4cm,height=1cm]} {delta} \stopcombination
\blank[2*big]
\startcombination[mycombi][2*2] {\externalfigure[dummy][width=4cm,height=1cm]} {\externalfigure[dummy][width=4cm,height=1cm]} {\externalfigure[dummy][width=4cm,height=1cm]} {\externalfigure[dummy][width=4cm,height=1cm]} \stopcombination
\stoptext
A relative simple extension but probably useful. --
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________