Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any latex web services with an API? [closed]

Is there a web service API that takes this type of a latex http-request:

http://some_web_service/texfile?texfile=

\new\documentclass[12pt]{article}
\begin{document}
  bla  
\end{document}

and returns:

bla.pdf
like image 895
b_dev Avatar asked Nov 30 '10 04:11

b_dev


3 Answers

the Online LaTeX Equation Editor is perfect for this.

EG:

equation using Online Equation Editor

uses the following markup:

![equation using Online Equation Editor]
(https://latex.codecogs.com/gif.latex?x&space;=&space;\frac{4}{5}+\pi\Omega\int_{2\pi}^{\infty}{5\left\(\frac{\tau+3}{2}\right\)d\omega})

note that you will need to escape parentheses with a backslash, eg: \left\( stuff \right\)

If you look through the editor API documentation you might figure out that you can change the format from gif to png by changing the api url endpoint from /gif.latex to /png.latex.

There's also options to set a white background by using \bg_white:

![equation using Online Equation Editor] 
(https://latex.codecogs.com/gif.latex?\bg_white&space;x&space;=&space;\frac{4}{5}+\pi\Omega\int_{2\pi}^{\infty}{5\left\(\frac{\tau+3}{2}\right\)d\omega})

See also this meta.stackexchange answer and this tex.stackexchange answer. I'm sure there are many more answers that point to this tool and implement it in different ways. IE: instead of using the url to generate a gif or png using markdown notation, or you could use html markup and bypass markdown or you could just drag the image over to your post.

like image 163
Mark Mikofski Avatar answered Nov 16 '22 20:11

Mark Mikofski


ScribTeX has a CLSI API, you can send CLSI requests from any platform to compile LaTeX.

I blogged some time ago about this along with a CLSI client written in F#.

like image 30
Mauricio Scheffer Avatar answered Nov 16 '22 20:11

Mauricio Scheffer


I'm looking for the same thing and Latex Online seems to be the closest thing to what we need.

You just need to setup the server by yourself.

EDIT

I've written my own little Sinatra app for this: https://github.com/codegestalt/sinatratex

like image 6
Daniel Avatar answered Nov 16 '22 19:11

Daniel