LaTeX equations in Ruby on Rails

How can I visualize LaTeX material, for example

\frac{1}{2}

in a Ruby on Rails application? I want to get an image? Thank!

+5
source share
6 answers

To display LaTeX for the web, it seems to me that it mathTeXis the application of choice. There are many other options, all of which seem to be based on dvipnghow the foundation is. mathTeXseems to be the most polished and capable, and easy to configure as a CGI service, so your Rails application can generate regular HTML tags <img>with fairly complex attributes src.

EDIT: mathTeX, , , Linux - , . , . .

+1
+10

, , tex2png tex2png.pl.

, , , jsmath. , ...

+1

Katex

Katex. , Khan Academy, .

Javascript HTML- , - , .

+1

katex , - JavaScript, , .

0

, TeX SVG, PNG MathML.

0

All Articles