Is it possible to pass arguments to Typst CLI? #13674
-
DescriptionThe recent version 0.14 of Typst brings us many accessibility features. In particular, you can now apply the PDF/UA-1 standard to your PDF files for maximum accessibility. See: https://typst.app/blog/2025/accessible-pdf#more-checks-for-maximum-accessibility-compliance The problem is that this is not the default behavior and you have to specify it using I know that Quarto still uses Typst 0.13.x, but I assume it will be updated at some point, and I don't think it's currently possible to pass additional arguments to the Typst CLI when doing For now, my workaround is to render in Quarto with the “keep-typ: true” flag and then compile with typst cli. This works fine, but quickly becomes cumbersome when doing parameterized reports. To summarize:
Edit: If that helps, my "ideal" workflow would be either having environment variable(s) or be able to specify this in the yaml front matter like this: ---
format:
typst:
pdf-standard: ua1
--- |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The Quarto team is well aware of this (and not limited to Typst) thus why 1.8 includes the axe tool to check accessibility (https://quarto.org/docs/blog/posts/2025-10-13-1.8-release/#accessibility-checks-for-html).
No there is not for now. The only binary that has a way to pass flags is R: This being said, it's very likely that Quarto will add the flag by default.
The answer is the same as for every dependencies: no timeline, update at most once per release assuming no major breakage. |
Beta Was this translation helpful? Give feedback.
-
|
Passing argument to This is related to me about
yes you could render to |
Beta Was this translation helpful? Give feedback.
The Quarto team is well aware of this (and not limited to Typst) thus why 1.8 includes the axe tool to check accessibility (https://quarto.org/docs/blog/posts/2025-10-13-1.8-release/#accessibility-checks-for-html).
No there is not for now.
The only binary that has a way to pass flags is R:
QUARTO_KNITR_RSCRIPT_ARGS(https://prerelease.quarto.org/docs/advanced/environment-vars.html)This being said, it's very likely that Quarto will add …