Vertical location of combinations
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. Thanks, Aditya
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
On Mon, 15 Apr 2013, Wolfgang Schuster wrote:
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.
Thanks. I'll just create a macro to wrap everything around a framed. Aditya
participants (2)
-
Aditya Mahajan
-
Wolfgang Schuster