Recently, I have been working on an online Classical Mechanics course on edX, knowing that could be the direction I want this blog to go. After more than a month of hiatus, I came back but quickly learned that Blogger doesn't provide any mathematical formulation inputs. *This blog will not work without any equations* After searching the keywords "MathJax Blogger," I found several outdated blogs and instructions, including the unofficial tutorials on the MathJax documentation; but, none of them works for me. It appears that Blogger constantly updates its site and no longer supports older scripts. Fortunately, there is an 8-month old Quora post (see link below) that still does the trick. I will summarize it as below.
Source: How can you write math equations on Blogger or Blogspot?
How to enable MathJax on Blogger:
- On your Blogger homepage, click "Theme" on the left pane.
- Next to the "Customize" button, click on the downward arrow then "Edit HTML".
- Now, you are redirected to a webpage editor. Here. you will need to call in MathJax. Copy the script below and paste it below <head> (located in the first few lines, line #4 in the figure).
<script async='async' id='MathJax-script' src='https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js'/><script type='text/x-mathjax-config'>MathJax.Hub.Config({TeX: { equationNumbers: { autoNumber: "AMS" } }});</script>
Trial #1:
Trial #2:
\[E=mc^2\]
Trial #3:
\[e^{i\pi} + 1=0\]
No comments:
Post a Comment