Skip to content
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

Not equal sign rendering incorrectly. #138

Open
sirrommit opened this issue Jan 19, 2023 · 2 comments
Open

Not equal sign rendering incorrectly. #138

sirrommit opened this issue Jan 19, 2023 · 2 comments

Comments

@sirrommit
Copy link

Using the \ne, \neq, or even a unicode notequal symbol renders incorrectly in math mode (tested in Firefox and Safari on MacOS). The slash renders before the equal sign. In Firefox the slash is significantly before the equal sign and in Safari the slash is just before the equal sign.

On the latex.js.org/playground page, the slash renders as a non-existent symbol.

KaTeX has a known issue with mis-aligning the slash vertically in some situations, but this is mis-aligned horizontally. One possible solution would be to redefine the KaTeX macros along the lines of:

katex.render(
text,
element,
{
macros: {
'\neq': '\mathrel{\char`≠}',
},
},
)

As found at this page: KaTeX/KaTeX#2109

Thank you for this impressive work.

@michael-brade
Copy link
Owner

oh... I will try updating KaTeX first and then see what's going on.

@caroblank
Copy link

Hi Michael,
Thank you for your work.
Have you ever tried updating Katex? Unfortunately it still doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants