How to enable Typst rendering of math #11368
-
DescriptionCurrently, math content inside |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
What do you mean by this ? Example from #6560 is ---
format: typst
keep-typ: true
---
## Math
For more information, see @eq-proof.
$$
\frac{1}{2} \equiv 1 \div 2
$$ {#eq-proof} and renders to this typst #math.equation(block: true, numbering: "(1)", [ $ 1 / 2 equiv 1 div 2 $ ])<eq-proof> This is Typst code than it written by Pandoc (for the equation part) and Quarto (for the reference label part on the block). It uses the dedicated equation syntax: https://typst.app/docs/reference/math/equation/#syntax
Can you share an example on what you are referring too ? What is not working ? Or how you think this is working ? Note that Pandoc conversion is involved when not using Raw content, and the common math syntax for Pandoc's Markdown is using Related: There was a question once about using |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Yes this is how Math work in Pandoc. More at https://pandoc.org/MANUAL.html#math
If you want to write raw typst, then you need raw block as you already do.
You could also catched the math in a lua filter, and do output it as a raw block directly.