How can I render LaTeX stuff like
\frac{1}{2}
in a Ruby on Rails application? I mean to get an image?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To render LaTeX for the web, it looks to me like
mathTeXis the application of choice. There are many other options, all of which seem to build ondvipngas a foundation.MathTeXappears to be the most polished and capable, and it is easy to configure as a CGI service, so your Rails application can generated ordinary HTML<img>tags with rather complexsrcattributes.EDIT: Having installed mathTeX, I can say that the code is inflexible, that it violates the Linux Filesystem Hierarchy standard, and that it is amateur work—in both the good and bad senses of that word. The code is so complex that there are no obvious faults. I will be looking for alternatives.