- Download Sublime Text (portable version)
- Download Typst (typically:
typst-x86_64-pc-windows-msvc.zip
file) - Unzip both into, say, a
misc
folder. An example of executable file path:C:\Users\ckun\misc\st C:\Users\ckun\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:Replace{ "shell_cmd" : "typst compile \"$file_name\"", "selector" : "source.typ", "path" : "C:\\Users\\ckun\misc\\typst;$path", "working_dir" : "$file_path" }
ckun
with your username on Windows in steps 3 and 4 (above) - 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
Ctrl
+B
to produce a PDF file
Last active
November 2, 2024 04:04
-
-
Save ckunte/1280d7228068b9226286c8d8d68bdd5d to your computer and use it in GitHub Desktop.
Sublime Text + Typst setup for Windows
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment