- Typst 100%
| chapters | ||
| .gitignore | ||
| LICENSE | ||
| links.typ | ||
| main.typ | ||
| README.md | ||
| template.typ | ||
115-Book
My book for the year 115.
Digital readable versions can be downloaded from the Releases page.
The title in the book is subject to change, hence the repository name.
Compilation
Pre-requisites (PDF and HTML): Typst (I recommend installing via your operating system's package manager to keep Typst up-to-date and prevent possible system conflicts, unless you are using an operating system with ancient packages)
PDF: typst compile main.typ output.pdf where output.pdf can be any name as long as the .pdf extension is at the end.
HTML: typst compile -f html --features html main.typ output.html where output.html can be any name as long as the .html extension is at the end.
Pre-requisites (EPUB): Pandoc, Sigil, Calibre (Just like above, I recommend using your operating system's package manager to keep these up-to-date)
EPUB: Typst does not currently support EPUB output, thus, a manual editing process must be used with multiple tools to achieve desired output.
pandoc --from typst --to epub3 --toc-depth 1 --output book.epub main.typwhere book.epub can be any name as long as the .epub extension is at the end.- Open in Sigil and fix metadata and formatting and save. This part is manual at the moment due to Typst not supporting EPUB output.
- Import book into Calibre and double-check that the metadata shows up accordingly. Convert book to desired e-book output (such as MOBI, KEPUB or FB2) if .epub is not the desired output, otherwise this step can be skipped.