Changes

Jump to navigation Jump to search
POint reader to Paragraf Referencing/pararef module
== Standard Paragraph Numbering ==
ConTeXt has a built-in mechanism for paragraph numbering, which places numbers in the margin. This is accessed with <{{cmd>|setupparagraphnumbering</cmd>}}.  The mechanism numbers ‘TeX paragraphs’, as in this exampleso a formula or an itemization item will get its own number. For ‘block of thought’ paragraphs that can contain multiple TeX paragraphs, which also sets the number style to italic rather than see the default roman{{module|pararef}} module described at [[Paragraph Referencing]].
<context source="yes">
\setuplayoutsetuppapersize[scale=0.8,width=13cmA5]
\starttext
Some text in an unnumbered paragraph before the paragraph numbering starts.
more than one line, so as to show that these are paragraph numbers and not
line numbers.
 
\startitemize[packed]
\item an
\item itemization
\stopitemize
A third numbered paragraph.
== Paragraph Numbering in the Text ==
An alternate way of numbering paragraphs is to place the numbers in the running text, rather than in the margin. ConTeXt doesn't have a built-in way to do this, but it's not difficult to add a method using the <{{cmd>|everypar</cmd> }} macro. The following code was proposed by Taco on the mailing list.
<context source="yes" text="This produces the following result:">
\setuplayoutsetuppapersize[scale=0.8,width=13cmA6]
\newcounter\Paracount
\setcounter\Paracount1

Navigation menu