Skip to content

Export with Typst

Typst supports SVG formats.

  1. Make your SVG visualization

    python examples/pi_prob.py
    

    Expected output

  2. Create a typst file document.typ

    #figure(
        image("pi.svg"),
        caption: [Random points to estimate the value of $pi$],
    )
    
  3. Compile the document

    typst compile document.typ
    
  4. Open document.pdf