Math formula ionic

#1

Hello friends,
does anyone know how to write mathematical formulas. I tried with mathjax but does not work.
Thank you

#2

Hi,
Use UTF-8 Mathematical Operators
http://www.w3schools.com/charsets/ref_utf_math.asp
And even the mathjax is working fine.

#3

#4

Can you please explain, how to use MathJax on Ionic 2 in offline mode.

#5

Ionic 1 Steps :
2 . Link the JS and configuration as per your requirement .
Example :

<script type="text/javascript" src="/js/MathJax.js?config=TeX-AMS_HTML-full"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {inlineMath: [["$","$"],["\$","\$"]]}
});
</script>

3. Add the Required formula .
Example :

<p>
When $a \ne 0$, there are two solutions to $ax^2 + bx + c = 0$ and they are
$$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
</p>


I have not tried this with Ionic 2 . I will try once in Ionic 2 and reply back again after downloading the latest android build tools .

#6

@nagarjunbn8 Thanks for the reply. Please try with Ionic 2. I am stuck in installing it in Ionic 2.

#7

Using CDN it’s only working in the first view (that is your default view) when the app loads, but does not work when you switch the view. Mathjax

Please can anyone help me, I think am missing something.