Quote:
Originally Posted by deback
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.