![]() |
#1 |
Connoisseur
![]() Posts: 76
Karma: 10
Join Date: Feb 2022
Device: None
|
Create TOC in ordinary webpage?
There is an "Insert inline TOC" feature, and this creates a special xhtml page. I'm wondering why the user is not able to create his/her own htm(l) page and automatically insert the TOC there, with the style rules for the TOC automatically added to the existing styles sheet?
Or is there a special advantage in having a separate xhtml page with its own inline styles? |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Maybe create your own CSS in
.....\AppData\Roaming\calibre\resources\templates\ inline_toc_styles.css to use in the In Line toc.xhtml Spoiler:
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
On my Windows 11 machine as of today (09 July 2022), that file isn't in AppData any more. It, and it's whole resources folder, are now under Calibre's program folder:
C:\Program Files\Calibre2\app\resources\templates\inline_toc_ styles.css |
![]() |
![]() |
![]() |
#4 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,155
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Personally, I use Sigil and it adds a stylesheet for the inline ToC which can be easily be merged into the main stylesheet or deleted since I have most of the entries already in my default stylesheet. Last edited by DNSB; 07-09-2022 at 01:33 PM. |
|
![]() |
![]() |
![]() |
#5 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,718
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
An install of a new version of calibre will overwrite the contents of the C:\Program Files\Calibre2\ folder. See ==>> Overriding icons, templates, et cetera BR |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 776
Karma: 1538394
Join Date: Sep 2013
Device: Kobo Forma
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
|
Not sure this is pertinent, but this still works on my Win10 machine using Calibre 6.1
The file ... C:\Users\<used>\AppData\Roaming\calibre\resources\ templates\inline_toc_styles.css ... has the CSS that the inline TOC uses Code:
<title>Table of Contents</title> <style type="text/css"><![CDATA[ /* >>>> inline_toc_styles.css inserted here <<<< */ ]]></style> </head> <body id="calibre_generated_inline_toc"> Last edited by phossler; 07-19-2022 at 06:42 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help with Create TOC from XPath | mjcatt | Editor | 8 | 08-29-2019 01:24 PM |
Can I create an EPUB TOC by myself? | yJan1986 | ePub | 24 | 10-29-2018 02:26 PM |
Ho do I create a TOC for ePub which does convert to an active TOC in Kindle Previewer | K-Thom | Calibre | 1 | 09-24-2013 06:32 PM |
create TOC for every X pages | omegauo | Conversion | 0 | 03-21-2011 01:45 AM |
How to create linked TOC? | squawker | Sony Reader | 1 | 03-04-2007 08:20 AM |