From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82188 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Vertically Aligning inmargin Text to Figure Date: Mon, 29 Apr 2013 13:04:05 +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 1367233451 4474 80.91.229.3 (29 Apr 2013 11:04:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Apr 2013 11:04:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 29 13:04:15 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 1UWlsU-00044Z-VD for gctc-ntg-context-518@m.gmane.org; Mon, 29 Apr 2013 13:04:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 32779101E8; Mon, 29 Apr 2013 13:04: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 S1rPF8XNOytu; Mon, 29 Apr 2013 13:04:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4EF56101E4; Mon, 29 Apr 2013 13:04:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2D0D7101E4 for ; Mon, 29 Apr 2013 13:04:08 +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 1fOCEa8i4Cx2 for ; Mon, 29 Apr 2013 13:04:07 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 24A63101E0 for ; Mon, 29 Apr 2013 13:04:06 +0200 (CEST) Original-Received: from mail-bk0-x22d.google.com (mail-bk0-x22d.google.com [IPv6:2a00:1450:4008:c01::22d]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3TB46e1028586 for ; Mon, 29 Apr 2013 13:04:06 +0200 Original-Received: by mail-bk0-f45.google.com with SMTP id j4so2628405bkw.18 for ; Mon, 29 Apr 2013 04:04:06 -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=B+o3OrWOfJuSS46f54PZiHX9sZ3hLKGYfScjwxrxA68=; b=STRppc2upgptfe/2OrP+XadbPoSnjxTL5Srcen+p5whdPHdJZDlf7Ebymp2aGhwcAR No28dS7t33W4RH/S1a0Tjyw5gNgTnVG6q73m31LAfJS1UHFQVNDfBIw2CfAqEngYejmH BFo+bnindipZf4WNgFiYL96jsZZ4Jg2fhxze4XDrSpHZAbCQNM+0kJxkuCdWAsxrybCX LSIoK9vu48CceupwpZ2T/UaxsN15z/WMP2WznvN/0yw/XPxdby+H3nw9OCAm+v2VGuT4 nHrVo124s3U1+GjMD+3XL+nkZSCCyItXpXYPiPj0jeyZoPo+KXqzPao8UC6ky0OItHDx IYQA== X-Received: by 10.205.37.74 with SMTP id td10mr11575579bkb.15.1367233446045; Mon, 29 Apr 2013 04:04:06 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbf8e67.pool.mediaWays.net. [77.191.142.103]) by mx.google.com with ESMTPSA id tl1sm6618262bkb.7.2013.04.29.04.04.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 04:04:05 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::22d; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06JtL46Wh - 372e70e9233b - 20130429 (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:82188 Archived-At: Am 29.04.2013 um 09:33 schrieb Malte Stien : > Hi, > > I need to associate a bit of text with a figure in a book. The text is not---and cannot be---the figure caption (it's providing some explanation with respect to some labels in the figure). I have tried the following based on some other post on the mailing list: > > \definepapersize[eightsquare][width=8in, height=8in] > \setuppapersize[eightsquare] > > \setuplayout[ > location=doublesided, marking=on, backspace=43mm, leftmargin=18mm, > leftmargindistance=4mm, rightmargin=35mm, rightmargindistance=4mm, rightedgewidth=6mm, > topspace=12mm, header=15mm, footer=15mm, height=179mm, width=115mm > ] > > \starttext > > \startplacefigure[location=force, title={First dummy caption}] > \inmargin{First margin dummy} > \externalfigure[dummy][width=115mm] > \stopplacefigure > > \stoptext > > However, that results in the text being down the bottom of the figure. I need the text to be vertically aligned with the top of the figure. I have attached the resulting PDF for illustration purposes (is that okay on this mailing list? It's very small). > > Any hints would be much appreciated. You can set the text in the margin with the second argument of \startplacefigure. \define\FigureText {\dowithnextbox {\startlinealignment[middle] \copy\nextbox\rlap{\hskip\rightmargindistance\framed[frame=off,width=\rightmarginwidth,height=\nextboxht]{\floatuserdataparameter{text}}} \stoplinealignment} \hbox} \setupfloat[figure][command=\FigureText] \starttext \startplacefigure[title=Dummy figure][text=Margin dummy] \externalfigure[dummy][width=.8\textwidth] \stopplacefigure \stoptext 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 ___________________________________________________________________________________