At 12:34 PM 10/22/2001 +0200, [EMAIL PROTECTED] wrote:

>Hello!
>
>I've just started using ConTeXt (some previous experience with LaTeX, but not
>much) and have a question.
>
>Every year my students union produce a book containing information about the
>union and a collection of addresses of the members. Previously this book has
>been made by hand in Adobe Indesign. Now I have written a PHP-script that
>outputs a ConTeXt-file that I then convert to pdf. However, previously we 
>have
>used a layout where information has been put in the outer and inner columns
>depending on if it's a lefthand- or righthand page.
>It looks like this:
>
>---------------------------------------------
>| info1    | text1    || text3    | info3    |
>|          |          ||          |          |
>|          |          ||          |          |
>|          |          ||          |          |
>|          |          ||          |          |
>| info2    | text2    || text4    | info4    |
>|          |          ||          |          |
>|          |          ||          |          |
>|          |          ||          |          |
>| 1        |          ||          |        2 |
>----------------------------------------------
>
>In 'info' we put information about 'text'. This 'info' needs the same 
>width as
>the text and also some formatting.
>
>
>I have tried solving this by using \inmargin and \startmarginblock, but 
>nothing
>gives a good result.
>
>Does anyone have any idea if this is possible to solve? (If you want I can 
>send
>you a pdf showing how it lokks like in inDesign).

You may be looking for something like this:

% output=pdftex

\setuplayout
   [backspace=2cm,cutspace=1cm,width=fit,
    margin=10cm,margindistance=.5cm]

\setuppagenumbering
   [alternative=doublesided]

\setupinmargin
   [1][width=4cm,align=middle,style=slanted]

\setupinmargin
   [2][distance=4.5cm,width=3cm,align=middle]

\starttext

\dorecurse
   {100}
   {\margintitle{Did you know that you can stack 'm?}
    \margintitle[2]{I guess that you didn't -)}
    Marginal notes are seldom meant to be marginal, otherwise
    one would not let them stand out that way.\par}

\stoptext

things can automatically align inner/outer/left/right/middle

Hans
-------------------------------------------------------------------------
                                   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
-------------------------------------------------------------------------

Reply via email to