View Full Version : TOC and Index links in Sigil


Bamber
10-03-2010, 06:14 AM
I am creating a non-fiction ebook in ePub format in Sigil. I imagine it must certainly be possible to create forward links from the Table of Contents and backward links from Index entries - but I can't discover how to do it! Advice welcome.

GeoffC
10-03-2010, 06:27 AM
toc_editor (http://web.sigil.googlecode.com/hg/toc_editor.html)

Use the TOC Editor - that should give you what you need. Otherwise it's just 'ordinary' html code .... :2thumbsup

Bamber
10-03-2010, 07:49 AM
Thanks. Had found the TOC editor, but your advice led me to the HTML I needed for Contents - <h1 title="Alternate text">Normal text</h1> . Index entries linking back to specific paragraphs in the text a different problem though.

GeoffC
10-03-2010, 11:40 AM
It is, and there have a number of threads (well at least one) on the subject, I think the consensus was it needs to be done manually (although some devices do incorporate "back-buttons.")

theducks
10-03-2010, 01:03 PM
Thanks. Had found the TOC editor, but your advice led me to the HTML I needed for Contents - <h1 title="Alternate text">Normal text</h1> . Index entries linking back to specific paragraphs in the text a different problem though.

Read the HTML specs about Anchors <a and using hash marks

As GeoffC said: some readers incorporate a back button.
Mine has one, but only if I used the "Catalog" button to get there (Catalog is the TOC that comes from the NCX file,which is whot the TOC editor shows you).
Inline-(HTML) TOC, put all the linkage burden on the Author.

DaleDe
10-07-2010, 01:08 PM
It is, and there have a number of threads (well at least one) on the subject, I think the consensus was it needs to be done manually (although some devices do incorporate "back-buttons.")

this is one area where Microsoft word does well. The footnotes in word make reverse links for you.

Dale

Jellby
10-07-2010, 01:37 PM
this is one area where Microsoft word does well. The footnotes in word make reverse links for you.

But you can't have multiple links to a footnote then ;)

DaleDe
10-07-2010, 07:40 PM
But you can't have multiple links to a footnote then ;)

Well you can, there can be multiple return points in a list and you click the one that returns you to the correct point. We have this feature in our wiki by the way where multiple links can refer to the same text, and you have a list of returns numbered the same as the references.

Dale

Jellby
10-08-2010, 07:02 AM
I meant that you can't if the footnote number is a return link (what I assumed is what Word does). There is only a footnote number, so it can be a link to a single place. Of course, if the return link is something added to the footnote, you can have as many as you like, and I've done that several times :)

alecE
10-09-2010, 04:14 PM
This may help as well (http://www.mobileread.com/forums/showthread.php?t=96633)

Kindleishard
11-11-2010, 02:12 PM
Sigil: TOC to add as below:

-Verify TOC inherited from Headings H1 H2 etc in html: Tools > TOC editor: verify that NCX file seems ok
else: menu bar: heading 1 for table of content, chapters; heading 2 for sub chapters; heading 3...

-Table of Contents:
(I used “hyperlink” (LS and LE) in TOC in openoffice to have TOC at beginning of book)

How to reformat Sigil:

save epub and rename it in zip, then in winzip find content.opf
add: <guide> <reference type="toc" title="Table of Contents" href="Text/same as other lines.html"/> </guide>

IT WORKS if added here in content.opf:
</metadata>
<guide> <reference type="toc" title="Table of Contents" href="Text/Kindle_test.html"/>
<manifest>

save and rename in epub