Sublime Text + Typst setup for Windows
-
Download Sublime Text (portable version)
-
Download Typst (typically:
typst-x86_64-pc-windows-msvc.zipfile) -
Unzip both into, say, a
miscfolder. An example of executable file path:C:\Users\%USERNAME%\misc\st C:\Users\%USERNAME%\misc\typst -
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" } -
Install Package Control in Sublime Text
-
Install Typst package in Sublime Text
-
Install typst-snippets-st in Sublime Text
-
Open a Typst document (or project) in Sublime Text, select Tools → Build system → Typst-win and hit
ctr+bto produce a PDF file