Replies: 2 comments 2 replies
-
|
What's the question? Reveal.js is HTML. If you want to include a figure, then generate that figure beforehand as there is no Typst engine at the moment. |
Beta Was this translation helpful? Give feedback.
-
|
This reminds me of the tikz code cell engine in knitr: https://github.com/yihui/knitr-examples/blob/master/058-engine-tikz.Rmd So you could leverage Knitr's custom engine: https://bookdown.org/yihui/rmarkdown-cookbook/custom-engine.html There is even in knitr an Though, maybe you don't need an engine and you could use R package typr: https://christophertkenny.com/typr/ Anyhow, this is quite specific questions and tricks and chatGPT won't know this, but if you read the docs linked you have some clues to create what you need I think. Those are alternatives to use Using Lua filter as mentioned is another options, which is not computation engine specific. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I want to add figures of quantum circuits generated from the typst Quil package
It would be best to have the typst code for each circuit in a separate file, and have Quarto call typst to generate the figures, which could be used by the presentation(s) (perhaps the directory of the circuits and the generated figures would be a shared directory/repository for collaboration)
I went back-and-forth with chatGPT, but it is still "almost".... I'd appreciate advice on best-practices for this
Beta Was this translation helpful? Give feedback.
All reactions