Hello,
I’m using MathJax v3 with reveal.js, and I’d like to be able to call a javascript function when all the math in the presentation has been processed so that I can go through and add some classes to the inserted elements. (I have MathJax set to embed the math as SVG.)
The following JQuery code works when I run it in the console after the page has loaded, but I can’t find a way to have it called automatically — other than a hack which calls it after five or six seconds have passed...
$(".math-fragments").each( function() {
$(this).find("g[data-mml-node='mtr']").each( function() {
$(this).addClass("fragment");
})
Many thanks!
Jason