forked from agrbin/svgtex
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
70 lines (70 loc) · 2.04 KB
/
index.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!--
This file is loaded from main.js (phantomjs).
-->
<html>
<head>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "AssistiveMML.js"],
showProcessingMessages: false,
"AssistiveMML": {
disabled: false,
styles: {
".MJX_Assistive_MathML": {
position:"absolute!important",
clip: (MathJax.Hub.Browser.isMSIE && (document.documentMode||0) < 8 ?
"rect(1px 1px 1px 1px)" : "rect(1px, 1px, 1px, 1px)"),
padding: "1px 0 0 0!important",
border: "0!important",
height: "1px!important",
width: "1px!important",
overflow: "hidden!important",
display:"block!important"
}
}
},
TeX: {
extensions: ["autoload-all.js"],
Macros: {
euro: "\\unicode{x20AC}",
abs: ["{|#1|}", 1],
degree: ["{^\\circ}"],
longdiv: ["{\\enclose{longdiv}{#1}}", 1]
}
},
jax: ["input/TeX", "output/SVG"],
tex2jax: {
ignoreClass: "lrn_noMath|ignore_math",
processClass: "lrn|process_math",
inlineMath: [ ['$','$'], ['\\(', '\\)']],
displayMath: [ ['$$','$$'], ['\\[', '\\]'] ],
processEscapes: true
},
messageStyle: 'none',
showMathMenu: false,
menuSettings: {
inTabOrder: false
},
"SVG": {
scale: 100,
minScaleAdjust: 50,
blacker: 10,
EqnChunk: 50,
EqnChunkFactor: 1.5,
EqnChunkDelay: 100
},
"HTML-CSS": {
minScaleAdjust: 100,
matchFontHeight: false
}
});
</script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=default">
</script>
<script type="text/javascript" src="engine.js"></script>
</head>
<body>
<div id="math">${}$</div>
</body>
</html>