/usr/lib/python2.7/dist-packages/sagenb/data/sage/js/mathjax_sage.js is in python-sagenb 1.0.1+ds1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | MathJax.Hub.Config({
// Need jsMath2jax so that worksheets with div/span class "math" elements still render correctly
// This is important for backwards compatibility (notably Rob Beezer's books)
extensions: ["jsMath2jax.js"],
tex2jax: {
inlineMath: [['$','$'],['\\(','\\)']],
processEscapes: true,
// "cell_input_print" because those are input cells in published worksheets
// "math" so that the tex2jax plugin leaves the spans/divs with class math alone
// (since jsMath2jax will take care of it); if we don't, then tex2jax and jsMath2jax conflict.
// See https://groups.google.com/forum/?fromgroups=#!topic/mathjax-users/qzWdxiQvNrw
ignoreClass: 'cell_input_print|math'
},
styles: {
".MathJax .mo, .MathJax .mi": {
color: "inherit ! important"
}
},
MathMenu: {showFontMenu: true},
"HTML-CSS": {
imageFont: null,
availableFonts: ["TeX"]
},
TeX: {
Macros: {
{{ theme_mathjax_macros|join(',\n') }}
},
// the following makes \color in MathJax compatible with the \color
// command from LaTeX
extensions: ["color.js"]
},
});
// This path is a little funny because we have to load our local
// config file as '../../dynamic/mathjax_sage' when we load MathJax
MathJax.Ajax.loadComplete("[MathJax]/config/../../dynamic/mathjax_sage.js")
|