pmq20 / mathjax-rails

Simple gem to integrate MathJax with Rails and maintains MathJax at a system-wide directory.
MIT License
66 stars 30 forks source link

How to use #30

Open ghost opened 5 years ago

ghost commented 5 years ago

Hello I'm new in rails and i want to implement Tex math formulas in my application, so i find this gem, but i cant figure out how to use it! Well, I followed the installation process and inserted the following code in a html.erb view home file: <p>\[\int_a^b f(x) dx=F(b)-F(a)\]</p> So when i run the server and no math function appeared in my page... I think I'm missing out on something very obvious.Do I have to use <%= mathjax_tag %> to work with the Tex formulas?

geo5745 commented 4 years ago

I am in the same boat - trying to install this gem and its not working.

I tried using the CDN version and it wasn't working either because it did not know how to play with my asset pipeline.

juneja2 commented 4 years ago

^

geo5745 commented 4 years ago

I ended up using Mathjax React. Got it to work though some issues with the consistency of fonts.