From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/12663 Path: main.gmane.org!not-for-mail From: "Willi Egger" Newsgroups: gmane.comp.tex.context Subject: Re: Marginal notes in two-column setup Date: Sun, 20 Jul 2003 13:12:32 +0200 Organization: BOEDE Sender: ntg-context-admin@ntg.nl Message-ID: <006f01c34eaf$d2a52ef0$0100a8c0@vademecum> References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1058699731 12133 80.91.224.249 (20 Jul 2003 11:15:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Jul 2003 11:15:31 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sun Jul 20 13:15:29 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19eCA5-00039R-00 for ; Sun, 20 Jul 2003 13:15:29 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 3DB3210B56; Sun, 20 Jul 2003 13:16:31 +0200 (MEST) Original-Received: from smtpzilla2.xs4all.nl (smtpzilla2.xs4all.nl [194.109.127.138]) by ref.ntg.nl (Postfix) with ESMTP id CFF0D10B55 for ; Sun, 20 Jul 2003 13:12:33 +0200 (MEST) Original-Received: from vademecum (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) by smtpzilla2.xs4all.nl (8.12.9/8.12.9) with SMTP id h6KBCWvS007719 for ; Sun, 20 Jul 2003 13:12:33 +0200 (CEST) Original-To: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:12663 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:12663 Hi Gerben, > > Have a two column text with the marginal notes from the left column > appear on the left and the ones from the right column on the right. > When I use 2-columns and I use \inmargin, I get them on the right where > the marginal notes from the left column are on top of the right column > (not good) > > Is there a way to do this? Probably yes with something \if-like? After sttudying the sources and a bunch of trial and errors I can come up with the following solution which works for a two solumns set! \definecolumnset[example][n=2] \define[1]\MargText{% \ifodd\mofcolumns{% \inleft{#1}} \else {\inright{#1}}\fi} \starttext \startcolumnset[example] \MargText{Here left of column} \input tufte \column[local] \input tufte \MargText{\ifodd\mofcolumns{Hello!, still left of column}\else {Hello, now right of column}\fi} \stopcolumnset \stoptext I believe that Hans will make a generic solution... Kind regards Willi