ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Vertical location of combinations
Date: Mon, 15 Apr 2013 10:37:16 +0200	[thread overview]
Message-ID: <A80EAF3C-81CB-4CAE-9DD4-F996E2DE16AB@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.02.1304150031150.17459@ybpnyubfg.ybpnyqbznva>


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
___________________________________________________________________________________


  reply	other threads:[~2013-04-15  8:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-15  4:34 Aditya Mahajan
2013-04-15  8:37 ` Wolfgang Schuster [this message]
2013-04-15 17:55   ` Aditya Mahajan

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=A80EAF3C-81CB-4CAE-9DD4-F996E2DE16AB@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).