From 5aba3b824c898e0b9015899e8e94f0b216f3aef8 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Wed, 3 Jun 2020 12:25:59 +0200 Subject: [PATCH] MathJax: Support for \gdef (#4407) Backport of https://github.com/jupyterlab/jupyterlab/pull/5997 --- notebook/static/notebook/js/mathjaxutils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/notebook/static/notebook/js/mathjaxutils.js b/notebook/static/notebook/js/mathjaxutils.js index b6307b888..296f15e27 100644 --- a/notebook/static/notebook/js/mathjaxutils.js +++ b/notebook/static/notebook/js/mathjaxutils.js @@ -19,6 +19,9 @@ define([ processEscapes: true, processEnvironments: true }, + TeX: { + extensions: ['newcommand.js', 'begingroup.js'] // For \gdef + }, MathML: { extensions: ['content-mathml.js'] },