-
-
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
Add latin-1 letters as math symbols #796
Add latin-1 letters as math symbols #796
Conversation
CLA signature looks good 👍 |
I can't tell, is that Computer Modern in your screenshot? Not sure if our fonts support these chars. |
Oh noes... we aren't using CM for latin-1 chars inside |
Given that KaTeX already supports math-mode accents, we should be able to macro each Latin-1 Unicode character in math mode to the corresponding accent command (ideally with a loop over the characters and a call to some Unicode splitting). To fix Latin-1 characters in text mode, we should first do #638 (text-mode accent functions). Then we can follow the above approach. |
@edemaine can a macro be defined for something without a leading |
I've added a project to track work relating to latin-1 support. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Normally I'd ask for screenshots, but I don't think they add much value in this case since we don't have the right fonts yet.
@kevinbarabash No, macros currently need to start with |
Moving discussion to #801 |
Currently katex throws an EOF parse error when receiving an input of latin-1 letters that is not inside a
\text{}
clause. To prevent this the latin-1 letters are added as math-symbols as well.