View Single Post
Old 11-08-2020, 05:48 PM   #10
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by deback View Post
For inline TOCs, after generating them, I copy the STYLE section from a text file over the STYLE section in the inline TOC. The STYLE section in the text file is a template that I created a long time ago after formatting the STYLE section in an inline TOC the way I wanted it to be. This way, a simple copy and paste is needed each time I generate an inline TOC, instead of having to format it each time.

Here is my template that I have saved in a text file:

<style type="text/css">
li {
list-style-type: none;
font-size: 0.85em;
padding-left: 0;
margin-left: 0;
margin-bottom: 0.1em;
}
a {
color: blue;
text-decoration: none;
}
a:hover {
color: red;
}
</style>
</head>

<body id="calibre_generated_inline_toc">

<h3 style="text-align: center;">CONTENTS</h3>
But do you always need this ToC? Is it somehow different enough to the NCX ToC? In most cases, it's not different enough and the internal ToC can be left out without any problem because it's not going to be used.
JSWolf is offline   Reply With Quote