My book for the year 115 https://hanakiri.xyz/
Find a file
2026-05-10 12:31:52 +08:00
chapters Fleshed out the part names and orders of the book 2026-05-10 12:31:52 +08:00
.gitignore Added kepub files and MacOS DS_Store files to list of ignored formats 2026-05-10 09:56:28 +08:00
LICENSE Initial commit 2026-05-09 23:07:16 +08:00
links.typ 115-05-09 daily work setting up main project structure and book template. No real writing has been done 2026-05-10 00:18:18 +08:00
main.typ Fleshed out the part names and orders of the book 2026-05-10 12:31:52 +08:00
README.md Updated README.md to include current recommended e-book compilation instructions (subject to change in the case of official Typst support for EPUB output or a cleaner, less involved, method being found) 2026-05-10 09:57:29 +08:00
template.typ 115-05-09 daily work setting up main project structure and book template. No real writing has been done 2026-05-10 00:18:18 +08:00

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.

  1. pandoc --from typst --to epub3 --toc-depth 1 --output book.epub main.typ where book.epub can be any name as long as the .epub extension is at the end.
  2. Open in Sigil and fix metadata and formatting and save. This part is manual at the moment due to Typst not supporting EPUB output.
  3. 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.