Weebly and Mathjax

151 views Asked by At

I have tried the four or so answers here to display MathJax on weebly (free account). Is there any way that would actually produce inline equations?

Any hint would be super appreciated!

Thanks!

1

There are 1 answers

2
Hackinet On BEST ANSWER

Yes, it is possible.


MathJax

I took the example from here: http://docs.mathjax.org/en/latest/basic/mathematics.html#basic-mathematics

enter image description here


Steps

  1. Go to your Weebly theme section and click on Edit HTML/CSS.

enter image description here

  1. Edit the header.html and place this snippet inside it:

<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>

enter image description here

  1. Add your equation inline using 'Embed Code'.

enter image description here

  1. Voila! (It still might render as LaTex code in the editor but will show up as proper equation when you publish the page.)

enter image description here