2011/11/14 Guenter Milde <mi...@users.berlios.de>
>
> On 2011-11-11, Daniele Zambelli wrote:
>
> > [-- Type: text/plain, Encoding: quoted-printable --]
>
> > Hi,
>
> > I wish that the chapter numbering starts at 0 instead of 1.
>
> > It is possible do this?
>
> Yes.
>
> Use the :start: option to the sectnum directive. See
> http://docutils.sourceforge.net/docs/ref/rst/directives.html#automatic-section-numbering

I apologize for my "google-translate-English".

The "sectnum" does not work for LaTex. As specified in the documentation:
"Do not use the Directives sectnum, header and footer."
(http://sphinx.pocoo.org/rest.html#directives)

I solved the problem by changing "conf.py" as follows:

# Additional stuff for the LaTeX preamble.
latex_preamble = '''\setcounter{tocdepth}{0}
\setcounter{chapter}{-1}
\setcounter{secnumdepth}{0}'''

Thanks

--

Daniele

www.fugamatematica.blogspot.com

    giusto!
    nel verso
    forse è perché non guardiamo le cose
    Quando non ci capiamo,

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to