Copy link to clipboard
Copied
Theres a trick to make chapter heading where you make a paragraph rule with an offset of, say, 150. You then tick keep in frame. This pushed the heading down.
Would this cause issues when exporting to epub?
Yes. It doesn't work.
To include top-spacing (from the page's top margin) in EPUB and Kindle, you have to use a variety of spacing techniques in combination. Any one of them tends to work in any single destination, but if you want that top spacing in print, in most EPUB readers and in Kindle, it's best to use all three methods.
Copy link to clipboard
Copied
Yes. It doesn't work.
To include top-spacing (from the page's top margin) in EPUB and Kindle, you have to use a variety of spacing techniques in combination. Any one of them tends to work in any single destination, but if you want that top spacing in print, in most EPUB readers and in Kindle, it's best to use all three methods.
So to get a completely conventional chapter heading into an EPUB or Kindle document —
p.ChapterHead {
padding-top: 144px;
page-break-before: always;
page-break-after: avoid;
}
And finally, as a suspenders-and-belt-and-safety pins backup, define your ChapterHead style as a 'split' style. Under the Paragraph Style menu, in the Export Tagging pane, check the "split document" box. Then, in the export menu, check "Split document" and select "based on paragraph styles" below. (This will force the export process to create a new content file beginning with each chapter heading, which is one more way to force readers to honor a space-above setting.)
Yes, this is a fussy and complicated process just to get some completely ordinary spacing above a title. But both ID and EPUB fight back on the request. There is more detail and explanation in the book noted in my sig. Happy to answer further questions as well.
Copy link to clipboard
Copied
Thanks. It's probably less hassle to just have a reflowable epub without spaces before the headings.
Copy link to clipboard
Copied
No, no, although I went on at length to outline the whole problem and its solution, the only step that's not dead simple is creating that CSS file. And that's a one-time thing unless you choose to tinker with the spacing.
There is another technique for spacing over headings, so that they behave in EPUB/Kindle the way they do in print and layout — spacing down when preceded by text, and collapsing to page top when they start a page. But that process is more involved. Just spacing down chapter headings is... easy enough, and esthetically advantageous.
It's all a matter of making best use of each medium... but not throwing centuries of accumulated book design out the window.