![]() |
inline_toc_styles.css
To have my own CSS used when I make an inline TOC, I created my own styles and put my inline_toc_styles.css into AppData\Roaming\Calibre\resources\templates
1. I took a guess about where to put it since I couldn't find info in the users manual (and for once I guessed right) 2. I get CDATA tags for some reason. They don't seem to hurt, but I wonder why I get them Code:
<style type="text/css"><![CDATA[ |
It ain't hard.
File: import into book: <select file> It auto locates (in file browser)based upon extension Right click on the LINK TARGET html: select |
Sorry, I don't see how that relates to getting [CDATA] tags
I did that and all I got was another html file at the end. |
I think you get this <![CDATA[ because you are in a xhtml file, and in your css you have this symbol >.
> is a special character in xml. CDATA is used to prevent errors when parsing the document. A way to say : "ignore all special characters in this section". If you don't want to see it, put your css in an external file, but as you said, it doesn't hurt. |
Ahhh - thanks
Calibre apparently inserts what it finds in the inline_toc_styles.css file when it makes an inline TOC so I was just modeling mine on the built in file (which doesn't have the <) My version gets used and the CDATA doesn't hurt, so all is well |
| All times are GMT -4. The time now is 09:38 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.