Skip to main content

Module epub

Module epub 

Source
Expand description

EPUB manifest creation.

Port of LaTeXML::Post::Manifest::Epub (252 lines of Perl). Creates the EPUB 3.2 package structure:

  • mimetype file
  • META-INF/container.xml
  • OPS/content.opf (spine + manifest)
  • Indexes all content files with correct media types

Structs§

EpubManifest
EPUB manifest builder.
EpubSource
The parts of the core XML an EPUB needs before post-processing.
ResourceEntry
A resource entry (CSS, images, fonts).
SpineEntry
An entry in the EPUB spine (content document).

Functions§

prepare_source
Port of LaTeXML.pm check_TOC (an EPUB requires a TOC: add a full, undisplayed one unless the document has one) together with the title the manifest reads from the document.