From 44c3507d2c13d5d46fc547a56ff978ff26663366 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sun, 17 Feb 2019 13:38:14 +0100 Subject: [PATCH] MathJax: Support for \gdef 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 b6307b8888..296f15e27f 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'] },