Merge pull request #25118 from overleaf/mj-coloneq

[web] Redefine coloneq to coloneqq in mathjax

GitOrigin-RevId: 1797acff022d45e89bcec518905cf53cbc45825e
This commit is contained in:
Mathias Jakobsen
2025-04-28 13:28:29 +01:00
committed by Copybot
parent 5fec16153b
commit 447be67f78
@@ -30,6 +30,10 @@ export const loadMathJax = async (options?: {
// Implements support for the \bm command from the bm package. It bolds the argument in math mode.
// https://github.com/mathjax/MathJax/issues/1219#issuecomment-341059843
bm: ['\\boldsymbol{#1}', 1],
// MathJax 3 renders \coloneq as :- whereas the mathtools package
// renders it as :=. Here we override the \coloneq macro to produce
// the := symbol.
coloneq: '\\coloneqq',
},
inlineMath,
displayMath: [