From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87287 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Vertical alignment of \placefigure[right] Date: Wed, 07 May 2014 10:18:46 -0400 Message-ID: <87mwetpt89.fsf@approx.mit.edu> References: <87y4ydpxfh.fsf@approx.mit.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1399472363 428 80.91.229.3 (7 May 2014 14:19:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 May 2014 14:19:23 +0000 (UTC) Cc: mailing list for ConTeXt users To: Mojca Miklavec Original-X-From: ntg-context-bounces@ntg.nl Wed May 07 16:19:18 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wi2gn-0000Hm-QW for gctc-ntg-context-518@m.gmane.org; Wed, 07 May 2014 16:19:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 43AEB1021C for ; Wed, 7 May 2014 16:19:15 +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 gd6wI24C2ZHE for ; Wed, 7 May 2014 16:19:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id EE1611021D for ; Wed, 7 May 2014 16:19:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DC93D101E2 for ; Wed, 7 May 2014 16:19:07 +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 UO91kEPSxfHz for ; Wed, 7 May 2014 16:19:06 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 5B7A4101E1 for ; Wed, 7 May 2014 16:18:56 +0200 (CEST) Original-Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu [18.9.25.13]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s47EIrWC029302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 7 May 2014 16:18:55 +0200 X-AuditID: 1209190d-f798f6d000000c3b-da-536a40cd507f Original-Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id F4.45.03131.DC04A635; Wed, 7 May 2014 10:18:53 -0400 (EDT) Original-Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id s47EIqFf031094; Wed, 7 May 2014 10:18:52 -0400 Original-Received: from approx.mit.edu (pool-72-93-170-229.bstnma.east.verizon.net [72.93.170.229]) (authenticated bits=0) (User authenticated as sanjoy@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s47EIo3d022746 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 7 May 2014 10:18:51 -0400 Original-Received: from sanjoy by approx.mit.edu with local (Exim 4.82) (envelope-from ) id 1Wi2gI-0006A4-Od; Wed, 07 May 2014 10:18:46 -0400 In-Reply-To: User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 (i486-pc-linux-gnu) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDIsWRmVeSWpSXmKPExsUixCmqrHvWISvYYO9cXovWlS3MFmvnL2Jy YPLYOesuu8exVYsZA5iiuGxSUnMyy1KL9O0SuDJWTn7BVnCJq2LZgYlMDYz/OLoYOTgkBEwk rh2S62LkBDLFJC7cW8/WxcjFISQwm0mi5cEvVghnA6PE/MlXmEGqhATOMklcOi4FkZjBKHFn +gUmkElsAqoSf/8HgtSICBhL7NrSwwhiMwuYS3x6+5MNxBYWcJF4cvcE2BxOgUCJzjerobZt ZZR4/GwmO0hCVCBI4nrTU7AiFqCZb/uvgDXzCmhL3Fp1kBHCFpQ4OfMJC8QCCYmDL14wT2AU nIUkNQtJagEj0ypG2ZTcKt3cxMyc4tRk3eLkxLy81CJdI73czBK91JTSTYzgQJXk3cH47qDS IUYBDkYlHt4HrzKChVgTy4orcw8xSnIwKYnyuhhlBQvxJeWnVGYkFmfEF5XmpBYfYpTgYFYS 4f1pB5TjTUmsrEotyodJSXOwKInzvrW2ChYSSE8sSc1OTS1ILYLJynBwKEnwbrEHahQsSk1P rUjLzClBSDNxcIIM5wEavgOkhre4IDG3ODMdIn+KUVFKnHcTyFYBkERGaR5cLyyRvGIUB3pF mPcgSDsPMAnBdb8CGswENJjLOB1kcEkiQkqqgXGTmvbs6XpiIpN+8/ULrM222pkf1Thn04b7 b0/b1PmKyXmEFvKf1HHhWxDBWP761eW78xsFa+6IGnHcP6LnOC/fOqF9rn66jvFt3pAiIeM3 MzPXPpDYsPfi+/3q75vr2E4l3UqNzz73zu/VzS1ToiffexFiL7ck4/Z++a3nJt// X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=18.9.25.13; country=US; region=Massachusetts; city=Cambridge; latitude=42.3931; longitude=-71.1345; http://maps.google.com/maps?q=42.3931,-71.1345&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03LX2iSzd - b10250d544e5 - 20140507 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:87287 Archived-At: Here are a few more keys. I don't fully understand their effect, but I found them in strc-flt.mkvi (p.s. shouldn't that be .mkiv ?). In the final "grid" examples, I extended the figure height to 4.5cm, to show the effect of the grid, which seems to be that the bottom of the figure aligns with a baseline. The top can then protrude, if the height is not a multiple of the line height. But, if the figure heights are right, it would look good in combination with \setupfloats[sidespaceafter=0pt]. -Sanjoy \starttext \hrule \placefigure[right]{Caption}{\framed[width=5cm,height=4.3cm]{}} \input knuth \vskip1cm \hrule \placefigure[right,fit]{Fit}{\framed[width=5cm,height=4.3cm]{}} \input knuth \page \hrule \placefigure[right,depth]{Depth}{\framed[width=5cm,height=4.3cm]{}} \input knuth \vskip1cm \hrule \placefigure[right,height]{Height}{\framed[width=5cm,height=4.3cm]{}} \input knuth \page \hrule \placefigure[right,halfline]{Halfline}{\framed[width=5cm,height=4.3cm]{}} \input knuth \vskip1cm \hrule \placefigure[right,grid]{Grid}{\framed[width=5cm,height=4.5cm]{}} \input knuth \page \hrule \setupfloats[sidespaceafter=0pt] \placefigure[right,grid,high,none,nonumber]{Grid+high}{\framed[width=5cm,height=4.5cm]{}} The {\bf grid+high figure} \input tufte \input knuth \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________