mystmd
mystmd copied to clipboard
Missing math symbols when converting to `typst`
Missing math symbols when converting to typst. So far I got errors for \dfrac, \argmin.
Is there a way to solve those?
Maybe a way to inject custom operators in typst and map their latex equivalent.
Command: myst build --typst
Error:
error: unknown variable: argmin
┌─ _build/temp/mysthoqIfs/my-document-mestimator.typ:30:31
│
30 │ $ T = T_n (x_1, dots.h, x_n) = argmin_(bold(t) in Tau) sum_(i = 1)^n rho (epsilon_i) $
│ ^^^^^^
│
= hint: if you meant to display multiple letters as is, try adding spaces between each letter: `a r g m i n`
= hint: or if you meant to display this as text, try placing it in quotes: `"argmin"`
help: error occurred while importing this module
┌─ _build/temp/mysthoqIfs/my-document.typ:70:9
│
70 │ #include "my-document-mestimator.typ"
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Aditional non braking problem:
⛔️ Unhandled Typst conversion for node of "glossary"
myst.yaml:
#...
project:
exports:
- format: typst
template: lapreprint-typst
output: exports/my-document.pdf
Versions
❯ myst --version
v1.6.0
❯ typst --version
typst 0.13.1 (8ace67d9)
And also, a few questions:
- Is there a way to covnert only to typst, and not pdf?
- Is there a way to convert from typst back to myst flavored md?