From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5906 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Special layout Date: Tue, 23 Oct 2001 11:39:36 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20011023113743.03dc9d58@server-1> References: <5.1.0.14.1.20011022092146.03421c40@server-1> <5.1.0.14.1.20011022092146.03421c40@server-1> 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 1035396469 5602 80.91.224.250 (23 Oct 2002 18:07:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:07:49 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: hegardt@medstud.gu.se In-Reply-To: <1003746848.3bd3f620877d5@temp5.medped.gu.se> Xref: main.gmane.org gmane.comp.tex.context:5906 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5906 At 12:34 PM 10/22/2001 +0200, hegardt@medstud.gu.se 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 | 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 -------------------------------------------------------------------------