Typstit: Drag Typst formulas into Keynote and other apps

I make slides with Keynote on a Mac, but I want to typeset my formulas in Typst. The Typstit tool, which I released yesterday, helps me do this:

Write Typst code in the upper panel and click “Typeset”, and the compiled snippet will show up in the lower panel. You can then drag and drop it to any application that allows pasting in PDF (such as Keynote). LaTeX users may remember LaTeXit, which provided similar functionality.

The Typst source code is hidden in the generated PDF, so you can also copy Typstit-generated PDF and paste it back into Typstit, to continue editing the source code.

Typstit works on MacOS 13+. Give it a try and let me know what you think!

10 Likes

Having a small app to test out snippets of code locally before moving them into a large project will also be very helpful to the likes of me, a (long-retired) humanities person with no history of coding, but who finds Typst a great system for producing beautiful documents.

Thank you very much.

:slight_smile:
Mark

4 Likes

This is very interesting, @akoller. Too bad I no longer have a Mac to check this out.

1 Like

Hello! This is a great app! Thanks!

I have a feature request: allow editing in external editors. I have snippets that help me type formulas very fast but they can only be used inside neovim. A good way to implement this is perhaps to add an “import from file” functionality in Typstit, this way I can write to the file with any editor I want and then render with Typstit.

2 Likes

Happy to hear that you like it!

Would it be an option to simply copy and paste the snippets from the other application into Typstit? This is already possible.

If not, could you clarify the use case you have in mind that wouldn’t be better handled with typst watch?

Indeed, your suggestion is spot on, copy and paste is what I do now! And I’m pretty happy with this. I have a file scratch.typ in a convenient location for this purpose exactly, haha.