EPUB book
kakemono convert paper.pdf -o paper.epub (or --format epub) writes an EPUB 3 book, from the
same analysis and with the same markup as the friendly mode, for Apple Books, Kobo, Thorium,
calibre and other e-readers (and for Kindle through Send to Kindle):
- one chapter per top-level section, after a title page with the title, authors and abstract; a table of contents with every heading (and an NCX for EPUB 2 readers);
- formulas whose structure is clear become MathML (the others pictures), rebuilt tables become tables, code listings stay line by line; footnotes stay after their paragraph;
- figures are pictures stored in the book; the first page, drawn as a picture, is the cover that readers show in their library;
- the style sheet sizes everything relative to the text, so the reader’s font, size and theme apply; citations and references to figures, tables and sections are links across chapters.
Books convert too, novels included: a drop cap is read as the first letter of its line, running heads and feet are removed even when set far from the page edge, and each chapter is a content document of its own.
The title, the authors, the arXiv page and the date of conversion are recorded in the book.
--scale and --equations apply; --images files does not (the book holds its pictures).
A displayed formula wider than a phone screen (20 times the text size) is a picture rather than
MathML: a MathML formula cannot break over lines, and most readers do not scroll sideways, so
it would be cut at the edge of the screen; a picture shrinks to the page. Readers that do not
show MathML show the text of each formula instead: --equations image makes every displayed
formula a picture.