Hi,

Haven't been able to find a solution to this problem, can anyone help?  I 
have a book with three parts and am using multiple numbered toctrees to 
implement it, e.g.:

.. toctree::
    :caption: Part I
    :maxdepth: 1
    :numbered:

    chA
    chB
    ...

.. toctree::
    :caption: Part II
    :maxdepth: 1
    :numbered:

    chC
    chD
    ...


A caption is set on each toctree to separate and label the Parts of the 
book on the front page.  While the first Part is numbered as expected, the 
rest aren't.  I would like the chapters of the subsequent toctrees to start 
at the next number available, but instead they restart at 1. In other 
words, the entry at chC will be numbered as 1. instead of perhaps 5, 10, or 
20.

I also have numbered figures throughout.  I've also tried changing the 
chapter numbers with the sectnum directive, and it works if you disable 
toctree numbering, however it then breaks my numbered figures---they lose 
their chapter numbers, e.g.  resets to  "Fig. 1" instead of "Fig 10.1".

(It seemed like this worked before, but I've not been able to get it to 
work recently.  Might have been my imagination?)

Is there a better way to do this?  Can I subclass the toctree to make a 
small modification on the start number/offset?  Not sure where to find the 
code that handles it, as it doesn't seem to be in the directive files.

Thanks in advance,

-- 
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 sphinx-users+unsubscr...@googlegroups.com.
To post to this group, send email to sphinx-users@googlegroups.com.
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to