From: Ed L Cashin <ecashin@coe.uga.edu>
Cc: Context <ntg-context@ntg.nl>
Subject: Re: Enumerating paragraphs
Date: 19 Sep 2000 09:39:21 -0400 [thread overview]
Message-ID: <m3zol45wmu.fsf@coe.uga.edu> (raw)
In-Reply-To: <wkzol4my2x.fsf@multiline.com.au>
Guy Worthington <guyw@multiline.com.au> 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
--
--Ed Cashin PGP public key:
ecashin@coe.uga.edu http://www.coe.uga.edu/~ecashin/pgp/
next prev parent reply other threads:[~2000-09-19 13:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-19 11:16 Guy Worthington
2000-09-19 13:39 ` Ed L Cashin [this message]
2000-09-19 14:36 ` Hans Hagen
2000-09-19 14:31 ` Hans Hagen
2000-09-20 2:31 Guy Worthington
2001-11-09 18:06 enumerating paragraphs Mathias.Picker
2001-11-11 12:27 ` Patrick Gundlach
2001-11-12 9:29 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3zol45wmu.fsf@coe.uga.edu \
--to=ecashin@coe.uga.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).