![]() |
#16 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,545
Karma: 79436716
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
So maybe use YALE next time rather than LUE
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The ToC generator can go through the book and find all heading tags and create the NCX for you. If the heading is at the top of the file, it will not add an id as this is not needed. If the heading is not at the top of the file, or there are multiple headings in the file, a valid id is generated and put into the heading tag. And put into the NCX version of the ToC. If you don't want to use heading tags, you can use others so long as you can identify them somehow. You can then use another tool to generate an in-line ToC from the NCX version. From memory, you can use a template to style this how you want. Or you can edit it afterward. And as long as you keep the NCX ToC up to date, you can regenerate whenever you need to. As you seem to want back links from the headings to the ToC, then simply add the references to the headings that are entries in the ToC. To do this, regex is your friend. And to be explicit about this, for the heading: Code:
<h2 id="uCZEvuprkBTfz9FrYC7Blz5">Chapter Heading</h2> Code:
(<h2.*?>)(.*)(</h2>) Code:
\1<a href="toc.html">\2</a>\3 Code:
<h2 id="uCZEvuprkBTfz9FrYC7Blz5"><a href="toc.html">Chapter Heading</a>\</h2> Changing the search and replace to put a image as part of the link is simple. As is covering other heading levels. If you have decided to use other tags for the headings, then you need to adapt to the tag and probably the class. And the question about "Per file method" simply means the link points to the file name without an anchor. If a heading at the top of the file has an id, linking to the heading or just to the file is effectively the same. The only reason to use the anchor for the heading is if you think you might be rearranging things. |
|
![]() |
![]() |
![]() |
#19 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,798
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How can insert a citation automatically? | calven | Calibre | 3 | 01-21-2016 05:30 AM |
How can insert a footnote automatically? | calven | Editor | 0 | 12-29-2015 07:52 PM |
NCX TOC section headings | eggheadbooks1 | ePub | 13 | 06-08-2013 05:57 PM |
Issue With Chapter Headings and TOC | yoss15 | Kindle Formats | 5 | 02-07-2012 01:54 PM |