forked from scribtex/clsi
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
jpallen edited this page Sep 13, 2010
·
2 revisions
The Common LaTeX Service Interface (CLSI) is an API providing access to an online LaTeX compiler. The CLSI has a single access point at http://clsi.scribtex.com/clsi/compile where you can send a XML request supplying the files you wish to compile.
You will need a developer token to access the CLSI. A token can be requested by emailing james@scribtex.com.
The client sends a post request to /clsi/compile with the request body containing XML like the following:
<compile>
<token>AdWn34899sKd03S</token>
<resources root-resource-path='main.tex'>
<resource path="main.tex">
<![CDATA[
\documentclass{article}
\begin{document}
Hello World!
\end{document}
]]>
</resource>
</resources>
</compile>
See Request Format for more details.
The server will then send a response telling the client where to get the compiled files in the following format:
<?xml version="1.0" encoding="UTF-8"?>
<compile>
<status>success</status>
<output>
<file type="pdf" url="http://clsi.scribtex.com/output/042621e09d8b6fdf9ceaa3c223827cbb/output.pdf" mimetype="application/pdf"/>
</output>
<logs>
<file type="log" url="http://clsi.scribtex.com/output/042621e09d8b6fdf9ceaa3c223827cbb/output.log" mimetype="text/plain"/>
</logs>
</compile>
See Response Format for more details.