From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31578 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: figure captions in the margin Date: Thu, 26 Oct 2006 00:10:55 +0200 Message-ID: <453FE0EF.7040905@wxs.nl> References: <1161682216.25175.2.camel@obelix> <453F9486.7040307@wxs.nl> <1161810723.5556.6.camel@obelix> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000000090907000306060708" X-Trace: sea.gmane.org 1161814279 31921 80.91.229.2 (25 Oct 2006 22:11:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2006 22:11:19 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Oct 26 00:11:18 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gcqxn-0003po-BL for gctc-ntg-context-518@m.gmane.org; Thu, 26 Oct 2006 00:11:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AFE821FF9E; Thu, 26 Oct 2006 00:11:06 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09805-04-2; Thu, 26 Oct 2006 00:10:59 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 762DF1FF9D; Thu, 26 Oct 2006 00:10:59 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 566B91FFA5 for ; Thu, 26 Oct 2006 00:10:57 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09643-05-4 for ; Thu, 26 Oct 2006 00:10:55 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with SMTP id 1377D1FF9E for ; Thu, 26 Oct 2006 00:10:55 +0200 (CEST) Original-Received: from [10.2.0.149] (unverified [10.2.0.149]) by controller-1 (SurgeMail 3.7b8) with ESMTP id 15117 for ; Thu, 26 Oct 2006 00:10:54 +0200 User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) Original-To: mailing list for ConTeXt users In-Reply-To: <1161810723.5556.6.camel@obelix> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31578 Archived-At: This is a multi-part message in MIME format. --------------000000090907000306060708 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Alex Lubberts wrote: > On wo, 2006-10-25 at 18:44 +0200, Hans Hagen wrote: > >>> Does somebody know whether it is possible and how it is possible to >>> place the caption of a figure in the margin? >>> >>> >> yes, actually i implemented this last week but i need to update the details manual; captions can go in margins, hang in centered figures, there is support for all kind of inner/outer alignments etc >> > > Great! > I looked at the source to find out how to do it. Am I right in thinking > that this should work? > > \setupcaptions[location=outermargin] > \starttext > \placefigure{Caption}{\framed{Figuur}} > \stoptext > > However, when I try this, there is no caption printed at all. Am I doing > something wrong? > (Perhaps, can I be of any assistance?) > > Regards, > Alex > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- --------------000000090907000306060708 Content-Type: application/x-tex; name="text-109.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="text-109.tex" % interface=en % % copyright=pragma-ade readme=readme.pdf licence=cc-by-nc-sa \startcomponent text-109 \environment text-000.tex \chapter{Caption handling} \start It's hard to predict what kind of caption placements users want. The amount of variation if large and thereby any system of specifying them will look complex. So, examples are the best way to show them. \startbuffer \setupcaption [figure] [location=bottom] \placefigure [left] {}{\externalfigure[dummy][lines=2,width=4cm]} \fakewords{60}{80} \par \stopbuffer \typebuffer \getbuffer \startbuffer \setupcaption [figure] [location=top] \placefigure [left] {}{\externalfigure[dummy][lines=2,width=4cm]} \fakewords{60}{80} \par \stopbuffer \typebuffer \getbuffer \startbuffer \setupcaption [figure] [width=4cm,align=flushright,location={left,high}] \placefigure [left] {}{\externalfigure[dummy][lines=2,width=4cm]} \fakewords{60}{80} \par \stopbuffer \typebuffer \getbuffer \startbuffer \setupcaption [figure] [width=4cm,align=flushright,location={high,lefthanging}] \placefigure [left] {}{\externalfigure[dummy][lines=2,width=4cm]} \fakewords{60}{80} \par \stopbuffer \typebuffer \getbuffer \startbuffer \setupcaption [figure] [width=4cm,align=flushleft,location={high,righthanging}] \placefigure [right] {}{\externalfigure[dummy][lines=2,width=4cm]} \fakewords{60}{80} \par \stopbuffer \typebuffer \getbuffer \startbuffer \setupcaption [figure] [width=4cm,align=flushleft,location={high,rightmargin}] \placefigure [right] {}{\externalfigure[dummy][lines=2,width=4cm]} \fakewords{60}{80} \par \stopbuffer \typebuffer \getbuffer The location of a caption is determined by the keywords \type {top}, \type {bottom} and for the side captions \type {high}, \type {middle}, \type {low}, either or not in combination with \type {left}, \type {right}, \type {leftmargin}, \type {rightmargin}, {lefthanging} or \type {righthanging}. The next series of examples shows the regular (non||side) floats. \startbuffer \setupcaption [figure] [location={high,left}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \typebuffer \getbuffer \startbuffer \setupcaption [figure] [width=4cm,align=flushright,location={high,left}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \typebuffer \getbuffer \startbuffer \setupcaption [figure] [width=4cm,align=flushright,location={middle,left}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \typebuffer \getbuffer \startbuffer \setupcaption [figure] [width=4cm,align=flushright,location={low,left}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \startbuffer \setupfloat [figure] [location=right] \setupcaption [figure] [width=4cm,align=flushright,location=high] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \typebuffer \getbuffer \startbuffer \setupfloat [figure] [location=right] \setupcaption [figure] [width=4cm,align=flushright,location={high,left}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \setupfloat [figure] [location=left] \setupcaption [figure] [width=4cm,align=flushleft, location={high,left}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \typebuffer \getbuffer \startbuffer \setupfloat [figure] [location=middle] \setupcaption [figure] [width=4cm,align=flushright, location={high,lefthanging}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \typebuffer \getbuffer \startbuffer \setupfloat [figure] [location=middle] \setupcaption [figure] [width=4cm,align=flushleft, location={high,righthanging}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \typebuffer \getbuffer \startbuffer \setupfloat [figure] [location=right] \setupcaption [figure] [width=4cm,align=flushleft, location={high,rightmargin}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \typebuffer \getbuffer \startbuffer \setupfloat [figure] [location=left] \setupcaption [figure] [width=4cm,align=flushright,location={high,leftmargin}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \typebuffer \getbuffer \startbuffer \setupfloat [figure] [location=middle] \setupcaption [figure] [width=4cm,align=flushright,location={high,outermargin}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \typebuffer \getbuffer \startbuffer \setupfloat [figure] [location=middle] \setupcaption [figure] [width=4cm,align=flushleft, location={high,innermargin}] \placefigure {}{\externalfigure[dummy][lines=2,width=4cm]} \stopbuffer \typebuffer \getbuffer The \type {innermargin} and \type {outermargin} are special cases. They adapt to the kind of page. \page \stop \stopcomponent --------------000000090907000306060708 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------000000090907000306060708--