From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81698 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Vertical location of combinations Date: Mon, 15 Apr 2013 10:37:16 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1366015067 32107 80.91.229.3 (15 Apr 2013 08:37:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Apr 2013 08:37:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 15 10:37:50 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from [195.12.62.10] (helo=balder.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1URev4-0000wr-Av for gctc-ntg-context-518@m.gmane.org; Mon, 15 Apr 2013 10:37:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AFF8C102E2; Mon, 15 Apr 2013 10:37:25 +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 YJb0fmHfb6pQ; Mon, 15 Apr 2013 10:37:23 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CDEF9102E5; Mon, 15 Apr 2013 10:37:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 68F4D102E5 for ; Mon, 15 Apr 2013 10:37:22 +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 ISumgkN55FKf for ; Mon, 15 Apr 2013 10:37:21 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 56DA4102E2 for ; Mon, 15 Apr 2013 10:37:21 +0200 (CEST) Original-Received: from mail-bk0-x233.google.com (mail-bk0-x233.google.com [IPv6:2a00:1450:4008:c01::233]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3F8bGoN022095 for ; Mon, 15 Apr 2013 10:37:17 +0200 Original-Received: by mail-bk0-f51.google.com with SMTP id y8so2221370bkt.38 for ; Mon, 15 Apr 2013 01:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=XZ1aOO55eXRT79/u2ylB8iDRyFla0fXzbK5nWmQ0tyY=; b=F/KQAasMNDUqeZFSjdTYzv99/Pe38ty/WMPnZD20O+hlebcufoFamitz/7MNjhOH41 sHVk8U18lJLB1hEcrNT8qQTQ9uy3DXCNEfea856/8kY53CxmgrLcmcDCcqrXlrq4JbjF 93/kg4s9tH54MxRCKDWU83sbHEhbogtxBT0vllosBRNcRo2kX1JxcjuM9ZFtMMi1da97 QvyKzz148bXIsHEY0hO3RP0OInXcHmdL6K3MAeY16FrPthOzSik5kQSp6ZYDWBZxNgr6 YF3hhRqxLURcp2T6qWNgBkDTJDIyymlayrp9yhcMe2yf4T7yjZppI5I94p/nK8rCQApr brnA== X-Received: by 10.204.51.200 with SMTP id e8mr4385422bkg.131.1366015036864; Mon, 15 Apr 2013 01:37:16 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d073c87.pool.mediaWays.net. [77.7.60.135]) by mx.google.com with ESMTPS id v8sm137849bkh.20.2013.04.15.01.37.15 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 15 Apr 2013 01:37:16 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0045 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Jo8BhMf - c0769b9ee1d2 - 20130415 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:81698 Archived-At: 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________