-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
117 lines (98 loc) · 3.39 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Common LaTeX Service Interface</title>
<style type="text/css" media="screen">
body {
background-color: #f0f0f0;
font-family: "Lucida Grande", "Bitstream Vera Sans", "Verdana";
font-size: 13px;
color: #333;
}
div.wrapper {
border: 1px solid black;
background-color: white;
padding: 1em;
width: 700px;
margin-left: auto;
margin-right: auto;
}
h1 {
margin-top: 0
}
ul.links {
list-style: none;
float: right;
margin: 0;
margin-left: 3em;
padding: 0;
}
ul.links li {
margin: 0.3em;
padding: 0.5em;
border: 1px solid black;
background-color: #ddeeff
}
ul.links li:hover {
}
pre {
border: 1px dashed gray;
background-color: #eeeeee;
padding: 0.5em;
white-space: pre-wrap; /* CSS2.1 compliant */
white-space: -moz-pre-wrap; /* Mozilla-based browsers */
white-space: o-pre-wrap; /* Opera 7+ */
}
</style>
</head>
<body>
<div class='wrapper'>
<h1>The Common LaTeX Service Interface</h1>
<ul class='links'>
<li><a href="#get_token">Get Developer Token</a></li>
<li><a href="http://wiki.github.com/jpallen/clsi/">Documentation</a></li>
<li><a href="http://github.com/jpallen/clsi">Download Code</a></li>
</ul>
<p>
The Common LaTeX Service Interface is a web service providing access to a LaTeX compiler.
</p>
<a name='get_token'/>
<h2>How to get access</h2>
<p>
To use the CLSI you will need a developer token. To request a token please email me at
<a href='mailto:james@scribtex.com'>james@scribtex.com</a>.
</p>
<h2>An example request</h2>
<pre><?xml version="1.0" encoding="UTF-8"?>
<compile>
<token>e491fa5a2a7b0021d71bd0a5786de4fe</token>
<resources root-resource-path="book.tex">
<resource path="book.tex">
<![CDATA[
\documentclass{report}
\begin{document}
Hi, this is an example of LaTeX in use.
\input{chapters/chapter1.tex}
\end{document}
]]>
</resource>
<resource url="http://www.example.com/files/chapters/chapter1.tex" path="chapters/chapter1.tex" modified="Sat Jan 16 15:33:07 +0000 2010">
</resource>
</resources>
</compile></pre>
<h2>An example response</h2>
<pre><?xml version="1.0" encoding="UTF-8"?>
<compile>
<status>success</status>
<output>
<file type="pdf" url="http://clsi.scribtex.com/output/2501b906ffdf392cfff3fbc4610d1be8/output.pdf" mimetype="application/pdf"/>
</output>
<logs>
<file type="log" url="http://clsi.scribtex.com/output/2501b906ffdf392cfff3fbc4610d1be8/output.log" mimetype="text/plain"/>
</logs>
</compile></pre>
</div>
</body>
</html>