Daniel Serodio | 1 Nov 15:30 2005
Picon

Numbered headings

How can I make my headings numbered? I'd like to have an output like the
following:

1. First level
1.1. Second level
1.2. Another at second level
2. Another at first level

Thanks in advance,
Daniel Serodio

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
Felix Wiemann | 1 Nov 16:16 2005
Picon
Picon

Re: Numbered headings

Daniel Serodio wrote:

> How can I make my headings numbered? I'd like to have an output like the
> following:
>
> 1. First level
> 1.1. Second level
> 1.2. Another at second level
> 2. Another at first level

You can use the sectnum directive:
<http://docutils.sf.net/docs/ref/rst/directives.html#sectnum

--

-- 
For private mail please ensure that the header contains 'Felix Wiemann'.

"the number of contributors [...] is strongly and inversely correlated with the
number of hoops each project makes a contributing user go through."      -- ESR

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
Roman Yakovenko | 2 Nov 06:28 2005
Picon

Re: Re: Extracting documentation from source files

On 11/2/05, David Goodger <goodger <at> python.org> wrote:
> [Roman Yakovenko]
> > But I would like to get solution that does not force me to leave docutils.
>
> There is no such solution.

:-(

> > I saw modulereader.py and extractor.py but I can get them work.
>
> Those are probably out of date.

:-(

> --
> David Goodger <http://python.net/~goodger>
>
>
>

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

Gmane