-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
142 lines (124 loc) · 4.63 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
<html>
<head>
<title>MITeX</title>
<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">
</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"></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:[email protected]">[email protected]</a>.<br />
You can also <a href="http://github.com/leonidg/mitex">download the
source</a>.
</div>
</body>
</html>