Is “\left…\right” not supported by mitex?
What’s a minimal example that reproduces your problem? The following works fine for me:
#import "@preview/mitex:0.2.4": *
#mitext(`\[ \left(\frac{a}{b}\right) \]`)
1 Like
Got it. I used:
#mi("\[ \left(\frac{a}{b}\right) \]")
It seems that “” works fine if there is no “\left…\right”.
With a string "..."
you need to escape the backslash characters, i.e. write \\
instead of \
, so it’s more convenient to write the Latex code in raw text `...`
1 Like
particularly, in \right
the \r
is recognized as a carriage return:
#"\[ \left(\frac{a}{b}\right) \]"
gives you
\[ \left(\frac{a}{b}
ight) \]
All other are unknown escapes, for which the original text (backslash and following character) are preserved, so it only really shows with \left
/\right
. Using raw text is the correct remedy.