Skip to content
Talk to an engineerRequest access

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.

  • Arabic notation: the right-to-left conventions, arabicOperatorNames and 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.
  • tikzcd options: shorten, start anchor/end anchor, sloped, xshift/yshift, baseline= and line widths are kept for toLatex but not applied; squiggly arrows are drawn straight; named cells (|[alias=…]|, from=name) and xcolor mixes in arrow colours are not supported.
  • bussproofs: \DisplayProof outside prooftree is not supported; \kernHyps, \insertBetweenHyps and the …AlignProof commands are read and ignored.
  • TeX spacing parameters: only \, \: \; \! follow \thinmuskip, \medmuskip and \thickmuskip; the automatic spacing between atoms keeps its fixed values.
  • TeX internals: \catcode, \mathcode and \extracolsep are read and ignored; \aftergroup drops its token; \hbox spread and \hfilneg are not applied; \settowidth estimates about 0.5 em per character.
  • siunitx options listed in SiOptions’ doc comment are ignored (table-*, font and mode keys, allow-*-breaks, prefix-mode, most input-*…).
  • Package details read and ignored: the rule and height options of \overbracket, \empheqset, \bbox padding, \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: cvar and VVAR are not applied.
  • 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.