<https://lh3.googleusercontent.com/-LJnugFRBpkk/VqXxQ7jH5DI/AAAAAAAAAY8/NmiG6-mqr0w/s1600/Screenshot%2Bfrom%2B2016-01-25%2B10%253A49%253A56.png>
Hi (again),
I would like to introduce a problem I cannot solve.
Recently I have discovered the .. raw:: latex role and now I'm heavy using
it.
In my project I have 10 chapters, but the "come" from different
sub-projects. i would like to divide the index according to the projects
(so chapter from 1 to 4 belongs to the project1 while chapter 5 to end to
the project2).
At the beginning of the rst file of chapter5 (so the first of project2) I
added:
.. raw:: latex
\setcounter{chapter}{0}
so the chapter count has been reset and start from 1 again. That's exactly
what I was looking for, BUT there are 2 issues I cannot solve:
* the page numbering has been reset too (chapter5 that is become chapter1
has page number 1). How can I tell to reset only the chapter number and not
the page number? I know there is the \setcounter{page}{60} role, but is
there an automatically way? See image attached:
* the hyperref of chapter5 (chapter 1 of the second project) refers to
chapter1 of the project1. In other word 2 different chapters points to the
same page. For this issue I find some answers (1
<http://tex.stackexchange.com/questions/35419/page-number-is-reset-to-0-with-include-command>,
2
<http://tex.stackexchange.com/questions/6098/wrong-hyper-references-after-resetting-chapter-counter>)
but I cannot reproduce them in the sphinx project. Someone has an idea?
Thanks to all!
Cheers
Matteo
--
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 https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.