Hi, I am trying to get local TOCs to work right in rst2pdf and ... it's not
easy :-)
Here's what I figured out so far, sorry if it's a bit long.
Suppose you have two files in your toctree:
Section 1
=========
.. contents::
:local:
Sub A
-----
-------------------------------------------
Section 2
=========
.. contents::
:local:
Sub A
-----
As you can see, both files have a "Sub A".
Here's the first local TOC:
<title refid="id1">Section 1</title>
<topic classes="contents local" ids="contents" names="contents">
<bullet_list>
<list_item><paragraph><reference ids="id1" refid="sub-a">Sub
A</reference></paragraph></list_item></bullet_list></topic>
And here's the second one:
<title refid="id3">Section 2</title>
<topic classes="contents local" ids="contents" names="contents">
<bullet_list>
<list_item><paragraph><reference ids="id1" refid="sub-a">Sub
A</reference></paragraph></list_item></bullet_list></topic>
See how the list items are identical? Both have ids="id1" and refid="sub-a"?
Here's how they look in the GLOBAL table of contents:
<list_item><paragraph><reference ids="id2" refid="sub-a">Sub A</reference>
<list_item><paragraph><reference ids="id4" refid="sub-a">Sub A</reference>
Here, they are id2 and id4.
And here are the title nodes I am getting:
<title refid="id2">Sub A</title>
<title refid="id4">Sub A</title>
This is causing severe problems for me because,unline the HTML builder, I have
both sections in the same document, and I can't tell which one I should link
to.
I could **not link** of course, and I am going to do that now, but that's not
the ideal solution.
Any help very much appreciated.
--
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) KDE Developer (MFCH)
(_Y_.)' ._ ) `._`. " -.-' http://lateral.netmanagers.com.ar
_..`-'_..-_/ /-'_.' The 6,855th most popular site of Slovenia
(l)-'' ((i).' ((!.' according to alexa.com (27/5/2007)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---