-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
177 lines (151 loc) · 5.98 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<html>
<head>
<title>MITeX</title>
<!-- Load jQuery -->
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.4.2");
</script>
<!--script type="text/javascript" src="scripts/javascript/jquery.js"></script-->
<script type="text/javascript" src="scripts/javascript/query-templates.js"></script>
<script type="text/javascript" src="scripts/javascript/log.js"></script>
<!-- <script type="text/javascript" src="scripts/javascript/ckeditor/ckeditor.js"></script>-->
<script type="text/javascript" src="scripts/javascript/editarea/edit_area/edit_area_full.js"></script>
<script type="text/javascript" src="scripts/javascript/editarea.js"></script>
<script type="text/javascript" src="scripts/javascript/load-template.js"></script>
<script type="text/javascript" src="scripts/javascript/editor.js"></script>
<link rel="stylesheet" type="text/css" href="mitex.css" />
<link rel="SHORTCUT ICON" href="/favicon.ico"/>
<link rel="icon" type="image/vnd.microsoft.icon" href="/favicon.ico">
<script type="text/javascript" src="scripts/javascript/tiny_mce/plugins/asciimath/js/ASCIIMathMLwFallback.js"></script>
<script type="text/javascript">
var AMTcgiloc = this.location+"scripts/cgi-bin/mimetex.cgi";
</script>
<!-- TinyMCE -->
<script type="text/javascript" src="scripts/javascript/tiny_mce/tiny_mce.js"></script>
<!-- /TinyMCE -->
</head>
<body>
<a href="http://mitex.mit.edu" class="mitex">M<sup>I</sup>T<sub>E</sub>X</a>
<a href="http://sipb.mit.edu"><img src="sipb.png" class="headerright"></a>
<form id="compile" action="scripts/python/compile.py" method="post" target="_blank">
<div class="not-tex" id="top">
<h2 class="warning">
NOTE: THIS SERVICE IS STILL IN DEVELOPMENT. USE AT YOUR OWN RISK.
</h2>
<p>
This is MITeX, an online LaTeX composer. You can use a graphical interface,
or edit the source of the preamble and body.
</p>
<p>
Please select a LaTeX template:
<select id="templates" onchange="loadTemplateFile(this.value);" name="template">
<option value="none"></option>
</select>
</p>
<hr />
</div>
<div id="compile-log" class="not-tex">
<div id="log-div">
<b>Compile Log:</b>
<button type="button" id="check" disabled="true" onclick="get_log();">Refresh</button>
<span id="log-span">
<button type="button" id="close" onclick="close_log();">Close</button>
<br />
<textarea id="log" class="tex" cols="60" readonly="true">
</textarea>
</span>
</div>
</div>
<div class="not-tex">
<button type="button" id="wysiwyg_button"
onclick="javascript:switchToWYSIWYG();">WYSIWYG</button>
<button type="button" id="source_button"
onclick="javascript:switchToSource();">Source</button>
</div>
<div id="pagetablediv">
<table id="pagetable">
<tr>
<td>
<div id="wysiwyg_editor">
<textarea id="wysiwyg-textarea" name="wysiwyg-textarea" rows="15" cols="80" style="width: 80%">
<p>
Include text along with math equations like <span class="AM">`x=(-b+-sqrt(b^2-4ac))/(2a)`</span> in your documents
</p>
<p>
Click on the math formula to edit the AsciiMath expression used to generate it.
</p>
<p>
To edit the graph, click on the graph, then click the Graph button in the toolbar to open the control panel.
</p>
<p>
<embed type="image/svg+xml" style="width: 300px; height: 200px; vertical-align: middle; float: none;" src="http://www.imathas.com/editordemo/jscripts/tiny_mce/plugins/asciisvg/js/d.svg" sscr="-7.5,7.5,-5,5,1,1,1,1,1,300,200,func,x^2,null,0,0,,,black,1,none" />
</p>
</textarea>
</div>
<div id="source_editor">
<table>
<tr>
<td class="td_tex">
<div id="begin" class="tex"></div>
</td>
</tr>
<tr>
<td>
<textarea rows="10" name="latex_preamble" id="latex_preamble"
disabled="true" class="tex tex-edit"></textarea>
</td>
</tr>
<tr>
<td class="td_tex">
<div id="middle" class="tex">
</div>
</td>
</tr>
<tr>
<td>
<textarea rows="20" name="latex_body" id="latex_body"
disabled="true" class="tex tex-edit"></textarea>
</td>
</tr>
<tr>
<td class="td_tex">
<div id="end" class="tex"></div>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<div class="not-tex">
<input type="text" name="filename" id="filename" value="out" />
<select id="type" name="type">
<option value="pdf">.pdf</option>
<option value="ps">.ps</option>
<option value="tex">.tex</option>
<option value="google">.pdf (view)</option>
</select>
<input type="submit" id="submit" value="Compile!" disabled="true" />
</div>
</td>
</tr>
</table>
</div>
</form>
<div class="not-tex footer">
MITeX is free software; you can redistribute it and/or modify it
under the terms of <br />
the <a href="http://www.gnu.org/licenses/gpl-2.0.txt">GNU General
Public License</a> as published by the Free Software
Foundation;<br />
either version 2 of the License, or (at your
option) any later version.<br />
If you are interested in contributing, please email
<a href="mailto:mitex@mit.edu">mitex@mit.edu</a>.<br />
You can also <a href="http://github.com/mitex/mitex/">download the
source</a>.
</div>
</body>
</html>