From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81738 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Vertical location of combinations Date: Mon, 15 Apr 2013 13:55:03 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366048515 30489 80.91.229.3 (15 Apr 2013 17:55:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 17:55:15 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 15 19:55:20 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1URncd-0002VE-Um for gctc-ntg-context-518@m.gmane.org; Mon, 15 Apr 2013 19:55:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 82A16101F7; Mon, 15 Apr 2013 19:55:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4r23dWiTqXx8; Mon, 15 Apr 2013 19:55:14 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 06734101E7; Mon, 15 Apr 2013 19:55:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6D26D101E7 for ; Mon, 15 Apr 2013 19:55:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oYdKHT1Izjh4 for ; Mon, 15 Apr 2013 19:55:11 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 012EC101E6 for ; Mon, 15 Apr 2013 19:55:10 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3FHt60S008806 for ; Mon, 15 Apr 2013 19:55:07 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hellskitchen.mr.itd.umich.edu ID 516C3EF8.749F0.11199 ; Authuser adityam; 15 Apr 2013 13:55:04 EDT In-Reply-To: User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QJohT6uH - 16b2f16e8ac1 - 20130415 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:81738 Archived-At: 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________