Limitations
What val_latex does not do yet, does only partly, or has not had checked by a person.
Real gaps only. Behaviour chosen on purpose is in Differences from KaTeX. Found another? Open an issue at github.com/useval/val_latex.
Not yet checked by a person
Section titled “Not yet checked by a person”- Arabic notation: the right-to-left conventions,
arabicOperatorNamesand the use of Arabic-Indic digits have not been reviewed by an Arabic-reading mathematician. - Speech: part of the Arabic vocabulary is a draft, and Spanish, French, German, Portuguese, Bengali and Hindi are drafts throughout, not yet checked by a native reader of mathematics.
- Screen readers: semantics are tested in widget tests only, not yet with TalkBack or VoiceOver on a device.
Not supported yet
Section titled “Not supported yet”tikzcdoptions:shorten,start anchor/end anchor,sloped,xshift/yshift,baseline=and line widths are kept fortoLatexbut not applied;squigglyarrows are drawn straight; named cells (|[alias=…]|,from=name) and xcolor mixes in arrow colours are not supported.- bussproofs:
\DisplayProofoutsideprooftreeis not supported;\kernHyps,\insertBetweenHypsand the…AlignProofcommands are read and ignored. - TeX spacing parameters: only
\,\:\;\!follow\thinmuskip,\medmuskipand\thickmuskip; the automatic spacing between atoms keeps its fixed values. - TeX internals:
\catcode,\mathcodeand\extracolsepare read and ignored;\aftergroupdrops its token;\hbox spreadand\hfilnegare not applied;\settowidthestimates about 0.5 em per character. - siunitx options listed in
SiOptions’ doc comment are ignored (table-*, font and mode keys,allow-*-breaks,prefix-mode, mostinput-*…). - Package details read and ignored: the rule and height options of
\overbracket,\empheqset,\bboxpadding,\mhchemoptions,\cf’s optional argument. - Glyphs neither bundled font has: some code points of the math-related
Unicode blocks (Dingbats, archaic Greek and Coptic, some circles, squares,
stars and astrological signs),
\halfnote, esint’s\sqiint,\landupint,\landdownint, and mathabx symbols with no Unicode character. In Flutter, characters a formula’s fonts lack can still come from the platform’s fonts. - Hyphenation in justified text is American English only.
- Variable fonts:
cvarandVVARare not applied.
Approximations
Section titled “Approximations”- Size against KaTeX: heights and widths differ slightly per construct, because the default font is Latin Modern Math, not the KaTeX fonts.
- mhchem is written from its documented syntax, not ported; rare
constructs may differ.
\bond’s half bonds are short strokes. - Symbols drawn as paths (stmaryrd and wasysym symbols with no Unicode character, check marks, some arrows) have strokes of uniform width.
- diffcoeff glue keys take their natural width.
- Arabic Mathematical Alphabetic Symbols are drawn as their base letters.
- Text measured for line breaking (
MathText): a font fallback the measurement does not see can still make Flutter wrap a line. - Background layout (
layoutInBackground) measures\text{…}with the pure-Dart shaper, so text widths are estimates.