How to check if in development version?

Hi, sometimes I compile documents using the development version because if fixes some problems in pdf output, while still writing and previewing with current stable version. So I would like some fragments of code to be conditional on the version. Thing is that sys.version reports the same version for both and I don’t know where to look for the patch/revision, if available at all. Thanks!

Hello!
The reason why sys.version reports the same version for both is because the compilation was done without modifying the version in Cargo.toml. You can re-compile after changing that, or use a condition on a sys.inputs. See Can I configure my document (e.g. draft/release version, color theme) when creating a PDF without modifying the Typst file directly?

1 Like