![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,181
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
Table of Contents not generating
I'm converting a LIT file to epub and I changed the settings in the detection to detect h1, h2, h3 and none of it added the TOC to the device TOC.
The inline TOC works just fine, but I like to use the device TOC as well. This is the code for the inline TOC Code:
<p class="MsoToc"><span class="MsoHyperlink"> <a href="Karen%20Marie%20Moning%20-%20Fever%2001%20-% 20Darkfever%20v1.1%20%28BD%29_split_004.htm#_Toc181898517" class="calibre3">Chapter One</a></span> <span class="calibre4"></span></p> Code:
<h1 class="calibre5" id="calibre_pb_5"> <a name="chapter_2" class="calibre2" id="chapter_2"></a> <a href="Karen%20Marie%20Moning%20-%20Fever%2001%20-%20Darkfever%20v1.1% 20%28BD%29_split_001.htm#contents" class="calibre3"><span>Chapter One</span><span> </span></a><a name="_Toc181898517"class="calibre2" id="_Toc181898517"></a></h1> Code:
<navMap> <navPoint id="15b0eaef-75d9-49af-93a1- b54b86b8dabf" playOrder="1"> <navLabel> <text>Dedication</text> </navLabel> <content src="Karen Marie Moning - Fever 01 - Darkfever v1.1 (BD)_split_002.htm#_Toc181898515"/> </navPoint> </navMap> </ncx> I'm currently using the defaults that came with Calibre. Structure Detection Code:
//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part\s+', 'i')) or @class = 'chapter'] Thanks Last edited by Amalthia; 12-19-2010 at 06:38 PM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,163
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
select the option to force use of auto generated TOC
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,181
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
That worked! Thanks.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table of Contents | peterinnes | Sigil | 1 | 09-29-2010 03:03 AM |
Help with my Table of Contents | Skylinefranc | Calibre | 0 | 03-19-2010 12:55 AM |
How to: table of contents | wizzofoz | Sigil | 1 | 10-08-2009 08:22 AM |
only the table of contents | wang960 | Sony Reader | 3 | 08-29-2008 12:45 PM |
Creator Table of Contents | Nate the great | Kindle Formats | 5 | 07-10-2008 05:55 AM |