Paragraph Enumeration

From Wiki
Revision as of 17:45, 18 April 2005 by 129.187.254.52 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

\newcounter\Paracount
\setcounter\Paracount1

\def\Paragraphnumber%
   {\increment\Paracount 
    \Paracount.~}

\def\startParagraphs%
   {\par \begingroup \appendtoks \Paragraphnumber \to \everypar}

\def\stopParagraphs%
   {\par \endgroup}

\starttext

Unnumbered text before.

\startParagraphs
This is the first numbered paragraph.

This is another paragraph. This is another
paragraph. This is another paragraph.
\stopParagraphs

Unnambered text after.
\stoptext