View Single Post
Old 07-07-2009, 09:46 AM   #4
dpierron
calibre2opds guru
dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.dpierron shines like a glazed doughnut.
 
dpierron's Avatar
 
Posts: 533
Karma: 8792
Join Date: Aug 2005
Location: Metz, France
Device: iPhone, iPad, PRS-650
Hi Paul,

I don't know where Calibre stores its default values, I'd guess it's in a constant compiled in the program...

Anyway, using --override-css is quite simple, all you have to do is specify the path of your custom CSS file :

Code:
  
--override-css=OVERRIDE_CSS
                        Either the path to a CSS stylesheet or raw CSS. This
                        CSS will override any existing CSS declarations in the
                        source files.
As for what to put in this file, I can't tell ; it depends on the input file, the way Calibre generates the content (and therefore the name of the class specified for the titles elements) : you'll have to experiment.

As far as I know it should be something like :

Code:
h1 {
    font-size:0.9em;
   }
Of course, the element name (h1 in this example) can vary, it could be h2, h3 or whatever level choosen by Calibre, or even a custom element.
Also, the font-size value is yours to choose

Tell me if I can help you further !

Cheers,
David.
dpierron is offline   Reply With Quote