How do I set the typst version to render my document?

Is it possible to set which version of typst is used to render my .typ files?

I am working on a large project and discovered today that all of a sudden things are not rendering properly. A lot of text that shouldn’t be center-aligned is center-aligned. Other text runs off the bottom of the page and isn’t displayed anywhere.

I understand that typst recently got a major update. But if possible I would prefer not to use it until after I’m done my project (in a few months).

I have a half answer to my own question. I was using the extension Tinymist Typst on Visual Studio Code. But it seems that by switching back to (the now deprecated) “Typst Preview” v0.11.14 everything renders beautifully again.

I suppose then perhaps the issue is with Tinymist and not Typst?

Tinymist brings its own Typst compiler, currently 0.12. There have been some significant changes with Typst 0.12, that’s why your code doesn’t render correctly.

For example, you said there is center-aligned text that shouldn’t be. Is that perhaps because you use a theorem package? If so, please update to the latest version of the theorem package, where this is fixed.

In the end, you should probably update your document to work with the latest Typst compiler rather than just using an old Typst compiler.

(Also, if you use the webapp, you can easily choose via a dropdown menu which version of the compiler you want to use.)

1 Like

Unfortunately, because Tinymist is tightly integrated with Typst, Tinymist cannot support multiple Typst versions within a single release.
However, in VS Code, you can choose to install a specific version of Tinymist and temporarily disable automatic updates. I believe version 0.11.32 should work fine for your older document.

Thank you both!! I seem to only be able to mark one reply as “the solution” but it turns out that I needed both of your replies to fix the issues I was having.

1 Like