Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 06-22-2014, 09:34 AM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Inline TOC loses formatting

If I have additional formatting applied to the Hx that will be in the Inline TOC, the <i>, <sup> etc. do not carry over to the TOC file

I can apply them manually, and then they do show in the epub's inline TOC

I don't do anything fancy like that very often, but it would be more convenient if I didn't have to try to remember that

Thanks

Spoiler:

<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">

<head>
<title>Test TOC</title>
</head>

<body>

<h1>Test TOC - Two <sup>Superscript</sup> and <sub>Subscript</sub></h1>

<p>Test text</p>

<p>Test text</p>

<p>Test text</p>

<p>Test text</p>

<p>Test text</p>

</body>

</html>



Spoiler:

<body id="calibre_generated_inline_toc">

<h2>Table of Contents</h2>

<ul class="level1">

<li><a href="One.html">Test TOC - One Bold Italic</a></li>

<li><a href="Two.html">Test TOC - Two Superscript and Subscript</a></li>

<li><a href="Three.html">Test TOC - Three underline and strikethrough</a></li>

</ul>

</body>

</html>
Attached Files
File Type: epub Test_TOC.epub (2.9 KB, 226 views)

Last edited by phossler; 06-22-2014 at 09:37 AM.
phossler is offline   Reply With Quote
Old 06-22-2014, 09:46 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,899
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
If this works similar to Sigil,
The inline TOC is built from the NCX.
You can't use use any styling in the NCX so it is filtered out as it hits the NCX (no longer there).

Hand edit (it back) time if you want it in the final inline TOC.
remember, this is a fragile step. A rebuild of the TOC wipes your work

You CAN have a custom TOC stylesheet for the overall L&F
theducks is offline   Reply With Quote
Advert
Old 06-22-2014, 10:16 AM   #3
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
This is one case where having an extra stylesheet is worthwhile. It would also give you a standardized look and feel...but how important is it to copy the original?

For me not at all. Do I have to ape the typesetter of the original, who was not the author and layout of which only a personage like Churchill ever got any control over? No.
mrmikel is offline   Reply With Quote
Old 06-22-2014, 12:31 PM   #4
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
In this particular case, the TOC generated from a H1 had superscripts as part of the heading, e.g. Z2 = X2 + Y2

Generating the Inline TOC (and I have a special TOC.css) the text looked funny w/o the superscripting

Yes, I can always manually apply the formatting, but I didn't understand the process for making the inline TOC

Still would be nice
phossler is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inline TOC formatting phossler Editor 9 03-29-2014 06:05 AM
Retaining formatting in inline links MacEachaidh ePub 4 03-16-2014 04:11 PM
Inline TOC from toc.ncx elmago79 Kindle Formats 38 03-25-2011 12:56 PM
Use Regex to Code an Inline TOC, from an External TOC's .ncx File mostlynovels ePub 2 03-16-2011 12:15 PM
Trying to make an Inline TOC crutledge Sigil 2 05-09-2010 05:46 AM


All times are GMT -4. The time now is 06:17 AM.


MobileRead.com is a privately owned, operated and funded community.