Wednesday, 7 August 2013

python ascii to latex representation convertor

python ascii to latex representation convertor

I have 2 server.
generates html output
converts image from latex Math Expression:
e.g.
http://math.gototest.com/cgi-bin/mathtex.cgi?\displaystyle{\left%28{A}%2B{B}\right%29}{\left%28{A}-{B}\right%29}%3D{{A}}^{{2}}-{{B}}^{{2}}
or
http://math.gototest.com/cgi-bin/mathtex.cgi?\displaystyle{\left[\begin{array}{cc}\frac{{1}}{{2}}%26-\frac{{3}}{{2}}\{0}%26-{1}\\frac{{1}}{{2}}%26-\frac{{1}}{{2}}\end{array}\right]}
I am using ASCIIMathMLwFallback.js that gets an input in text e.g. (2)/(4)
I want to be able to use python to be able to convert the string to latex
expression which then I can pass to the above URL to generate the image as
output.

No comments:

Post a Comment