forked from agrbin/svgtex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·53 lines (52 loc) · 1.37 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
<!--
This file is loaded from main.js (phantomjs).
-->
<html>
<head>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
showProcessingMessages: false,
messageStyle: "none",
tex2jax: {
inlineMath: [["$", "$"], ["\\(", "\\)"]]
},
SVG: {
linebreaks: {
automatic: true,
width: "container"
}
}
});
</script>
<!--
To run with a local version of mathjax:
<script type="text/javascript"
src="mathjax/MathJax.js?config=TeX-AMS-MML_SVG">
</script>
-->
<!--
The latest version of MathJax that's deployed to the CDN has a bug that prevents
MathML from working in PhantomJS: https://github.com/mathjax/MathJax/issues/672
But, the latest .zip download has the fix. So, for now, it needs to be
deployed locally.
-->
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_SVG">
</script>
<script type="text/javascript" src="engine.js"></script>
</head>
<body>
<h1>svgtex bench file</h1>
<p>TeX equation:</p>
<div id="math-tex">${\frac{x}{2}}$</div>
<p>MathML equation:</p>
<div id="math-mml">
<math>
<mfrac>
<mi>y</mi>
<mn>2</mn>
</mfrac>
</math>
</div>
</body>
</html>