Ruby creates images of equations (LaTeX)

I'm looking for a way to create (and view) images of equations in Ruby.

After doing some math inside my script, I want to view the result (polynomial to be more precise) as an image for the user. It doesn't have to be LaTeX, but I think it would be the easiest way.

Is there any gem or other way to turn a LaTeX equation string into an image / pdf file?

Any google search only gave me results on how to do this in a Rails application, I need pure Ruby.

Thanks in advance.

+3


source to share


1 answer


After Googling even more, I came up with this Calculus gem and it does exactly what I was looking for.



The Readme is pretty self-explanatory, so I won't copy it here.

+2


source







All Articles