-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnemeth-2d-lab.html
More file actions
68 lines (67 loc) · 2.6 KB
/
nemeth-2d-lab.html
File metadata and controls
68 lines (67 loc) · 2.6 KB
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
<!-- Copyright (c) 2016 The MathJax Consortium -->
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html lang="en"/>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Semantic Tree Visualisation</title>
<link type="text/css" rel="stylesheet" href="styles/style.css"/>
<script type="text/javascript" src="node_modules/d3/dist/d3.min.js"></script>
<link type="text/css" rel="stylesheet" href="styles/tree.css"/>
<script type="text/javascript" src="lib/visualise.js"></script>
<script type="text/javascript">
streeVis.config.nemeth = true;
</script>
<script>
SREfeature = {json: "./node_modules/speech-rule-engine/lib/mathmaps"}
</script>
<script src="node_modules/speech-rule-engine/lib/sre.js"></script>
<script>
MathJax = {
paths: {"[sre]": "./node_modules/speech-rule-engine/lib/mathmaps"},
loader: {load: ['[tex]/cases', '[tex]/empheq', '[tex]/mathtools']},
tex: {packages: {'[+]': ['cases', 'empheq', 'mathtools']}}
};
</script>
<script id="MathJax-script" async src="node_modules/mathjax/es5/tex-mml-chtml.js"></script>
</head>
<body>
<header>
<div id="layout">
<div id="main">
<textarea id="input" rows="7" cols="35" style="font-size:120%" aria-label="Formula input"></textarea>
</div>
<div id="controls">
<div class="controls" id="rendering-controls">
<div class="header"><span>Rendering</span></div>
<div>
<input id="translate" type="button" value="LaTeX (Display)" onclick="streeVis.translateTex(true)"></input>
</div>
<div>
<input id="translate" type="button" value="LaTeX (Inline)" onclick="streeVis.translateTex(false)"></input>
</div>
<div>
<input id="translate" type="button" value="MathML (MathJax)" onclick="streeVis.translateMathML()"></input>
</div>
<div>
<input id="translate" type="button" value="MathML (direct)" onclick="streeVis.translateSRE()"></input>
</div>
<div id="buttons">
<div>
<select id="break" aria-label="Break Value" onchange="streeVis.displayNemeth()">
<option>0</option>
</select>
</div>
<div>
<input id="keep" type="button" value="Keep" onclick="streeVis.keepNemeth()"></input>
</div>
</div>
</div>
</div>
</header>
<hr/>
<section id="body"></section>
<script type="text/javascript">
streeVis.nemeth();
</script>
</body>
</html>