Contents | Start | End | Previous: KB0268: Why does my book cover not appear on my Kindle after sideloading? | Next: KB0270: Why are first-line and full indents not the same on Kindle?


KB0269: How do I prevent headings being followed by a page break?

See also: How do I keep a caption on the same page as its image?

For some viewers, you can prevent a heading being orphaned from the following text by a page break, using two methods:

  1. Edit the heading paragraph style(s) and check Avoid page break after paragraph in the Indents & Spacing tab.

  2. In your configuration(s), edit the option Styles suppressing page break after and adding one or more patterns separated by the pipe (|) character. For example, "Heading*|Chapter*".

Unfortunately this not supported by Kindle or Apple Books as they do not support the CSS attributes page-break-before and page-break-after. In theory you can work around it by using a box as described in How do I keep a caption on the same page as its image? but it would be tedious to have to add a box for each heading and subsequent paragraph, so for now there isn't a good workaround.


Contents | Start | End | Previous: KB0268: Why does my book cover not appear on my Kindle after sideloading? | Next: KB0270: Why are first-line and full indents not the same on Kindle?