Skip to content

Commit 103740b

Browse files
anigamovaAliya Nigamova
and
Aliya Nigamova
authored
Update the mathjax version to fix the \vec{} rendering in Safari (#919)
* update the mathjax version to fix shifted \vec{} * add spaces --------- Co-authored-by: Aliya Nigamova <aliyanigamova@eduroam-2946.desy.de>
1 parent ac4377a commit 103740b

File tree

3 files changed

+29
-8
lines changed

3 files changed

+29
-8
lines changed

docs/javascripts/mathjax.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
window.MathJax = {
2+
tex: {
3+
inlineMath: [["\\(", "\\)"]],
4+
displayMath: [["\\[", "\\]"]],
5+
processEscapes: true,
6+
processEnvironments: true
7+
},
8+
options: {
9+
ignoreHtmlClass: ".*|",
10+
processHtmlClass: "arithmatex"
11+
}
12+
};
13+
14+
document$.subscribe(() => {
15+
MathJax.startup.output.clearCache()
16+
MathJax.typesetClear()
17+
MathJax.texReset()
18+
MathJax.typesetPromise()
19+
})

docs/what_combine_does/model_and_likelihood.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ However, some constraints do exist, such as the requirement that bin contents be
295295
The auxiliary constraint terms implemented in combine are Gaussian, Poisson or Uniform:
296296

297297
$$
298-
p_{e} \propto \exp{\left(-0.5 \left(\frac{(\nu_{e} - y_{e})}{\sigma}\right)^2 \right)}\mathrm{;} \\
299-
p_{e} = \mathrm{Poiss}( \nu_{e}; y_{e} ) \mathrm{;\ or} \\
298+
p_{e} \propto \exp{\left(-0.5 \left(\frac{(\nu_{e} - y_{e})}{\sigma}\right)^2 \right)}\mathrm{;~} \\
299+
p_{e} = \mathrm{Poiss}( \nu_{e}; y_{e} ) \mathrm{;\ or~} \\
300300
p_{e} \propto \mathrm{constant\ (on\ some\ interval\ [a,b])}.
301301
$$
302302

mkdocs.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ extra_css:
5353
- "mystyle.css"
5454

5555
extra_javascript:
56-
- 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-MML-AM_CHTML'
56+
- javascripts/mathjax.js
57+
- https://polyfill.io/v3/polyfill.min.js?features=es6
58+
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
5759

5860
markdown_extensions:
59-
- pymdownx.arithmatex
60-
- pymdownx.details
61-
- pymdownx.blocks.details
62-
- admonition
63-
- footnotes
61+
- pymdownx.arithmatex:
62+
generic: true
63+
- pymdownx.details
64+
- pymdownx.blocks.details
65+
- admonition

0 commit comments

Comments
 (0)