From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/6926 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: pictures in columns Date: Tue, 19 Feb 2002 10:56:24 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20020219105201.03ea1e88@server-1> References: <200202181703.g1IH3LP02322@nathir.fiee.lan> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035397429 15059 80.91.224.250 (23 Oct 2002 18:23:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:23:49 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Henning Hraban Ramm In-Reply-To: <200202181703.g1IH3LP02322@nathir.fiee.lan> Xref: main.gmane.org gmane.comp.tex.context:6926 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:6926 At 06:03 PM 2/18/2002 +0100, Henning Hraban Ramm wrote: >Seems to be impossible, what I'd like to get: >-- picture beside text in a two-column environment >-- picture sitting on the grid > >I tried: >\useexternalfigure[pic][mypic][maxwidth=.5\textwidth] % ok >\placeongrid[bottom]{\placefigure[right][somewhat]{none}{\externalfigure[pic]}} > >The picture is always centered in the column and centered between some lines, >text below. > >Is there a solution? i'm in the process of adding more grid control (section header already done). in your case: look at column sets (in a next release there will be things like free standing graphics, bleeding control, absolute col/cell positioning and other things dtp-ers like you will love; working on that now) \definecolumnset [main][n=5,distance=.5cm] \setuppapersize [A2][A2] \setuplayout [topspace=3cm, backspace=3cm, header=1.5cm, footer=1.5cm, height=middle, width=middle] \setupbodyfont [10pt] % ,ppl] \starttext \definecolumntextarea [zero][right][x=1,y=1,nx=5,ny=15,state=start] \setupcolumntextareatext[zero][right][\WidthSpanningText{Hasselt 750}{\hsize}{RegularBold}] \definecolumntextarea [one][right][x=1,y=45,nx=5,ny=15,state=start] \setupcolumntextareatext[one][right][{\externalfigure[hass23g][width=\hsize,height=\vsize]}] \definecolumntextarea [two][right][x=2,y=42,nx=2,ny=10,state=start] \setupcolumntextareatext[two][right][{\externalfigure[hakker1b][width=\hsize,height=\vsize]}] \definecolumntextarea [three][right][x=4,y=55,nx=1,ny=10,state=start] \setupcolumntextareatext[three][right][{\externalfigure[hakker1b][width=\hsize,height=\vsize]}] \setupheader[state=high] \startcolumnset[main] \dorecurse{100}{\input tufte \par} \stopcolumnset \stoptext guess what happens in a double sided layout with nx > 5 actually, if you want you can play with different column widths (an old wish of yours if i remember right) ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- fall-back web server: www.pragma-pod.nl -------------------------------------------------------------------------