How to remove extraneous page numbers from ePub TOC

Ebooks Asked on July 21, 2021

I’ve created this epub file as an export from an Indesign file, and it’s got two problems that I can see immediately:

  1. The ToC includes page numbers after the chapter titles, even though I’ve created a special epub export ToC style in Indesign that isn’t supposed to include the page numbers of references (see screenshot.

Note that in the ePub export dialogue, I made sure to set my special ToC style like this:


Yet the ToC in the ePub when viewed on Apple books still has the page numbers there — like this:


How do I get rid of the page numbers that appear after the chapter titles?

  1. The title pages aren’t carrying over the Playfair Display font from the print PDF of the book, and there’s a page break on the dedication page. How do I fix this?

Thank you so much if anyone can help!

One Answer

I suspect you can persuade InDesign to export this correctly, but if this is a one-off and you don't need to do many like it, it would very probably be easier to open it in Calibre (free), edit the ToC, and use Calibre to re-pack the ePub. Alternately, you can unzip the ePub, edit the ToC file in a text editor, and re-zip it in this order -- OSX, but I think the flags work on Linux and maybe Win:

prompt$ zip -X0 title.epub mimetype
prompt$ zip -Xr "title.epub" "META-INF/" "OEBPS/"

Answered by jorourke on July 21, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP