From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30681 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: [Fwd: Line numbering] Date: Thu, 7 Sep 2006 01:48:52 -0400 (EDT) Message-ID: References: <1157604236.2206.437.camel@danube.river-valley.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157608168 29099 80.91.229.2 (7 Sep 2006 05:49:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Sep 2006 05:49:28 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 07 07:49:24 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GLClI-0007MV-1X for gctc-ntg-context-518@m.gmane.org; Thu, 07 Sep 2006 07:49:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 97EDE1FE31; Thu, 7 Sep 2006 07:49:14 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04650-10; Thu, 7 Sep 2006 07:49:06 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6B0241FE23; Thu, 7 Sep 2006 07:49:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B9A0A1FE23 for ; Thu, 7 Sep 2006 07:49:02 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07955-01 for ; Thu, 7 Sep 2006 07:48:56 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with SMTP id E81331FE1D for ; Thu, 7 Sep 2006 07:48:55 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hackers.mr.itd.umich.edu ID 44FFB2C5.757F.27847 ; 7 Sep 2006 01:48:54 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <1157604236.2206.437.camel@danube.river-valley.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30681 Archived-At: Hi CVR, > From: CV Radhakrishnan > Reply-To: mailing list for ConTeXt users > To: Mailing list for ConTeXt users > Subject: [NTG-context] Line numbering > Date: Sat, 02 Sep 2006 10:13:31 +0530 > > Dear all, > > Forgive me if I sound naive. I searched the archives, but could not > find the solution for my following problem: > > I need to have line numbers for the text formatted in two columns. The > numbers for left column shall appear in the left side and that for right > column shall appear in the right side of the page. location=inmargin > option to the \setuplinenumbering doesn't help much. Please take a look > at the following image: > > http://www.river-valley.com/cvr/one.png > > which will give you an idea of my requirement. Any help in this matter > will be highly apprecaited and thanks in advance. I do not know how to automate what you want. An ugly solution is to specify the column breaks yourself, something like \unprotect \def\dosetuplinenumbering[#1]% {\getparameters[\??rn][\c!start=1,\c!step=1,#1]% % \global\linenumber\plusone % Do not reset linenumber. Why is this here? } \protect \starttext \startcolumns \setuplinenumbering[location=inleft] \startlinenumbering \input knuth \stoplinenumbering \column \setuplinenumbering[location=inright] \startlinenumbering[continue] \input knuth \stoplinenumbering \stopcolumns \stoptext Aditya