KaTeX: \not (and \neq) broken in ~~Chrome 72~~ Safari

$\neq$ or $\not =$ doesn’t work correctly. Please take a look into the documentation too.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 9
  • Comments: 32 (16 by maintainers)

Commits related to this issue

Most upvoted comments

This is ridiculous. First Safari can’t handle negative advance so we get rid of it and then Chrome decides to add negative advance to combining characters that don’t have it. 😞

@edemaine thanks for coming up with a fix for this. 🙂

FWIW, a colleague suggested a workaround which appears to work on Safari with 0.10.1: use \cancel= instead of \neq. Granted the display is different for these two commands, but maybe others will find this is a useful workaround until the issue is fixed.

v0.10.1 is released, which includes a hotfix to this bug!

I’ve published 0.10.2 with a fix for this on Safari. Screen Shot 2019-05-12 at 11 07 25 PM

For those in a rush to deploy this fix (as I was) and using KaTeX via npm, you can use

npm install https://github.com/edemaine/KaTeX/tarball/fixnot-dist

to get a release with this bug fixed – but also with potentially dangerous unprotected \includegraphics support, so beware!

I’m having the same issue with Chrome 72.0.3626.109 on my Mac and also Chrome 72.0.3626.105 on Android. Freakin’ hell.

https://github.com/KaTeX/katex-fonts/pull/58 is (most of) a fix to this bug.