-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"KaTeX parse error: Expected 'EOF', got '<bla>' at position 1" when input pure Chinese character(s) #895
Comments
@Lin-Buo-Ren awesome bug report. You can use CJK characters within |
I'm not sure as I'm not really acquainted with LaTeX and simply using it to write math equations in Markdown documents on GitBook, never used |
I know it is utf8 characters related... looked into sources of katex on font and there are only printable english chars maybe it is related to multy-byte-ness of non ascii chars PS. czech chars like "ěščřžýáíéťňůú" and theri capitalizated version"ĚŠČŘŽÝÁÍÉŤŇŮÚ" do not work also and utf-8 emoji also not work 😭.....only sotlution is ( if input box is utf-8) do utf 8 filter if it thinking it is procesing ascii) it can look like this ( is not corect im writing in hurry) //will return nuber of bytes that needs to be discarded) |
To be clear, |
FYI, PR #992 adds support for CJK characters in math mode. We're still resolving some accent-related issues there. If they don't get resolved soon (or the PR gets rejected), I could split off the CJK-in-math-mode part into a separate PR. |
It looks like #992 was merged, but without the math mode CJK support; what's the status of this? |
The issue can still be reproduced via the instructions atop, I guess #992 isn't enables it ATM |
The status is issue #1046, which needs discussion before change. I'd appreciate your input on that -- is there a way to get this to work in LaTeX? |
I actually haven't used xelatex myself unfortunately--I came across the Zulip issue while investigating something related (which was fixed already in another Unicode-related KaTeX PR). |
I'm going to close this as a duplicate of #1046. |
* When `unicodeTextInMathMode` is `true`, accented letters from `unicodeSymbols.js`, and CJK and other supported languages, get added support in math mode (as requested in KaTeX#895). * When `unicodeTextInMathMode` is `false, all of these stop working in math mode, and are only supported in text mode (matching XeTeX behavior). Note that this is a backwards incompatibility with some 0.9.0 alpha/betas.
* unicodeTextInMathMode setting * When `unicodeTextInMathMode` is `true`, accented letters from `unicodeSymbols.js`, and CJK and other supported languages, get added support in math mode (as requested in #895). * When `unicodeTextInMathMode` is `false, all of these stop working in math mode, and are only supported in text mode (matching XeTeX behavior). Note that this is a backwards incompatibility with some 0.9.0 alpha/betas. * Fix handling of Unicode characters ð, Å, å * Fix double handling of ð (math maps to \eth, not special Unicode character) * Remove Åå special math handling, thanks to #1125 * Forbid extraLatin when unicodeTextInMathMode is false
I have same problem,how to solve?change text content?no I don't want to do that |
@tanjhysj0 On the master branch, you can set the |
control case:
Bug Reproducing Instructions
Expected Behavior
"測試" printed in "See how it renders with KaTeX: " field, presumably to be in italic just as any regular text
Current Behavior
The "See how it renders with KaTeX: " field spews out the following error:
The text was updated successfully, but these errors were encountered: