Open eniraa opened 4 months ago
Hello! As of now, wypst only support b
and t
. I plan to expand on this on the near future; for now the idea was to implement a minimal working setup for Attach that works in most simple cases.
By the way, this on my top list of TODO things, so maybe this week or the next I'll have it fixed.
Sounds good. Good luck on your exams, by the way!
In case you needed it, this command seems to function in the same way as Typst's attach function.
\newcommand{\attach}[7]{
\prescript{#4}{#5}{\vphantom{#1}}
\overset{#2}{\underset{#3}{#1}}
\vphantom{#1}^{#6}_{#7}
}
It seems prescript doesn't work in KaTeX; it's probably not possible to fix this without some arcane syntax.
You can do something like this
\newcommand{\attach}[7]{
\vphantom{#1}^{#4}_{#5}\underset{#3}{\overset{#2}{#1}}\vphantom{#1}^{#6}_{#7}
}
When rendering the example from Typst documentation, Wypst seems to treat
t
astr
andb
asbr
. Moreover, nothing else is rendered.Typst:
LaTeX:
Outputs: