Typst Editor: A local, offline desktop-style editor for Typst, built for maths/physics writing

Hello everyone. I have build one offline editor for Typst, it is heavily effected by overleaf and it’s open-source. Feel free to give it a try. Also as a physics student, I have added things so that you can use mathematica, python and Julia if you have them in the system.

Features : https://youtu.be/77Ddg3bAP8s?si=h4i2TRH7STfdvDLz

GitHub: GitHub - aburousan/typsteditor: Offline, local editor for Typst — live PDF preview, physics/math tooling, live Python/Julia/Wolfram, and a desktop app. · GitHub

Live PDF preview with auto-recompile, zoom / fit-to-width, and double-click a word to jump to it in the source. Editor: Typst syntax highlighting , completions, cross-reference autocomplete, word count, file tree (create files & folders, upload images), outline, a clickable Problems panel, alignment shortcuts, and resizable panes.

Insert menu (grouped submenus): title block / author / institute / abstract, headings, inline / block / aligned / numbered equations, matrices, a math & physics symbol picker (physica), bullet & numbered lists, figures, images, tables, 2D/3D plots, code blocks, links, cross-references and labels — most with a center on page option.

Numbering on by default; toggle it on the heading/equation under the cursor with ⌘⇧N. Plots: 2D via cetz + cetz-plot, 3D surfaces via cetz (pure Typst) or Python/matplotlib.

Run code → insert result (Insert → Compute): Python, Julia or Wolfram. Insert the text output, a generated figure, or — in Equation mode — write plain maths (e.g. D[Sin[x^2], x]) and get a typeset equation automatically (LaTeX via mitex). Templates from Typst Universe with a rendered preview.

Import data (CSV / JSON / YAML / TOML) — Insert → Import Data drops the file in and wires up the matching Typst reader.
live-preview
template-preview

3 Likes

Does it (happen to) have support for RTL languages?

No… Hilbert supports RTL document rendering through Typst if a suitable font is available. But the source editor and application interface are currently LTR-oriented only.

1 Like

Thank you for this offline editor. I have a question though, since I use Tinymist in VScode and the preview is near instant. This is not the case with Hilbert and I have to admit that it is surprising. Is it possible to enable instant preview just like the Typst webapp or Tinymist ?

Yes actually I have optimised it further will release in future update. Currently the issue is it checks for inline code to compile and also the spelling check is making it slow. I will add some way to bypass it. Atleast for now there is slight delay :smiling_face_with_tear:. Really sorry about that.

Don’t apologize for this. It just a “bad” habit we have with Typst :wink:.

1 Like

Thank you. I will update the app(if you have the app installed it should auto install) with improvements soon (although it is still doesn’t feel like vs-code but still should be better than current version). Once I updated, I will let you know here.

1 Like

I have updated and released the new version. Let me know how it goes? and also if there is any bug also feel free to tell