10-20-2020, 08:00 AM | #1 |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2020
Device: none
|
Trying to add space in EPUB document
Hi
I think what I'm trying to do is probably quite simple but I can't for the life of me figure it out. In InDesign CC 2020 I need to add space above the text on an ebook title page, and also I need to add some space above each of the chapter headings. For the title page, I've tried Object Export Options > Custom Layouts > Space Before but no matter what value I input it has no effect - the text still appears at the top of the page on the exported EPUB. For the space at the start of each chapter, I've tried adding things in the paragraph style but it seems lots of information gets discarded on export to EPUB. Hopefully someone has a solution! |
10-20-2020, 08:39 AM | #2 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I don't know the solution using InDesign. But there is a solution that requires editing the CSS. Find the class that defines how the chapter title is displayed and add in code like...
Code:
margin-top: 1em; You can use Sigil to do this and you'll be able to see the result before saving. |
Advert | |
|
10-20-2020, 08:53 AM | #3 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Oct 2020
Device: none
|
Quote:
|
|
10-20-2020, 01:32 PM | #4 |
mostly an observer
Posts: 1,515
Karma: 987654
Join Date: Dec 2012
Device: Kindle
|
You may find that InDesign epubs have to be fixed in Sigil anyhow, so you might as well learn to do it in the purpose-built epub software rather in ID.
|
10-20-2020, 02:04 PM | #5 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
If you learn how to do this in CSS, you can learn more and you can also learn HTML. This way, you can make any changes to the ePub you want/need that you cannot do easily with InDesign.
To be honest, I've seen the code for a lot of ePub that was made with InDesign and it's not as good as it could be. The problem with some eBooks done in InDesign is that they are laid out for print and then exported as ePub and that in;t always optimal. Fonts are one thing that is an issue with InDesign when exporting to ePub. Learn HTML/CSS and you can do what you want/need to do. Remember, you can always ask for help on MR. |
Advert | |
|
10-20-2020, 02:33 PM | #6 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
The solution that Wolfie mentioned will work; but you can also use the simple expedient of ensuring that each chapter is its own HTML file and then use margin-top to ensure that you get the spacing that you want. I hope that helps. Don't be afraid of the code. It just looks scary. Hitch |
|
10-20-2020, 02:54 PM | #7 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I think for the average novel, that HTML/CSS is easier to learn then it is to learn to use InDesign. It's been a long time since I've used InDesign. This was pre-ePub and I was doing some complex layout to be printed.
|
10-20-2020, 02:57 PM | #8 |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Have a look at the following code for a chapter title.
HTML code Code:
<h2>Chapter One</h2> Code:
h2 { font-size; large; margin-top: 1em; margin-bottom: 1em; text-align: center; text-indent: 0; font-weight: bold; } See how simple it is? Last edited by JSWolf; 10-22-2020 at 12:39 PM. |
10-21-2020, 01:57 PM | #9 |
the rook, bossing Never.
Posts: 11,080
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
Indesign was meant for paper (and by implication PDFs which really are only proofs of paper). The epub support is a fudge and produces ghastly stuff.
Far better to use a Wordprocessor. Use Styles. Totally trivial to set top margin, left, right, first line and bottom. Then Sigil or Calibre to convert a docx to epub. Then the above example is totally automatic converting docx to epub if the margins are set in pt. The convention is 12pt = 1em. Almost all rendering engines use that if the CSS is in points. Last edited by Quoth; 10-21-2020 at 02:00 PM. |
10-21-2020, 03:03 PM | #10 | |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
What I don't get is why publishers try to duplicate the look of the pBook but still manage to botch the eBook formatting. For example, paragraph spaces. They don't exist in the pBook and left justify does not exist in the pBook. |
|
10-22-2020, 11:46 AM | #11 | |
A Hairy Wizard
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Exactly! CSS/HTML are very simple to learn and there are very good tutorials for the new coder to get things going. I would only make one small correction to JSWolf's example - with that CSS you do not have to define a 'class="chapter" ' - the plain <h2> tag will work. Code:
<h2>Chapter One</h2> h2 {yadda, yadda} |
|
10-22-2020, 12:41 PM | #12 | |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
Last edited by JSWolf; 10-22-2020 at 02:17 PM. |
|
10-22-2020, 06:35 PM | #13 |
A Hairy Wizard
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
If you are referring to "yadda, yadda" as the CSS mistake, then it's not a mistake. It is a Seinfeld reference meaning 'I don't need to go into all the details here because you get what I'm trying to say'
If that is NOT what you are talking about, please elucidate. ...and yes, I know.... quoting Seinfeld is probably showing my age a little too much Last edited by Turtle91; 10-22-2020 at 06:38 PM. |
10-22-2020, 07:01 PM | #14 | |
Resident Curmudgeon
Posts: 73,887
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
10-22-2020, 07:18 PM | #15 | |
A Hairy Wizard
Posts: 3,093
Karma: 18727053
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Quote:
Anyway...I think we |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Save any Document from Microsoft Word 2007 to EPUB using a Free Add-in from Aspose | romeok | ePub | 45 | 05-03-2017 03:33 PM |
Windows partition running out of space during add | jpcookie | Conversion | 7 | 07-12-2014 09:49 PM |
(Kindle) any format.Add space @ end line | MrTynKyn | Conversion | 0 | 02-17-2013 04:19 PM |
Add space between <br> tag | kakkalla | Conversion | 9 | 02-29-2012 11:02 PM |
Add a space after periods | prhammer | Conversion | 3 | 05-13-2011 06:51 AM |