05-07-2010, 02:29 PM | #1 |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Trying to make an Inline TOC
I am trying to implement an inline TOC in Sigil to use to build IMP and LRF files. Since each Chapter Heading already has an anchor for the Epub TOC, I have tried to link to them.
Link in Inline TOC <div> <a href="#Ch2"><span class="sgc-6">Chapter 2. The Beginning Of Troubles.</span></a> </div> Anchor in Chapter Heading <h2 id="heading_id_2"><a id="Ch2">Chapter 2. The Beginning Of Troubles</a></h2> CSS definition span.sgc-6 {color: #000000} After an entire morning trying to run this down, I'm bamboozeld. Where have I strayed from the path of virtue? I imagine that the problem is multiple HTML files in the document but I don't know what to do. Charlie Last edited by crutledge; 05-07-2010 at 02:32 PM. |
05-08-2010, 05:47 PM | #2 |
Nameless Being
|
Unfortunately Sigil's only installed on my laptop, so I can't test the hypothesis from this public computer, but (assuming you have your chapter text in a different .xhtml "chapter" than the TOC itself) I think the problem lies in the ID specification. In other words, if I wanted the "#Ch2" tag to point to the "Ch2" anchor name, that would only work *within* the specific .xhtml page I'm working in (i.e., it only points to anchor tags within your TOC "chapter"). If you want to point to a different page outside the TOC, you'll need to specify the name of the file in which the anchor is located. Does that make sense?
I'd need to tinker with Sigil for a bit to figure out exactly how to specify that file path, but it's going to be a few days before final exams are over and I'll have time to play in earnest. If nobody else has answered here with a solution by then, I'll definitely let you know what I found. |
Advert | |
|
05-09-2010, 05:46 AM | #3 | |
eBook FANatic
Posts: 18,301
Karma: 16071131
Join Date: Apr 2008
Location: Alabama, USA
Device: HP ipac RX5915 Wife's Kindle
|
Quote:
Same problem here. I finally figured it out. Attached is a Sigil file with Inline Toc. Charlie |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle inline TOC removed from news in 0.7.20 as a bugfix? | buckcs | Calibre | 4 | 09-25-2010 02:05 PM |
Calibre email inline text? | squawker | Calibre | 2 | 05-26-2010 06:17 PM |
HELP, how do i make the TOC work in Ebook Publisher. | Lago | Fictionwise eBookwise | 7 | 03-07-2010 08:08 PM |
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working | Magitek | LRF | 0 | 05-06-2009 01:25 PM |
HTML2LRF and inline pictures | pepak | Calibre | 12 | 02-04-2009 12:12 PM |