Hello,
I put javascript in the header to allow for MathJax formulas. However, the formulas are not rendering. Anyone know why?
Script:
Hello,
I put javascript in the header to allow for MathJax formulas. However, the formulas are not rendering. Anyone know why?
Script:
Hi could you share the code you wrote inside the header and your formula please ?
formula:
"
This is an inline equation: (x^2 + y^2 = r^2)
And here's a displayed equation:
\[ \int_0^\infty e^{-x^2} \, dx = \frac{\sqrt{\pi}}{2} \]"<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
"<p>This is an inline equation: \(x^2 + y^2 = r^2\)</p>
<p>And here's a displayed equation:</p>
\[\int_0^\infty e^{-x^2} \, dx = \frac{\sqrt{\pi}}{2}\]"
Such a cool question! I made a video walking through how to integrate mathjax. Hope you find it helpful!
this is amazing! Thank you so much- I will attempt to do this and let you know how I go, thanks heaps once again!!!
Your video is very helpful but i got an issue and i donât know what is happening.
When i do the very same as you do, once the mathjax is rendered, even tho the variable changes value, the display is like frozenâŚ
If all you do is change the variable, you need to subscribe to a variable change to trigger the typeset method. I made a video on how to set up this subscription:
However, if you have control over when the variable gets updated, you can also trigger mathjax.typeset shortly after you make that change. Because mathjax variable is global, you can trigger it from any workflow to get it to do its work.
I will watch this video. Thanks for the quick reply.
But i still find strange that i did EXACTLY what you did (in the first one) but i get different resultâŚ
I also (like you did) trigger the wwLib etc⌠JS code right after the variable change in my workflow.
But as you can see in the log, the display is frozen on the first mathjax rendered.
Devil might be in the detail. If you share more about the specifics of your setup and flow, we might spot the issue.
I have another video (I wonât spam the forum with my vids - check the youtube!) on how to efficiently ask for help on forums like this.
And if you want to work it live, we do this every day on Statechange office hours.