Quote:
Originally Posted by digital punk
thanks for the plugin and all the related info. is there any quick way to remove the indent of the first chapter/section? I notice BobC was apparently able to do it using some code ie h2+p {text-indent: 0;} I'm not sure how to do it though. This might be something you want to add to the Kepub option tabs for future updates of the plugin?
|
The h2+p CSS selector is not a general approach that can be applied to any book, you need to examine the code of the books themselves to work out just what to apply to select, say, the first paragraph following a chapter heading. I do this as part of my book editing rather than having to apply a separate class to the first paragraph. It's a "lazy" approach but quite effective. Definitely not something to automate :-) The Calibre Editor now makes this a very easy task.
Incidentally if you do use this technique then beware of Sigil - choosing to clean up "unused" styles will (offer to) delete the h2+p "class" as unused. This will undo your work. I see Kovid is planning a similar "clean up CSS" for the Editor, I hope it is possible for him to avoid this mistake or at least flag compound selectors as "possibly unused".
BobC