View Single Post
Old 12-31-2010, 07:25 PM   #5
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: 31,098
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by panda6855 View Post
Hi again, theducks. Another quandary - how do I change font size? Is there a command button I've missed? Or is that done by editing the template?
Many thanks
No.
You need to jump into Stylesheets big time

stylesheet (assumes 1 sheet and each page has a reference)
Code:
 .slightlybigger { font-size: 150% }

I use percent (of default). 2em, 24pt are valid
CodeView add or insert after existing selector
Code:
 <h3 class="any_existing slightlybigger"> The heading</h3>
If your page does not have a linked stylesheet, you need a entry like this
Code:
 <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
just below the <title> tag (the stylesheet names must agree exactly.)

Quote:
Originally Posted by panda6855 View Post
Thank you, theducks! That explains a LOT of things that I've been experiencing, particularly as i've tried to copy code between books to solve problems. Won't try that again!

I've now read the Sigil How To doc which is great. But it doesn't explain how to add styles eg. if I want to have chapter headings and then subheadings within the chapter, some bold and some normal.
I dont mind using the same format for my 4 books but then I guess I'd have to start with a template in first place that included those 'extra' styles. Is there a base style sheet (is that the 'template'??) for Sigil that includes more styles? And if there is, then how do I apply those styles? Do I go into code mode or do those styles show up in the styles drop-down menu where I presently see heading1, heading 2 etc etc?

Many thanks.
See above.
A Style sheet can be a standard way of doing things for a given look.
Why not hop over to Baen Free Library (or any other EPUB site, inc MR) that has a Simple styled EPUB that you like some things about.
Open in Sigil
Now switch to CV. Any time you see class="somename"
Now goto the stylesheet and locate that name
Reverse engineering at it's finest
theducks is offline   Reply With Quote