![]() |
#1 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 1341124
Join Date: Aug 2010
Device: Kindle 3
|
1,000% a newbie
It's my first time trying this, and I'm stuck at one spot.
I am following instructions to creat a CSS, where I inserted this: img {width: 100%;} h1 {page-break-before: always;} Next, I'm supposed to insert it in the <head> And this is where I'm kinda lost because it's not working. Is it supposed to look like this: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> <head> <link href="../Styles/Style0001.css" rel="stylesheet" type="text/css"/> <title></title> </head> I'm thinking not since the damn thing doesn't work. I just want each chapter to start on a fresh page. Can someone help? Thanks I am following this instruction: Otherwise you can right-click on the Styles folder in the Book Browser pane and Add Blank Stylesheet. In the CSS file I put the following: img {width: 100%;} h1 {page-break-before: always;} |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,417
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The best way to have each chapter to start on a new page is to put each chapter in it's own file (chapter01.xhtml, chapter02.xhtml, ...).
As for linking the stylesheet to the html files? Select the html files, right click, click on Link stylesheets, check the box(es) beside the stylesheet(s) you want to link and click okay. Much easier than manual and error prone typing. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 455
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
@LordP, speaking to @DNSB's point about dedicating a new html/htm/xhtml file to each chapter, earlier versions of Sigil allowed the user to insert a kind of bookmark (<hr class="sigil_split_marker" />) into the html files and then Sigil would split all the files at the marker when you asked it to (by selecting "Split at Marker" from the Edit dropdown menu, or via keyboard shortcut).
I usually organize all the heading hierarchies first, and then split them using a regex search/replace that recognizes where to insert the split marker. it looks like this: Code:
Search: (?<=</p>|</h[1-9]>)\s*<h([12]) Replace: <hr class="sigil_split_marker" /><h\1 Can someone confirm that the "Insert Split Marker" functionality still exists in Sigil 2.xx? |
![]() |
![]() |
![]() |
#4 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,417
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Yes, Split at Markers/F6 functionality still exists. Insert Split Marker does as well but I've never used it since using regex to insert the split marker is a lot easier than scrolling through the epub looking for places to split.
|
![]() |
![]() |
![]() |
#5 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 1341124
Join Date: Aug 2010
Device: Kindle 3
|
Oh Dear.
So much. It will take me a day or two to get through this. You guys know what you are saying, whereas I have to do searches to understand what you are saying. My bad, I thought it was a simple enough question. For example: As for linking the stylesheet to the html files? Select the html files, right click, click I only have one HTML file. Maybe if I had posted this link it would have been a better explanation of what I was trying to do: https://robcubbon.com/create-kindle-...d-using-sigil/ Thanks for the tips. I will research this. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,417
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
For one thing, any guide that mentions Book View is referring to older versions of Sigil (just looked at your link and it's from 2014). I seem to remember that Book View was removed 6 years ago and replaced by Page Edit after Sigil 0.9.14.
If you only have one HTML file, just right click on it and follow Link Stylesheets. Perhaps I should ask what version of Sigil you are using? Hopefully, 2.4.2 at least. |
![]() |
![]() |
![]() |
#7 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 1341124
Join Date: Aug 2010
Device: Kindle 3
|
Yes, I'm using v2.4.2
I tried what you said about following Link Stylesheets, and that worked great. Now I have to figure out why everything is double spaced. ***Never mind, I forgot to remove all the " & # 160; ", the epub looks OK now.*** How does one actually make the epub? I have been using "Save As" but I'm not sure if it's the correct way to do it. Thanks for the help. One more thing. Can you suggest a different guide? Something a bit more recent? Last edited by LordP; 05-07-2025 at 06:43 AM. |
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,540
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I'd suggest "Quick and dirty ePub tutorial (version 3) by Pablo" but it too suffers from the drawback of beibng based on an older Sigil version,
See either https://wiki.mobileread.com/wiki/Pablo or https://www.mobileread.com/forums/sh...d.php?t=130390 |
![]() |
![]() |
![]() |
#9 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 1341124
Join Date: Aug 2010
Device: Kindle 3
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,617
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
You are always making the epub. Saving is the way you name/keep it. It will automatically use "Save As" the first time so you can name it. After that, you'd only need to use Save As if you want to keep different versions of the same epub.
|
![]() |
![]() |
![]() |
#11 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,617
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I'm also disappointed that no one has mentioned the obvious Sigil User Guide.
![]() |
![]() |
![]() |
![]() |
#12 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 1341124
Join Date: Aug 2010
Device: Kindle 3
|
Quote:
I'm importing a DOCX document and it works just as you have said. I don't remember what else I tried - I think I tried an online conversion to HTML...maybe. I like the Sigil manual you indicated, is it downloadable as a PDF? |
|
![]() |
![]() |
![]() |
#13 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,617
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() But no. It's not currently available in PDF. It IS available as a an EPUB, though. You can probably find a trivial way to convert it to PDF. There's a big green button to download the latest User Guide in EPUB at the following location: https://sigil-ebook.com/sigil/guide/ |
|
![]() |
![]() |
![]() |
#14 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 191
Karma: 1341124
Join Date: Aug 2010
Device: Kindle 3
|
Quote:
And yes, I can convert it, but the download was not apparent from the first link. Frankly, I'm 75, retired, and bored. I was inspired by this place: https://bbebooksthailand.com/samples.html The site has downloadable samples & CSS samples. I honestly didn't realize how beautiful ebooks could look!! I'm the guy who wrote a technical manual of over 600 pages for the company where I worked as tech support manager --- ALL in MS Word. In one document. Most of the content was not mine, but, man, it was a huge struggle, and I was very proud when I got it done, and it looked great. I want to do the same for ebooks. I have almost all the time in the world. Thank you to everyone. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spotify valued at $4,000,000,000 USD | Top100EbooksRank | Lounge | 1 | 05-28-2012 02:06 AM |
'The Help': 1,000,000 copy seller on Kindle | RockdaMan | News | 61 | 08-23-2011 03:38 PM |
Race to 1,000,000...pages read... | snipenekkid | General Discussions | 16 | 03-05-2011 02:36 PM |
2,000,000 free e-books from the 4th Annual World eBook Fair | Sonist | Deals and Resources (No Self-Promotion or Affiliate Links) | 4 | 07-15-2009 11:31 PM |