Skip to content

Commit b5357fa

Browse files
committed
Build with mathjax 3.2.0
Newer mathjax has problem with batch mode
1 parent 5b32a4b commit b5357fa

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

build/jsroot.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const version_id = 'dev',
1212

1313
/** @summary version date
1414
* @desc Release date in format day/month/year like '14/04/2022' */
15-
version_date = '11/09/2025',
15+
version_date = '16/09/2025',
1616

1717
/** @summary version id and date
1818
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -10843,7 +10843,8 @@ async function loadMathjax() {
1084310843
displayIndent: '0', // default for indentshift when set to 'auto'
1084410844
fontCache: 'local', // or 'global' or 'none'
1084510845
localID: null, // ID to use for local font cache (for single equation processing)
10846-
blacker: 3 // the stroke-width to use for SVG character paths
10846+
internalSpeechTitles: true, // insert <title> tags with speech content
10847+
titleID: 0 // initial id number to use for aria-labeledby titles
1084710848
};
1084810849

1084910850
if (!isNodeJs()) {
@@ -10868,12 +10869,12 @@ async function loadMathjax() {
1086810869
}
1086910870
};
1087010871

10871-
let mj_dir = '../mathjax/4.0.0';
10872+
let mj_dir = '../mathjax/3.2.0';
1087210873
if (browser.webwindow && exports.source_dir.indexOf('https://root.cern/js') < 0 && exports.source_dir.indexOf('https://jsroot.gsi.de') < 0)
1087310874
mj_dir = 'mathjax';
1087410875

10875-
return loadScript(exports.source_dir + mj_dir + '/tex-svg.js')
10876-
.catch(() => loadScript('https://cdn.jsdelivr.net/npm/mathjax@4/tex-svg.js'))
10876+
return loadScript(exports.source_dir + mj_dir + '/es5/tex-svg.js')
10877+
.catch(() => loadScript('https://cdn.jsdelivr.net/npm/mathjax@3.2.0/es5/tex-svg.js'))
1087710878
.then(() => promise);
1087810879
}
1087910880

@@ -11292,7 +11293,7 @@ function applyAttributesToMathJax(painter, mj_node, svg, arg, font_size, svg_fac
1129211293
* @private */
1129311294
async function produceMathjax(painter, mj_node, arg) {
1129411295
const mtext = translateMath(arg.text, arg.latex, arg.color, painter),
11295-
options = { em: arg.font.size, ex: arg.font.size/2, family: arg.font.name, scale: 1, containerWidth: -1 };
11296+
options = { em: arg.font.size, ex: arg.font.size/2, family: arg.font.name, scale: 1, containerWidth: -1, lineWidth: 100000 };
1129611297

1129711298
return loadMathjax()
1129811299
.then(mj => mj.tex2svgPromise(mtext, options))

changes.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
1. Support reading TBranch from old ROOT files with custom streamers
1313
1. Upgrade three.js r174 -> r180
1414
1. Upgrade lil-gui.mjs 0.19.2 -> 0.20.0
15-
1. Upgrade mathjax 3.2.2 -> 4.0.0
1615
1. Use ES6 modules to implement geoworker, enable node.js usage
1716
1. Remove experimental RHist classes, deprecated in ROOT 6.38
1817
1. Internal - ws members are private, new methods has to be used

modules/core.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const version_id = 'dev',
44

55
/** @summary version date
66
* @desc Release date in format day/month/year like '14/04/2022' */
7-
version_date = '11/09/2025',
7+
version_date = '16/09/2025',
88

99
/** @summary version id and date
1010
* @desc Produced by concatenation of {@link version_id} and {@link version_date}

0 commit comments

Comments
 (0)