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

Wrong rendering output for \coloneq operator #2574

Open
Flydroid opened this issue Jan 1, 2025 · 1 comment
Open

Wrong rendering output for \coloneq operator #2574

Flydroid opened this issue Jan 1, 2025 · 1 comment
Assignees
Labels

Comments

@Flydroid
Copy link
Contributor

Flydroid commented Jan 1, 2025

Description

I noticed that the \coloneq operator gets rendered differently than its input := .
To showcase the issue it was necessary to show images of latex renders.

Steps to Reproduce

Enter: x:=5

Actual Behavior

Which results in latex $$ x\coloneq5 $$ and the redering is:
image

Expected Behavior

The input results in the same latex but the rendering should be:
image
in accordance to the mathtool package: https://ftpmirror1.infania.net/mirror/CTAN/macros/latex/contrib/mathtools/mathtools.pdf

Environment

Mathlive version: 0.103.0 on https://cortexjs.io/mathlive/demo/

Solution

I think I can provide a pull request with a fix, but would require some guides.
The \coloneq operator is defined here:

coloneq: '{\\mathop{\\char"3A\\char"2212}}',

The mathtool packages now shows \coloneqq as a legacy.
It would propose to change the line 301 to the same as for \coloneqq:
coloneq: '{\\mathop{\\char"2254}}', // ≔
Not sure though if more of the mathtool package code should be updated.

@arnog
Copy link
Owner

arnog commented Jan 2, 2025

Yep, you got the fix. Worth also looking at p. 31 of the mathtools package to double check other changes and make the definitions in MathLive are consistent.

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

No branches or pull requests

2 participants