DocumenterTypst.jl

Fast, modern PDF generation for Julia documentation.

DocumenterTypst.jl is a Documenter.jl plugin that generates high-quality PDF documentation using the Typst typesetting system.

Why DocumenterTypst?

⚡ Lightning Fast

  • < 60 seconds to compile the full Julia documentation (vs several minutes with LaTeX)
  • Powered by Typst's incremental compilation engine

🎨 Beautiful Output

  • Modern, professional typography
  • Consistent styling across all platforms
  • High-quality PDF output optimized for both screen and print

🔧 Easy Setup

  • No LaTeX distribution required
  • Works out of the box with Typst_jll.jl
  • Cross-platform support (Linux, macOS, Windows)

🧮 Flexible Math Support

  • LaTeX math via mitex for backward compatibility
  • Native Typst math for new projects
  • Seamless integration with existing Documenter documentation

🎯 Production Ready

  • Built on stable Documenter internal APIs (same as DocumenterVitepress)
  • Comprehensive test coverage (133+ tests)
  • Active maintenance and community support

Quick Start

using Documenter
using DocumenterTypst

makedocs(
    sitename = "MyPackage",
    authors = "Your Name",
    format = DocumenterTypst.Typst(),
    pages = [
        "Home" => "index.md",
        "API" => "api.md",
    ]
)

This generates a professional PDF with table of contents, cross-references, syntax highlighting, and more.

Output: docs/build/MyPackage.pdf

See Getting Started for detailed instructions.

Features

FeatureStatus
Fast Compilation
LaTeX Math
Typst Math
Code Blocks
Tables
Images
Cross-References
Admonitions
Footnotes
Table of Contents
Custom Templates
Multi-page Docs

Comparison with LaTeX Backend

DocumenterTypstDocumenter (LaTeX)
Compilation Time< 60s (Julia docs)Several minutes
SetupZero-configRequires LaTeX distribution
File SizeCompactCompact
Output QualityHighHigh
Math SupportLaTeX + TypstLaTeX only
Error MessagesClear and helpfulSometimes cryptic
Incremental Builds✅ Fast❌ Slow

Documentation

Installation

using Pkg
Pkg.add("DocumenterTypst")

Community

Acknowledgments

DocumenterTypst.jl builds upon:

License

MIT License. See LICENSE for details.