![]() |
#1 | |
Enthusiast
![]() Posts: 44
Karma: 10
Join Date: Aug 2019
Device: kindle (various)
|
Help needed with ToC editor
I attempted to use the ToC editor to add some new ToC entries inside an existing chapter.
I wound up with 28 different links all to the same place. Quote:
So, what's the proper way to use this? What I did: Point to the entry at the start of chapter 22 New entry inside this entry. Search for "~~~" Target that with the mouse. Verify that I was at the "div" tag that contained the ~~~. Verify that each one had a larger percentage of the way through. Save each one (the first ~~~, the second ~~~, the third ~~~, etc). Wind up with ... not what I expected. |
|
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You need unique (per file, at a minimum) Anchors at the mid points in a file to land on. (id="blah-blah")
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() Posts: 44
Karma: 10
Join Date: Aug 2019
Device: kindle (various)
|
Dang. I was expecting that it would insert anchors as needed for the ToC to reference.
|
![]() |
![]() |
![]() |
#4 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
|
Quote:
Before inserting an entry: <p class="p_text_body">A bunch of stuff After Inserting an entry: <p class="p_text_body" id="toc_3">A bunch of stuff Did you give each entry a name before you hit OK? EDIT: So I tried a few on your book and got this in the .ncx file: Code:
<navLabel> <text>[BREATH] 001 - Enter, Part 1</text> </navLabel> <content src="chapter-1.html"/> <navPoint id="num_5" playOrder="5"> <navLabel> <text>~1</text> </navLabel> <content src="chapter-1.html#toc_1"/> </navPoint> <navPoint id="num_6" playOrder="6"> <navLabel> <text>~2</text> </navLabel> <content src="chapter-1.html#toc_2"/> </navPoint> <navPoint id="num_7" playOrder="7"> <navLabel> <text>~3</text> </navLabel> <content src="chapter-1.html#toc_3"/> </navPoint> </navPoint> Last edited by retiredbiker; 08-16-2019 at 09:58 PM. |
|
![]() |
![]() |
![]() |
#5 |
Enthusiast
![]() Posts: 44
Karma: 10
Join Date: Aug 2019
Device: kindle (various)
|
So what happened that mine inserted the *same* anchor for every point, while yours inserted different anchors for every point?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
file1#mid1.html file2#mid1.html It is the files name that is the uniqueness in this case. Many of us avoid this simply because it is easier to spot missing items if they are sequences. Not because it is required |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Editor: ToC Editor: Start entry | macnab69 | Editor | 2 | 06-25-2014 11:15 AM |
Book Editor TOC Editor Isue? | weberr | Editor | 2 | 04-17-2014 11:13 AM |
Using Sigil and the calibre editor: DiapDealer's help needed | roger64 | Sigil | 4 | 02-20-2014 11:19 PM |
TOC-Editor: TOC according to file names? | samy2 | Calibre | 6 | 02-08-2014 12:12 PM |
Making a TOC for LRFs? Issues with Calibre + LRF TOC editor not working | Magitek | LRF | 0 | 05-06-2009 01:25 PM |