How to enable LaTeX in Blogger

2038

If you are using Google’s Blogger platform to run your blog. You may find difficulty in displaying mathematical expressions. One good idea is to make use of LaTeX in displaying mathematical expressions. So, In this post, I will show you how to enable LaTeX in Blogger.

While creating a blog post, You may have notices 2 tabs,compose and HTML , Select HTML Tab and Paste the following code:

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js">
MathJax.Hub.Config({
 extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
 jax: ["input/TeX", "output/HTML-CSS"],
 tex2jax: {
     inlineMath: [ ['$','$'], ["\\(","\\)"] ],
     displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
 },
 "HTML-CSS": { availableFonts: ["TeX"] }
});
</script> 

Now, write directly on Blogger your equation between $ and $,

for example: $x^2$

\($x^2$\)

Leave your queries in the comment section below.

Previous articleCoronavirus: History, Symptoms and Risks
Next articleList of Classical Folk and Tribal Dances in India
Author and Assistant Professor in Finance, Ardent fan of Arsenal FC. Always believe "The only good is knowledge and the only evil is ignorance - Socrates"
Subscribe
Notify of
guest
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Tim Bratten

Thanks! That worked great!

Lautaro Parada

Works like a charm, thanks!