MathJax-LaTeX not working with longer content
-
As per your documentation (https://docs.themeum.com/tutor-lms/developers/adding-latex-support/) I’m trying to use MathJax LaTeX plugin to implement mathematical expressions into the Tutor courses. Unfortunately, it does not work well.
I’m using the same test code everywhere:
$$\begin{equation} S(\omega)=1.466\, H_s^2 \, \frac{\omega_0^5}{\omega^6} \, e^{\left[-3^{\omega/(\omega_0)}\right]^2} \end{equation}$$ $$\large\sum_{i=1}^n\vec{F}_{\text{ext, i}}$$ $$\frac{y}{\frac{3}{x}+b}$$ $$\sqrt[x]{y^2}$$ $$\begin{eqnarray} a & = & b + c \\x & = & y - z\end{eqnarray}$$ $$S = \pi r^2$$
Everythings works well in WP pages and single posts, see screen A.
When I try a Tutor lesson, it returns 2 issues. First time going onto the lesson page, Tutor shows plain text view of the code, see screen B. I’m using Force Load setting of the plugin that loads the js at every WP page regardless of the MathJax codes. Without, Tutor does not recognize the code at all. After pressing F5, it register the code but with some rendering issues. I emphasize it is the same code I used with the single post above. It renders correctly only if I use one short expression only and still must press F5 first. Longer codes like the one in my examples don’t render at all, see screen C.
I have the same issue on the quiz pages (description, questions). When I go to the quiz and switching between questions, it won’t recognize the code and shows the plain text only, see screen D. After pressing F5, it recognize the code but does not render it correctly. Again, it works with one short expression only, but breaks with a complicated or more simple expressions. And again, it still renders only after pressing F5, see screen E.
All above was tested with the latest Firefox and Chrome, clean installations, cleared cache, no browser plugins. I also tried to use different plugin, Simple MathJax, with the same issue. Since everything is working on single posts and pages, I suspect it is being Tutor implementation issue.
Any solutions or walkarounds are welcome. This function is substantial for creating any math / natural science courses that we are creating.
Thank you & cheers.
- The topic ‘MathJax-LaTeX not working with longer content’ is closed to new replies.