![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 112
Karma: 14166
Join Date: Jun 2013
Location: Stockholm, Sweden
Device: kobo aura hd, trekstor pyrus maxi with texet 138 firmware
|
chapter in the middle
Hello everybody!
I have a question to all the epub wizards here: I have a doc, or a docx file, calibre and sigil and what I would like to do is to place the chapter in the middle of the page, you know, like on printed books. Maybe this question have been asked before, but couldn't find the answer. I attached two pictures for example |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You magic word of the day is margin. You can try it in Word and if you use styles correctly and my add-in, it might work. I am not sure, because it depends on the source of course. At least the add-in will produce a clean ePUB for you.
If it doesn't work directly, open the ePUB in the Sigil or the Calibre editor (not the Calibre conversion!). There use margins-top and margin-bottom for the specific elements to create empty space. Be careful though, as resizing of fonts might greatly disrupt this. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If this is an eBook to be sold, please don't waste that much screen space. It just looks awful (IMHO).
|
![]() |
![]() |
![]() |
#4 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,613
Karma: 6718541
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
|
If you keep the blank space at the top (margin-top) modest there will be little issue with user changes in the font size.
I commonly do this for each chapter using the following CSS: Code:
h2 { text-align: center; margin-top: 4em; margin-bottom: 0em; } Code:
<h2 id="heading_id_2">CHAPTER I</h2> <p class="center"> <img alt="" height="34" src="../Images/Ornament19-211x34.gif" width="211" /> </p> |
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 112
Karma: 14166
Join Date: Jun 2013
Location: Stockholm, Sweden
Device: kobo aura hd, trekstor pyrus maxi with texet 138 firmware
|
Thank you everybody for the quick replies, I will try when I'll get in front of my computer.
My chapter are set as h1. But I will see. Thanks again |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 112
Karma: 14166
Join Date: Jun 2013
Location: Stockholm, Sweden
Device: kobo aura hd, trekstor pyrus maxi with texet 138 firmware
|
well, nothing much happened. maybe i am too stupid for this kind of craft
|
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
You did link the stylesheet to the actual (X)HTML?
|
![]() |
![]() |
![]() |
#8 |
Color me gone
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
Also if you mistype, it won't work either. Browsers are very tolerant of errors, e-readers, not at all. Not a reflection on you, we have all spent too much darn time wondering what was happening when a semicolon was missing or a bracket.
|
![]() |
![]() |
![]() |
#9 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
A keyword: Center (EPUB 2 does not support a vertical centering. I am with the Wolfman on no GIANT whitespace. Some
![]() ![]() Code:
margin: 2em 0 ; /* shorthand for top and bottom 2em sides 0 */ text-align: center; text-indent: 0; ![]() |
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One of the things I change in a publisher ePub is large wasted space in chapter headers. Why do it?
|
![]() |
![]() |
![]() |
#11 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
|
![]() |
![]() |
![]() |
#12 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
It is wrong to treat an e-reader as a full size sheet of book page.
Balance is a word the publishers seem to have forgotten. 'Our way or else' No covers, or plain 'generic' ones. Huge whitespace. Fixed dimensions (eg indent: .25in ) used Quality check (mostly on backlist titles) missing Overuse of High density decorations or total removal And while it is not 100% a publishers fault: Lack of embedded (subsetted) display fonts. |
![]() |
![]() |
![]() |
#13 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Well, these examples and suggestions (and reference to ASOIAF which does it quite well) look fairly reasonable and balanced. And Jon isn't distinguishing.
![]() So I figured, since he is so fond of explaining to people why things are "wrong", I'd contribute a similar line of thought. ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Last edited by eschwartz; 08-17-2014 at 11:46 AM. |
![]() |
![]() |
![]() |
#14 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 112
Karma: 14166
Join Date: Jun 2013
Location: Stockholm, Sweden
Device: kobo aura hd, trekstor pyrus maxi with texet 138 firmware
|
thank you all for your replies and suggestions. I have tried but all I did was to center it. I am too dumb for all this.
why would I want it? because I like it, and, if possible, I would like my e-books to look as close possible to the print ones. I even go in bookstores and check for the typefaces used to print, and then I try them in my books. I know, you will all say that an e-book is not hard copy, but still... I am reading on a T68 with cool reader or alreader. Last edited by babadockia; 08-17-2014 at 01:17 PM. |
![]() |
![]() |
![]() |
#15 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
Can you show us some code from the HTML and from the stylesheet?
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
xpath to insert chapter breaks - but chapter name cut off ? | Rob557 | Conversion | 2 | 03-06-2014 06:59 AM |
PRS-505 In middle of screen is a triangle with ! in middle | toad1960 | Sony Reader | 0 | 12-30-2011 01:30 PM |
Ebook chapter titles: with or without chapter number? | amoroso | Writers' Corner | 16 | 06-14-2011 06:35 AM |
What are SGF Chapter Marker and Chapter Break? | webphone | Sigil | 1 | 05-25-2011 02:43 PM |
K2 v K1: Chapter-to-chapter missing from some books? | Starhawk | Amazon Kindle | 4 | 03-10-2009 06:27 PM |