How to write equation in Blogger?

1. Go to "Theme" and select one of the "Contempo" themes.
2. Click "Edit HTML" and paste below script under <head> tag.
    <script type='text/x-mathjax-config'>
    //<![CDATA[
      MathJax.Hub.Config({
        tex2jax: {
          inlineMath: [ ['\$','\$'], ["\\(","\\)"] ],
          displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
          processEscapes: true
        },
        "HTML-CSS": { availableFonts: ["TeX"] }
      });
    //]]>
    </script>
3. Save theme.
4. Use $...$ to bracket the equation. E.g., $E=mc^2$ => $E=mc^2$

Ref: https://support.google.com/blogger/forum/AAAAY7oIW-wcC761lmV8jA?authuser=0&msgid=CHFoXAQQAwAJ

留言

這個網誌中的熱門文章

Python: Using pydot and Graphviz to generate PDF file for Decision Tree

Python: List Comprehensions