Can Typst produce epub format document?

Hi,
I have a document which consist of 5 typ chapters, I compile (typst compile my_doc.typ) my file. The file compiles and I get my_doc. pdf document. My question: Does typst compiler provide the possibility to produce a document in epub format?

Or is there an alternative for producing a document in epub format from the pdf document?

Thank you,
Andrew

Hi! There’s no native support at present.

Perhaps it is possible to export your Typst documents to HTML files, then use Calibre or other softwares to collect them into a EPUB file.
You may also have to mange images, assets and cross-page links manually, because many features for directory output have not been implemented yet.

If you’re not in a hurry, I suggest waiting for a few months until typst 0.15 is released. I heard that typst 0.15 will refactor the documentation system, which depends on directory output. Therefore, those features might be implemented in 0.15.

1 Like

Thank you.

Generate an HTML file with Typst.
Convert HTML to ePub with Pandoc.

1 Like