On 2011-02-04, Conrad Cowlrick wrote:
> Hi all,
> In the docutils documentation the Automatic Section Numbering
> http://docutils.sourceforge.net/docs/ref/rst/directives.html#sectnum
> leads me to believe that I should be able to use 'start :' and
> 'prefix :' to manually set the prefix across the different files.
...
> Currently in the top level index.rst I have ".. sectnum start:2::".
> Then in the lower ones I have eg. ".. sectnum prefix:'1.'::". Each of
> the lower index.rst's has this which should activate section numbering
> for the files underneath that index, and manually set the prefix.
> Right?
> It is simply coming up with no numbering whatsoever. Are my usage of
> the options 'start' and 'prefix' correct? The docutils documentation
> does not really tell me how to set it out.
There is a hint in the introduction of the cited document:
See the Directives section in the reStructuredText Markup Specification
for syntax details.
Your code is interpreted as a comment. The correct syntax would be
something like::
.. sectnum::
:start: 2
:prefix: 1.
Hope this helps,
Günter
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.