How to write mathematical equations in blog post

Typing equations in a blog post or website is not easy work. Because you need unique symbols, superscript, and subscript letters and numbers. 

Tools to Write Math Equations

jqMath

If you would like to add the jqMath library to your blog or web page, just add the following lines of code before the </head> section of HTML template.

<meta charset="utf-8">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jqmath@0.4.9/src/jqmath.css"><script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jqmath@0.4.9/dist/jqmath.min.js" charset="utf-8"></script>

KaTeX


To use KaTeX, just add the following lines of codes before the </head> section of your HTML template.

<span class="hljs-name">link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/katex.min.css">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/katex.min.js"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.0/dist/contrib/auto-render.min.js" onload="renderMathInElement(document.body);"></script>


MathJax


To use MathJax in your web page, just add the following lines of codes before the </head> section of your HTML template.

<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>

How to add scripts in Blogger

To add scripts in your Blogger blog, you need to edit the HTML code of your Blogger template. Go to Theme > Edit HTML and click anywhere in the code and press Ctrl + F to bring up the search bar. Search for </head> and paste it before that.


<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/latest.js?config=AM_CHTML"></script>


Site 1 : https://demo.wiris.com/mathtype/en/developers.php

Site 2 : https://www.hostmath.com/

Site 3 : https://math.typeit.org/

Post a Comment

0 Comments