Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 06-10-2025, 01:32 PM   #1
Bremman
Junior Member
Bremman began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2025
Device: Kindle
Unwanted page break in chapter heading

Dear Forum Community,

Forgive me, but I am new and unsure of how to use this forum.

I am a self-publishing author and am creating an ebook using Calibre. I want to have my chapter headings such that the chapter number(s) appears above the chapter title(s), both of which are centered. This works out on all of my chapters except seven of them, and according to D2D validation tool, there are no errors.

The seven chapters that do not work out all have the chapter title: "A Primer on the Spiritual Life, Part...", and with each of these seven chapters, Calibre inserts a page break between the chapter number and "A Primer on the Spiritual Life, Part..." Can you help to remedy this, please?

I am using MS Word and uploading it into Calibre. Attached is the first of these chapter titles in the original Word document (Calibre - Forum 1). Also attached is the code in Calibre (Calibre - Forum 1 and 2).

Please help if you can.

Bremman
Attached Thumbnails
Click image for larger version

Name:	Calibre - Forum 1.png
Views:	24
Size:	25.3 KB
ID:	216128   Click image for larger version

Name:	Calibre - Forum 2.png
Views:	27
Size:	221.5 KB
ID:	216129   Click image for larger version

Name:	Calibre - Forum 3.png
Views:	26
Size:	440.2 KB
ID:	216130  

Last edited by Bremman; 06-10-2025 at 01:34 PM.
Bremman is offline   Reply With Quote
Old 06-10-2025, 06:08 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,950
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Something triggered a page split on file 21. There is no content in file 22 and 23 gives no clue why it split from 21 (if it did and not before you got the book)

In the Editor: Tools reports: Files: Sort (click the header) of Size:
Verify those HTML files with the tiny (and same) size and word counts, are those that are blank
Select and (right click) delete
theducks is offline   Reply With Quote
Old 06-10-2025, 06:32 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,439
Karma: 168808777
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by theducks View Post
Something triggered a page split on file 21. There is no content in file 22 and 23 gives no clue why it split from 21 (if it did and not before you got the book)
When I look at the two images, index_split_021 contains the chapter number by itself. I would suggest merging the two files (index_split_021 and index_split_022) instead of deleting index_split_021. See the Merging files item from the calibre ebook editor help. Repeat the merge as needed for the other split files.

Last edited by DNSB; 06-10-2025 at 06:36 PM.
DNSB is offline   Reply With Quote
Old 06-10-2025, 07:02 PM   #4
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,662
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Bremman View Post
. . .

I am using MS Word and uploading it into Calibre. Attached is the first of these chapter titles in the original Word document (Calibre - Forum 1). Also attached is the code in Calibre (Calibre - Forum 1 and 2).
It is because of the conversion settings :

Click image for larger version

Name:	Screenshot 2025-06-11 085350.jpg
Views:	34
Size:	129.3 KB
ID:	216153

See ==>> Structure detection and XPath tutorial

BR
BetterRed is offline   Reply With Quote
Old Yesterday, 04:03 PM   #5
Bremman
Junior Member
Bremman began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2025
Device: Kindle
Thank you for your responses. I sincerely appreciate them!

I have been working at this ebook for most of the day and solved the problem by moving "Part..." to the next line in the MS Word document. Now Calibre does not separate the chapter number from the chapter title. I do not know anything about code, but it seems that the word "part" is a flag that causes a page break. I wonder what you think...?

Attached are two screenshots from two chapters of the seven that are now corrected. Thank you! I sincerely appreciate them!
Attached Thumbnails
Click image for larger version

Name:	Calibre Forum 4.png
Views:	6
Size:	392.2 KB
ID:	216169   Click image for larger version

Name:	Calibre Forum 5.png
Views:	4
Size:	421.7 KB
ID:	216170  

Last edited by Bremman; Yesterday at 04:06 PM. Reason: Did not sound right the first time.
Bremman is offline   Reply With Quote
Old Yesterday, 04:32 PM   #6
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,381
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Quote:
Originally Posted by Bremman View Post
I do not know anything about code, but it seems that the word "part" is a flag that causes a page break. I wonder what you think...?
The part as a flag is what BetterRed was highlighting for you in their reply. The xpath mentioned in that post is used by calibre to detect and insert breaks.

Quote:
Originally Posted by BetterRed View Post
It is because of the conversion settings :

Attachment 216153

See ==>> Structure detection and XPath tutorial

BR
So just change the xpath expression to have xart rather than part.
PeterT is offline   Reply With Quote
Old Today, 11:07 AM   #7
Bremman
Junior Member
Bremman began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2025
Device: Kindle
I found it!

Aside from knowing a few HTML commands to use on print-on-demand sites, I know next to nothing about code (although I figured out how to make my epubs error-free on Kobo's and Draft2Digital's validation tools).

To teach me something regarding code is an achievement!

Thank you all for your generosity!

PS -- What would happen if I deleted "part" rather than make it "xart"?
Attached Thumbnails
Click image for larger version

Name:	Calibre Forum - 6.png
Views:	3
Size:	168.3 KB
ID:	216182  
Bremman is offline   Reply With Quote
Old Today, 11:15 AM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,950
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Bremman View Post
I found it!


PS -- What would happen if I deleted "part" rather than make it "xart"?
You just lose the ability to code a book to ALSO break at a New Part without repairing the standard keywords.
theducks is offline   Reply With Quote
Old Today, 01:27 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,453
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by theducks View Post
You just lose the ability to code a book to ALSO break at a New Part without repairing the standard keywords.
What I've done when the default XPath causes a problem is to cut the XPath, do my conversion and then past it back.
JSWolf is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Heading 1 page break not recognised moonwatcher Calibre 3 01-19-2013 08:32 AM
unwanted page break photoluminations Conversion 1 09-28-2011 08:11 PM
unwanted extra chapter break alansplace Conversion 5 07-05-2011 12:00 PM
How to avoid page break after heading/chapter tkirke ePub 6 01-22-2010 02:12 PM
epub - unwanted page break after image mrmikel Calibre 5 07-10-2009 07:35 AM


All times are GMT -4. The time now is 01:29 PM.


MobileRead.com is a privately owned, operated and funded community.