-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
32 lines (29 loc) · 1.12 KB
/
test.html
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
<!DOCTYPE html>
<html>
<script>
MathJax = {
loader: {
load: ['[custom]/siunitx.js', '[tex]/gensymb', "[tex]/html","[tex]/color",], //gensymb is required for \degree and \ohm
paths: { custom: '.' }
},
tex: {
packages: { '[+]': ['siunitx', 'gensymb', 'html', "color"] }, //gensymb is required for \degree and \ohm
inlineMath: { '[+]': [['$', '$']] }
/* global options go here, see IOptions in options.ts for properties */
// Uncomment example below:
// perMode: 'fraction'
}
};
</script>
<!-- es5 version -->
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js">
</script>
<body>
$$\sisetup{per-mode=power}$$
$$\qtyrange{-729}{659}{\per\cm}$$ <!-- Math input error -->
$$\qtyrange{-729}{659}{\watt\per\gram}$$ <!-- Math input error -->
$$\qty{-729}{\watt\per\gram}$$ <!-- works (sanity check) -->
$$\qtyrange{-729}{659}{\cm}$$ <!-- works -->
$$\qtyrange{200}{400}{\degreeCelsius}$$ <!-- works -->
</body>
</html>