From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1934 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: context Date: Thu, 27 Apr 2000 22:45:04 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20000427224504.016b14e0@pop.wxs.nl> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035392735 4482 80.91.224.250 (23 Oct 2002 17:05:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:05:35 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Jean-Pierre Eckmann In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:1934 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1934 At 03:10 PM 4/27/2000 +0200, Jean-Pierre Eckmann wrote: >I have a query, probably a FAQ. > >I saw that context has an everyline macro > >can I use that to number lines in a text which is formatted by tex itself >(not by obeylines etc...)? > >If yes how? Since tex has more a concept of paragraphs than of lines, the answer is no. When tex flushes a paragraph, theu are typeset already and nothing can be added. The trick is to disassemble the paragraph and handle lines. In verbatim, the everyline can indeed be used, since there every par is a line. However, context provides a line numbering mechanism! \startlinenumbering your text, probably some more \stoplinenumbering For more info, see co-en-10.pdf, the beta chapter on referencing, since you can even refer to line numbers and/or ranges. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------