[texhax] Paragraph numbering

glhoffman at cox.net glhoffman at cox.net
Wed Mar 24 23:45:58 CET 2004


Ian:

You can accomplish this using the \setcounter  and associated commands. Here is an example that is placed in the preamble of a document using the memoir class:

\setcounter{tocdepth}{1} \setcounter{secnumdepth}{3}
\maxsecnumdepth{subsubsection}

What this does is three things: (1) it sets the table of contents depth to level 1 (section), (2) sets the section numbering depth to level 3 (subsubsection) and (3) sets the maximum section numbering depth to subsubsection.

The number values for the levels in a document are:

-1 = Part
0 = Chapter
1 = Section
2 = Subsection
3 = Subsubsection
4 = Paragraph
5 = Subparagraph

If you don't want to use the memoir class, you can use the tocvsec2 package (http://www.ctan.org/tex-archive/help/Catalogue/entries/tocvsec2.html). This package has a dvi file from which you can generate the package manual.

Good luck.

Gary Hoffman




> 
> From: Ian Watson <i.watson at econ.usyd.edu.au>
> Date: 2004/03/24 Wed PM 05:01:48 EST
> To: texhax at tug.org
> Subject: [texhax] Paragraph numbering
> 
> Dear Tex users,
> 
> I would appreciate any advice on sequentially numbering paragraphs
> through a document. I have used the packages lineno.sty and
> numline.sty in the past and they work well when it comes to numbering
> individual lines. However, I cannot find any equivalent packages
> mentioned in the FAQ for numbering paragraphs. Any advice would be
> welcome.
> 
> 
> -- 
> Kind regards,
>  Ian                          
> 
> =================================
> Ian Watson
> Senior Researcher
> acirrt
> University of Sydney
> NSW 2006
> Australia
> 
> Phone: 02 9351 5622
>   Fax: 02 9351 5615
> 
> Email: i.watson at econ.usyd.edu.au
>   Web: www.acirrt.com
> ================================
> 
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
> 



More information about the texhax mailing list