Am 15.04.2013 um 06:34 schrieb Aditya Mahajan
How do I control the vertical location of combinations?
I want output similar to
ABC \framed[frame=no, location=top]}\startcombination[2] {\externalfigure[dummay][width=2cm]}{One} {\externalfigure[dummay][width=2cm]}{Two} \stopcombination} DEF
without having to explictly add a \frame.
Looking at pack-com, I tried
\useMPlibrary[dum] \setupcombination[location=top]
\starttext ABC \startcombination[2] {\externalfigure[dummay][width=2cm]}{One} {\externalfigure[dummay][width=2cm]}{Two} \stopcombination DEF
ABC \framed[frame=no, location=top]}\startcombination[2] {\externalfigure[dummay][width=2cm]}{One} {\externalfigure[dummay][width=2cm]}{Two} \stopcombination} DEF \stoptext
but the combination is still aligned to the baseline of the caption.
The location-key controls the vertical alignment of the images in the combination and I think the environment is meant as display element and not for inline as you try to use it. As you can see in pack-com.mkiv the content of the environment is put a \vbox which explains the location when you use it in your text. Wolfgang