![]() |
#1 |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Apr 2019
Device: Onyx Boox Note 3
|
TOC incomplete
The format of each chapter title is set in H2.
Checked that also in PageEdit. Creating a table of contents only shows the first chapter title. How can I get a complete TOC? |
![]() |
![]() |
![]() |
#2 |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,295
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
It works fine in my testing. Perhaps you can provide a little more information - what Sigil version - what OS - an example of the html code (<h2> tags) that isn't working - any applicable CSS. That would help us to help you much better.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
In addition:
EPUB2 or EPUB3? Is it NCX/NAV generation, or an HTML toc being generated from one of either of those? Where is it only showing the first chapter title? in Sigil? Or in a particular reading app/devices's navigation menu? |
![]() |
![]() |
![]() |
#4 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Works for me as well Perhaps epub3 but ereader using ncx not nav and user did not update ncx from nav?
Last edited by KevinH; 06-20-2022 at 11:12 AM. |
![]() |
![]() |
![]() |
#5 | |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Apr 2019
Device: Onyx Boox Note 3
|
Quote:
Exported it to epub3. Opened it in Sigil, version Sigil-1.9.10-Windows-x64, running under Windows 11. This is the first chapter title in the html and it is found creating the TOC: <h2 class="para7"><span class="span1">Omdat een voorwoord of inleiding nu eenmaal hoort ...</span></h2> This is the second chapter title and it not found for the table of contents: <h2 class="para7"><span class="span1">… </span><span class="span1">over het boek en zijn titel</span></h2> It is the same with all next chapters.... The TOC.xhtml shows: <body> <div class="sgc-toc-title">Table of Contents</div> <div class="sgc-toc-level-1"> <a href="section0001.xhtml">Eike van Repgow en zijn Saksenspiegel</a> </div> </body> |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Are those additional chapter files shown properly in BookBrowser? Are they properly listed in the opf spine?
Why doesn't your first toc entry match your text? Did you use Create HTML Table of Contents menu item? Please run the Well Formed check tool to verify your xhtml is not broken. Last edited by KevinH; 06-20-2022 at 11:21 AM. |
![]() |
![]() |
![]() |
#7 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I copied your code (verbatim) into two separate chapter files of a blank EPUB3, and both entries are created in both the NAV.xhtml (Generate Table of Contents) and the TOC.xhtml (Create HTML Table of Contents).
Last edited by DiapDealer; 06-20-2022 at 12:33 PM. |
![]() |
![]() |
![]() |
#8 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
Ah ... he did not create the Table of Contents (nav under epub3) first so the TOC tool had nothing to work with. He did the Create HTML Table of Contents first with out ever generating the nav in the first place.
Please try running the menu item Tools->Table of Contents -> Generate Table of Contents first. That will provide you with a menu for you to select which headers it found and what you want to include into your Table of Contents.. That info used for the nav is them used to generate an HTML Table of Contents when it is asked for using the Tools->Table of Contents->Create HTML Table of Contents. An HTML TOC is optional, but the nav is required to have a valid epub3. Last edited by KevinH; 06-20-2022 at 11:38 AM. |
![]() |
![]() |
![]() |
#9 | |
Enthusiast
![]() Posts: 25
Karma: 10
Join Date: Apr 2019
Device: Onyx Boox Note 3
|
Quote:
![]() Oh.... I only clicked the "Create HTML Table of contents". Didn'r know I had to do first the Generate Table of contents. Now it works. Thank you all! |
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You must have run it some point in order for it to pick up the first chapter, but... yes, as Kevin noted, the HTML ToC is created from the internal ToC (NAV with EPUB3, or NCX with EPUB2). So the NAV (or NCX with EPUB2) needs to have everything you want in it whenever Create HTML ToC is run.
Last edited by DiapDealer; 06-20-2022 at 01:02 PM. |
![]() |
![]() |
![]() |
#11 | |
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,295
Karma: 20171067
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Code:
if createHTMLToC is empty: show warning and ask if they want to run CreateToC |
|
![]() |
![]() |
![]() |
#12 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,439
Karma: 5703082
Join Date: Nov 2009
Device: many
|
No, not having any toc of any sort (nav or ncx) is the issue. How could you create a HTML-version of a TOC without one? Perhaps, I will add a comment in the user guide about that a ToC must exist before running Create HTML Table of Contents.
Or perhaps change menu entry and or Tooltip to: Create HTML file from current Table of Contents Last edited by KevinH; 06-20-2022 at 03:05 PM. |
![]() |
![]() |
![]() |
#13 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,341
Karma: 203719646
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Also note that if this is something that continuously trips someone up, one can always create an Automated List that generates the internal TOC, and then creates the HTML toc from it. It can be an automation of its own, or be part of an exiting automation run.
|
![]() |
![]() |
![]() |
#14 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#15 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,887
Karma: 59840450
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Why not add a tick box to the NCX TOC tool to auto gen (after it completes) the HTML one, since that order is needed?
|
![]() |
![]() |
![]() |
Tags |
incomplete, toc |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Incomplete book | Mysticfairy | General Discussions | 24 | 09-21-2017 02:13 PM |
Incomplete TOC Problem | Summerhillie | Conversion | 3 | 02-21-2013 08:07 AM |
incomplete pdf | rooeytoo | 1 | 03-27-2012 06:58 AM | |
PDF incomplete | pepe1970 | Recipes | 1 | 06-24-2011 09:01 PM |
The Incomplete Me | stevensavile | Self-Promotions by Authors and Publishers | 0 | 04-23-2011 06:03 AM |