i wanted to reload Mathjax, i.e. force typesetting once again when clicking on a button.
Therefore i wrote the following code:
<button onClick="newTask()"></button>
The reload function contains:
function newTask(){
// This is a function creating a new task, i.e. replacing HTML between some tags
newCode();
// Now i want to renew typesetting by calling Mathjax
MathJax.Hub.Queue(["Typeset",MathJax.Hub]);
}
My script did not work. Where do I have to put the line "MathJax.Hub.Queue(["Typeset",MathJax.Hub]);" ? Any help would be greatly appreciated! :)