How to add math on your blog | How do I use Math Jax in Blogger

 There are several ways to type math in a blog, depending on your needs and the platform you are using. Here is a common method:


MathJax is a library that allows you to display mathematical equations on web pages using LaTeX, MathML, or AsciiMath syntax. Here is an example of how to use MathJax in your HTML code:


1. Load MathJax from a CDN:

 Add a new gadget to your blog and copy and paste the following 

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>

<script async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML"></script> 


2. Enclose your equation in dollar signs for inline display: 

The quadratic formula is $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$ 


3. Enclose your equation in double dollar signs for display on its own line:

$$ \int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi} $$




Ultimately, the method you choose will depend on your needs and the platform you are using. Some platforms may support multiple methods, so you can choose the one that works best for you.




Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.