Open njericha opened 3 months ago
I want to add that typst
incorrectly handles subscripting of norms.
---
format: typst
---
Here is the $2$-norm of a vector: $\lVert v \rVert_2$
This is the rendered output using the format typst
It should look like this (rendered with html
)
I want to add that
typst
incorrectly handles subscripting of norms.--- format: typst --- Here is the $2$-norm of a vector: $\lVert v \rVert_2$
This is the rendered output using the format
typst
It should look like this (rendered with
html
)
That's not a Quarto issue. Please report to Typst: https://github.com/typst/typst
index.typ
Here is the $2$-norm of a vector: $parallel v parallel_2$
typst compile index.typ
Maths are handled by Pandoc.
You can see that the math produced is not the correct one for Typst (https://typst.app/docs/reference/math/lr) using keep-typ: true
and investigating the typ file.
Docx system is not that simple.
This is a Pandoc issue.
Looks like it was strictly a texmath bug which should now be fixed, so I am happy to close this issue once the change is reflected downstream to Pandoc and subsequently Quarto.
Bug description
typst
anddocx
cause\Vert
to be rendered with too much space. This does not happen with the formatshtml
orpdf
which produce the correct output. This issue does not happen with other delimiters likefloor
andceil
.\vert
is rendered correctly withdocx
(and the other formats), but not withtypst
.\vert
and\Vert
are not expanded to their full size when using\left
and\right
intypst
, but is correct withhtml
,pdf
, anddocx
.typst
also seams to automatically enlarge other delimiters likefloor
even when\left
and\right
is not given. This may be the intended behavior for typst and I don't think anyone would complain about this, but I am pointing out that it is at least inconsistent with the other 3 formats.Steps to reproduce
Expected behavior
I expect all four formats to produce the same visual output.
With the format
typst
, correct spacing and height can be achieved with the raw code within Quarto: