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 | [EMAIL PROTECTED]
                       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
-------------------------------------------------------------------------

Reply via email to