Sublime Text + Typst setup for Windows

  1. Download Sublime Text (portable version)

  2. Download Typst (typically: typst-x86_64-pc-windows-msvc.zip file)

  3. Unzip both into, say, a misc folder. An example of executable file path:

     C:\Users\%USERNAME%\misc\st
     C:\Users\%USERNAME%\misc\typst
    
  4. Write a custom build file for Sublime Text, Typst-win.sublime-build, with the following content in it, and park it under Preferences → Browse Packages → User:

     {   
     "shell_cmd" : "typst compile \"$file_name\"",
     "selector" : "source.typ",
     "path" : "C:\\Users\\%USERNAME%\\misc\\typst;$path",
     "working_dir" : "$file_path"
     }
    
  5. Install Package Control in Sublime Text

  6. Install Typst package in Sublime Text

  7. Install typst-snippets-st in Sublime Text

  8. Open a Typst document (or project) in Sublime Text, select Tools → Build system → Typst-win and hit ctr+b to produce a PDF file