Skip to content

Commit b0772dd

Browse files
committed
include SVG mathjax output
we now ship all mathjax output formats We still strip down to a single font (STIX-Web)
1 parent bb6368a commit b0772dd

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

notebook/static/notebook/js/mathjaxutils.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@ define([
3030
linebreaks: { automatic: true }
3131
},
3232
});
33-
MathJax.Hub.Register.StartupHook("MathMenu Ready", function () {
34-
var renderers = MathJax.Menu.menu.Find("Math Settings").submenu.Find("Math Renderer").submenu;
35-
// disable SVG output, which we don't ship
36-
renderers.Find("SVG").disabled = true;
37-
});
3833
MathJax.Hub.Configured();
3934
} else if (window.mathjax_url !== "") {
4035
// Don't have MathJax, but should. Show dialog.

setupbase.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ def find_package_data():
165165

166166
if os.path.exists(mj_out):
167167
for output in os.listdir(mj_out):
168-
if output == 'SVG':
169-
# strip SVG output
170-
continue
171168
path = pjoin(mj_out, output)
172169
static_data.append(pjoin(path, '*.js'))
173170
autoload = pjoin(path, 'autoload')
@@ -180,6 +177,7 @@ def find_package_data():
180177
mj('extensions'),
181178
mj('jax', 'input', 'TeX'),
182179
mj('jax', 'output', 'HTML-CSS', 'fonts', 'STIX-Web'),
180+
mj('jax', 'output', 'SVG', 'fonts', 'STIX-Web'),
183181
]:
184182
for parent, dirs, files in os.walk(tree):
185183
for f in files:

0 commit comments

Comments
 (0)