From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87285 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Vertical alignment of \placefigure[right] Date: Wed, 7 May 2014 15:09:40 +0200 Message-ID: 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 1399468207 23219 80.91.229.3 (7 May 2014 13:10:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 May 2014 13:10:07 +0000 (UTC) Cc: mailing list for ConTeXt users To: Sanjoy Mahajan Original-X-From: ntg-context-bounces@ntg.nl Wed May 07 15:10:03 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 1Wi1bm-00009m-Pd for gctc-ntg-context-518@m.gmane.org; Wed, 07 May 2014 15:10:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5C00110257 for ; Wed, 7 May 2014 15:10:02 +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 9EKe5QYSjCQQ for ; Wed, 7 May 2014 15:10:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6B7E91021F for ; Wed, 7 May 2014 15:09:56 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 88523101E2 for ; Wed, 7 May 2014 15:09:52 +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 DGifEtXFMc-Y for ; Wed, 7 May 2014 15:09:51 +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 1D3DB101E1 for ; Wed, 7 May 2014 15:09:51 +0200 (CEST) Original-Received: from mail-yh0-x234.google.com (mail-yh0-x234.google.com [IPv6:2607:f8b0:4002:c01::234]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s47D9eOf003545 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 7 May 2014 15:09:48 +0200 Original-Received: by mail-yh0-f52.google.com with SMTP id z6so439039yhz.25 for ; Wed, 07 May 2014 06:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=5UhjO7OJ0rI5z6hweCFBhhNutlrl+Rv8TjTWVaGGN8Y=; b=flAwtKpKZmsgShQUOx6nvdlD2DI3J8pj8ei41LysN3x/aIa5jxTF9noQ6ho8DDmEGL kFtJe9aj5PKadTAWyRYa2gLmQbq4r3HtbRznDcKONHNdOyj+TumOBTPSUyoVX2Rvc5cA GvMGCQVDOniOOKl9y/VzXfuVWfLZZAlYbwANaMr4spRd0bKB5bSF0dWe+oE4cpU3qEfP u9xyOJklPgyB8jNrW5osPxKwKb6VsUEQR6ncjkjqvYtV/x+HnGiVkOxyApddJ1+rHDiH mmZts2CWyjnxSIgy+VGnAE/oCXCKnsBYScLWQ8PmDIzp0lfUEga1LxFzh2wrDqz0/o91 AhJg== X-Received: by 10.236.46.225 with SMTP id r61mr30171584yhb.107.1399468180206; Wed, 07 May 2014 06:09:40 -0700 (PDT) Original-Received: by 10.170.85.7 with HTTP; Wed, 7 May 2014 06:09:40 -0700 (PDT) In-Reply-To: <87y4ydpxfh.fsf@approx.mit.edu> X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4002:c01::234; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06LX19GOx - 95b1dbab82b9 - 20140507 (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:87285 Archived-At: On Wed, May 7, 2014 at 2:48 PM, Sanjoy Mahajan wrote: >> I would like to vertically shift the placement of figures >> (\placefigure[right]...), so that the upper side of the figure would >> be aligned with the top of the first line in a paragraph as opposed to >> the bottom [of the first line?] of the first paragraph. > > Ah, I can finally answer a question. The key is "high": > > \starttext > \hrule > \placefigure[right,high]{Caption}{\framed[width=5cm,height=4cm]{}} > \input knuth > \stoptext > > But that seems too easy. Is it what you want? Yes, perfect, that's *exactly* what I want. Thank you, Sanjoy. Now it would be nice to document this on http://wiki.contextgarden.net/Command/placefigure What other keywords are related to "high"? I'm guessing "low" which might or might not spare you an extra line on bottom (but that's just judging from a few quick experiments). If you know a bit more about how to combine these keywords, I would be grateful if you would add a few examples, else I'll document this one. Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________