Direct unicode input of the most common subscripts and superscripts #3631
universemaster
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
The unicode math package for latex does seem to implement this idea (never used it myself). See the comments in the source at unicode math for some implementation details. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
KaTeX supports direct unicode input of many characters which makes sources files much more readable.
For example, this means our source code is not littered with
\lambda
but instead our source simply containsλ
.Unicode has a superscripts and superscripts block with support for the most commonly used superscripts and subscripts.
However, KaTeX does not treat these characters in any special way. For example, entering
x²
is not equivalent tox^2
orx^{2}
. And similarlya₀
is not equivalent toa_0
ora_{0}
.KaTeX has a strict mode - which can disable 'features that make writing LaTeX convenient but are not actually supported by (Xe)LaTeX'.
Is there a reason KaTeX cannot or should not interpret say,
x²
as equivalent tox^2
andx^{2}
in non-strict mode - and similarly for all subscript and superscripts available in unicode?Beta Was this translation helpful? Give feedback.
All reactions