From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2764 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Enumerating paragraphs Date: Tue, 19 Sep 2000 16:36:51 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20000919163651.01a69d00@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 1035393538 11630 80.91.224.250 (23 Oct 2002 17:18:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:18:58 +0000 (UTC) Cc: Guy Worthington , Context Original-To: Ed L Cashin In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:2764 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2764 At 09:39 AM 9/19/00 -0400, Ed L Cashin wrote: >Guy Worthington writes: > >> How do I number paragraphs (similar to the format used when >> typesetting a module)? I've had an unsuccessful attempt at >> it (below). > >There's a section in the beginner's manual on paragraph formatting. >There may be a cleaner way to do it, but here's an example based on >the ones in the beginner's manual: > > \newcount\paragraphno > \paragraphno=1 > \defineparagraphs [guypara][n=2,before={\blank},after={\blank}] > \setupparagraphs [guypara][1][width=.1\textwidth,style=bold] > \def\GuyPar#1{\startguypara > \the\paragraphno > \global\advance\paragraphno by 1 > \guypara#1\stopguypara} > > \starttext > \GuyPar{This is the first paragraph.} > \GuyPar{This is the second paragraph.} > \GuyPar{Three!!! Three paragraphs!!! Ah -- ah -- ah -- ahh!!!.} > \stoptext btw, if you're talking about not too large paragrapgs, you may consider using the \startnumbering mechanism which supports line and para numbering. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE 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 -------------------------------------------------------------------------