Pages

Showing posts with label equations in html. Show all posts
Showing posts with label equations in html. Show all posts

How to add math equations in blogger using LaTeX or MathJax?

Here is the website mathjax.org website and you can find the demo here.

In the demo page, you can see following equation written in latex or mathjax equation. 

When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are

If you write $x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$,


you will get follwing formatted equation.

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}.$$
To write such beautiful equations using either mathax or LatTeX in your blogger post or blogspot domain blog, you can do following steps. This is also true for any website if you want to write a code using HTML and other programming languages.
  1. Go to this MathJaX getting started page and copy the code (or simple copy the code below)
  2. Go to Themes in your blog on blogger
  3. Chose Edit HTML
  4. Paste the code (copied from mathjax.org) just below <head> tag[The <head> tag probably will be within 10 lines of code in there]
  5. Save and you are now ready to write LaTeX code or MatJaX code in Blogger.
The code is here [If you want copy this too.

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

Now, you are ready to write beautiful math equations using either LaTeX or MathJax.

If this post is useful you can comment here for visibility of this post as well as this blog.

Do you have any other suggesstions? You can add here.

Thanks. 


You may be interested in these posts

Error in image file conversion: convert-im6.q16: not authorized `test.eps' @ error/constitute.c/WriteImage/1037.

This error is because of the vulnerability. This allows remote execution of code using image formats. So, some Linux distributions by defaul...