فهرست منبع

Merge pull request #25118 from overleaf/mj-coloneq

[web] Redefine coloneq to coloneqq in mathjax

GitOrigin-RevId: 1797acff022d45e89bcec518905cf53cbc45825e
Mathias Jakobsen 1 سال پیش
والد
کامیت
447be67f78
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      services/web/frontend/js/features/mathjax/load-mathjax.ts

+ 4 - 0
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: [