06-30-2013, 02:05 PM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jun 2012
Location: Illinois
Device: Nook classic Nook simple touch with glowlight
|
stylesheet help
I am new to Sigil; attempting to learn it. I started with an epub from calibre, converted from an rtf file. I wanted to break it into chapters and add TOC - the calibre breaks were not at chapter breaks. This worked, but I find that the fonts differ from chapter to chapter, and occasionally within the chapter. I searched Fonts on the forum and came to realize that it is possibly stylesheets that do this, and where I need to make changes. My html knowledge is rudimentary; I hope working with Sigil will change this, but at the moment I don't really understand stylesheets at all.
Two questions - am I right that i need to fix the varied fonts in stylesheets? Is there a good source explaining stylesheets to a novice? Thanks |
06-30-2013, 02:35 PM | #2 | |
Well trained by Cats
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Sigil is just a tool to use. There is nothing different for the CSS or HTML (Except the use of H# tags (to markup) to allow auto TOC generation from the document) I would suggest starting at http://www.w3schools.com/ We now switch to the EPUB forum |
|
06-30-2013, 05:01 PM | #3 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
My style sheet is posted on my blog at notjohnkdp.blogspot.com
(Of course, one must also use the appropriate paragraph and heading tags. I second the motion to look at w3schools.com ) |
07-01-2013, 06:22 AM | #5 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
It is also possible that the style information is specified at the start of each file making up the epub. That could account for the different fonts, too.
If it exists at the start of the file, either change it or eliminate it and put all font information in one stylesheet. |
07-02-2013, 06:06 AM | #6 | |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
Quote:
I love the way Sigil recognizes and "inhales" related files and images. |
|
07-02-2013, 12:03 PM | #7 |
Writer
Posts: 101
Karma: 590630
Join Date: Mar 2011
Location: Munich, Germany
Device: none
|
@arethusa
If you have different styles for some paragraphs, you must edit the html file. First look at the paragraph the style of which you like. Then you look at it in code view. Perhaps this paragraph starts with <p class="calibre2">. Then you look at a paragraph with a different style. In code view you may see that this parapraph starts with <p class="calibre7"> (or any other number). You simply have to change it into calibre2. As the epub was created with Calibre, you've got the file 'stylesheet.css'. In Sigil you find it in the Stylesheet folder. If you dont need <p class="calibre7"> any more, you can delete this class. In stylesheet.css it is shown as .calibre7 { . . . } George |
Tags |
fonts, novice epub, stylesheets |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cleaning the stylesheet | roger64 | Sigil | 6 | 11-08-2012 07:20 AM |
Link Stylesheet Does Not Appear | smallstate | Sigil | 2 | 09-20-2012 07:43 AM |
How NOT to use a stylesheet? | karyan | Sigil | 12 | 03-07-2012 12:43 PM |
Stylesheet examples? | Skitzman69 | Sigil | 15 | 09-24-2010 08:24 PM |
Where is the stylesheet.css? | roger64 | Sigil | 4 | 03-23-2010 02:12 PM |