* Vertical location of combinations
@ 2013-04-15 4:34 Aditya Mahajan
2013-04-15 8:37 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2013-04-15 4:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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] 3+ messages in thread
* Re: Vertical location of combinations
2013-04-15 4:34 Vertical location of combinations Aditya Mahajan
@ 2013-04-15 8:37 ` Wolfgang Schuster
2013-04-15 17:55 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-04-15 8:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 15.04.2013 um 06:34 schrieb Aditya Mahajan <adityam@umich.edu>:
> 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
___________________________________________________________________________________
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] 3+ messages in thread
* Re: Vertical location of combinations
2013-04-15 8:37 ` Wolfgang Schuster
@ 2013-04-15 17:55 ` Aditya Mahajan
0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2013-04-15 17:55 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Mon, 15 Apr 2013, Wolfgang Schuster wrote:
>
> Am 15.04.2013 um 06:34 schrieb Aditya Mahajan <adityam@umich.edu>:
>
>> 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
___________________________________________________________________________________
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] 3+ messages in thread
end of thread, other threads:[~2013-04-15 17:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-15 4:34 Vertical location of combinations Aditya Mahajan
2013-04-15 8:37 ` Wolfgang Schuster
2013-04-15 17:55 ` Aditya Mahajan
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).