From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/2763 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:31:59 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20000919163159.01853100@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 1035393537 11619 80.91.224.250 (23 Oct 2002 17:18:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:18:57 +0000 (UTC) Cc: Context Original-To: Guy Worthington In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:2763 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:2763 At 07:16 PM 9/19/00 +0800, Guy Worthington wrote: >\newcount\paragraphno % enumerate paragraphs >\def\paragraph#1\par{\advance\paragraphno by 1 > \llap{\sl \the\paragraphno\kern1pc}#1\par}% number to left of text > >\setupbodyfont[ber,10pt] >\setupwhitespace[big] > >\starttext > >\section[sec-language]{How this Book Teaches You The Language} > >\paragraph Java is an object oriented programming language. When you >use an object oriented programming language, your program consists of >class definitions. > >\stoptext \newcounter\ParNum \def\paragraph{\doglobal\increment\ParNum\inleft{\ParNum}} So, \inleft \inleftmargin \margintitle are the commands to use since they also honor the margindistance and so. You can even say: \margintitle{\NextPar} some text with \def\NextPar{\doglobal\increment\ParNum\ParNum} 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 -------------------------------------------------------------------------