From 447be67f78395ba81932981264675cd4441cd698 Mon Sep 17 00:00:00 2001 From: Mathias Jakobsen Date: Mon, 28 Apr 2025 13:28:29 +0100 Subject: [PATCH] Merge pull request #25118 from overleaf/mj-coloneq [web] Redefine coloneq to coloneqq in mathjax GitOrigin-RevId: 1797acff022d45e89bcec518905cf53cbc45825e --- services/web/frontend/js/features/mathjax/load-mathjax.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/web/frontend/js/features/mathjax/load-mathjax.ts b/services/web/frontend/js/features/mathjax/load-mathjax.ts index 0d9153ba56..c80d8a3d85 100644 --- a/services/web/frontend/js/features/mathjax/load-mathjax.ts +++ b/services/web/frontend/js/features/mathjax/load-mathjax.ts @@ -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: [