Starting new chapters on a new page

33 views
Skip to first unread message

Richard Powell

unread,
Mar 15, 2023, 3:29:04 PM3/15/23
to BBEdit Talk
Hi everyone. This is probably a pretty simple one for most of you. I have an epub file which was created in QuarkXPress. The chapters all need to start on a new page. I imagine that would be the Chapter style in the css file which would have to be altered? I have attached a screenshot of the css file. Can somebody please explain how I need to alter the text to achieve this. Thank you.

Screenshot 2023-03-15 at 21.25.10.png

Bruce Van Allen

unread,
Mar 15, 2023, 5:05:30 PM3/15/23
to bbe...@googlegroups.com
I haven’t used Quark for at least a decade, so I haven’t faced this question in that context. But with css in general:

1. Your css is using the deprecated page-break-inside property. It might still work, so try 'page-break-before: initial;' in the first paragraph of a chapter.

2. Otherwise the newer property is simply break-before (along with break-after, and break-inside);

break-before: page;
break-before: initial;

See mdn: <https://developer.mozilla.org/en-US/docs/Web/CSS/break-before>

HTH

— Bruce

_bruce__van_allen__santa_cruz_ca_





> On Mar 15, 2023, at 12:28 PM, Richard Powell <bassplayer...@gmail.com> wrote:
>
> Hi everyone. This is probably a pretty simple one for most of you. I have an epub file which was created in QuarkXPress. The chapters all need to start on a new page. I imagine that would be the Chapter style in the css file which would have to be altered? I have attached a screenshot of the css file. Can somebody please explain how I need to alter the text to achieve this. Thank you.
>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/1eda5e3b-fa5f-4204-8587-a10f4e55a06an%40googlegroups.com.
> <Screenshot 2023-03-15 at 21.25.10.png>

Bruce Van Allen

unread,
Mar 15, 2023, 5:10:11 PM3/15/23
to bbe...@googlegroups.com
I haven’t used Quark for at least a decade, so I haven’t faced this question in that context. But with css in general:

1. Your css is using the deprecated page-break-inside property. It might still work, so try 'page-break-before: initial;' in the first paragraph of a chapter.

ADDED: Maybe not the first paragraph of the chapter if you have a separate Chapter style.

2. Otherwise the newer property is simply break-before (along with break-after, and break-inside);

break-before: page;
break-before: initial;

See mdn: <https://developer.mozilla.org/en-US/docs/Web/CSS/break-before>

HTH

— Bruce

_bruce__van_allen__santa_cruz_ca_





> On Mar 15, 2023, at 12:28 PM, Richard Powell <bassplayer...@gmail.com> wrote:
>
> Hi everyone. This is probably a pretty simple one for most of you. I have an epub file which was created in QuarkXPress. The chapters all need to start on a new page. I imagine that would be the Chapter style in the css file which would have to be altered? I have attached a screenshot of the css file. Can somebody please explain how I need to alter the text to achieve this. Thank you.
>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/1eda5e3b-fa5f-4204-8587-a10f4e55a06an%40googlegroups.com.
> <Screenshot 2023-03-15 at 21.25.10.png>

--
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "sup...@barebones.com" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bbedit+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/8DA5530A-5F41-4B45-986B-91678A264AFC%40cruzio.com.

David Donachie

unread,
Mar 15, 2023, 5:24:57 PM3/15/23
to bbe...@googlegroups.com


On 15 Mar 2023, at 21:05, Bruce Van Allen <b...@cruzio.com> wrote:

I haven’t used Quark for at least a decade, so I haven’t faced this question in that context. But with css in general:

1. Your css is using the deprecated page-break-inside property. It might still work, so try 'page-break-before: initial;' in the first paragraph of a chapter.

2. Otherwise the newer property is simply break-before (along with break-after, and break-inside);

break-before: page;
break-before: initial;

See mdn: <https://developer.mozilla.org/en-US/docs/Web/CSS/break-before>


Although break-before is part of the current CSS spec, the EPUB 3.3 spec (which I think is the latest) refers to page-break-before only. I can’t see an indication in the W3C spec that break-before is supported: https://www.w3.org/TR/epub-33

Having said that, the draft points at https://www.w3.org/TR/CSS which does have break-before, so you could equally assume that 3.3 does support it.

Of course, some EPUB platforms only support EPUB 2, which wouldn’t definitely not use break-before.

I guess the right approach is to test your target platforms.

Yours
David Donachie


Reply all
Reply to author
Forward
0 new messages