Skip to content

Not converting to typst math when equation label is included #7744

@jzelner

Description

@jzelner

Bug description

When I run this equation from qmd -> typst -> pdf, I get the expected behavior when omitting an equation label:

Here is the original TeX math in Quarto:

image

And this is the correctly generated typst math:

image

Now, re-adding the equation label (this compiles properly to PDF using xelatex and to HTML):

image

I get the raw TeX math in the typst intermediate document and it will not compile:

image

Steps to reproduce

$$
\begin{aligned}
\frac{dS_1}{dt} &= -\frac{\rho \beta S_1(c_{11} I_1 + c_{12} I_2)}{N} \
\frac{dS_2}{dt} &= -\frac{\beta S_2(c_{12} I_1 + c_{22} I_2)}{N} \
\frac{dI_1}{dt} &= \frac{ \rho \beta S_1(c_{11} I_1 + c_{12} I_2)}{N} - \gamma I_1 \
\frac{dI_2}{dt} &= \frac{\beta S_2(c_{12} I_1 + c_{22} I_2)}{N} - \gamma I_2 \
\frac{dR_1}{dt} &= \gamma I_1 \
\frac{dR_2}{dt} &= \gamma I_2
\end{aligned}
$$ {#eq-model}

Expected behavior

No response

Actual behavior

No response

Your environment

No response

Quarto check output

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtypst

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions