poster icon indicating copy to clipboard operation
poster copied to clipboard

unequal sign(≠) in LaTeX painting incorrectly

Open cindywu opened this issue 5 years ago • 1 comments

To reproduce use $\neq$ in editor.

Jelly 2021-01-16 19-37-01

cindywu avatar Jan 17 '21 05:01 cindywu

The temporary solution is to use \mathrel{\char`≠}

KaTeX doesn't really support font overriding, I'm afraid. I'm not sure if it's currently possible to override just numbers and letters and avoid overriding symbols, but that's the behavior you'd want...

You could also try redefining the behavior of \neq to instead do \mathrel{\char`≠} which produces a literal not-equal character which should work in other fonts. You can do this easily via the macros functionality, or via a \def.

https://github.com/KaTeX/KaTeX/issues/2109#issuecomment-538369554

Example post on jellypbc.com https://jellypbc.com/posts/bnrweg-the-marriage-problem-2

cindywu avatar Jan 17 '21 05:01 cindywu