On 2013-02-24, mark wrote:

> My text is split into multiple parts. Each part contains multiple chapters. 
> The chapters have sequential numbers (without the parts restarting the 
> chapter numbers).

> The table of contents is fine showing parts and chapters. The chapter 
> headings are fine, too. Only the chapter numbers used in references get 
> restarted by parts. I checked all files for "\@addtoreset{chapter}{part}" 
> but it is not there. The .aux file contains the correct chapter number.

> The \hyperref is produced with the following code:
>                 linktext = '.'.join(map(str, secnum[anchorname]))
>                 node.replace(emphnode, nodes.Text(linktext
>                     + ' ' + textnode))

> If I look into secnums then I can see that the sections numbers are 
> restarted with each new part.
> I experimented with the conf.py:
> latex_use_parts = True/False
> also with latexindex.rst:
> .. toctree::
>    :numbered:
> But so far I could not find out how to configure that right so that the 
> parts do not restart the chapter numbering in secnums.
> I would appreciate any idea on how to debug or fix this.

Restarting chapter numbers with a new part is the correct behaviour.
Part is a section level above "chapter".

If you don't like this, there are several options.

a) use a LaTeX package (sectnum, say) or
   a LaTeX document class like memoir or koma-script that allows
   configuring sections. See the respective documentation for details and
   insert the relevant code in the LaTeX preamble setting.
   
b) use a different means to mark the parts (e.g. the "rubric" directive).

Günter

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to