<http://www.merlyn.demon.co.uk/p231-jax.htm> (8kB) is now almost the final document, EXCEPT that
(1) For speed in testing, it contains only one page of the original, with three maths segments $$...$$ (I've not yet really considered using inline MathJax, since inline maths is already there in HTML);
(2) There is less HTML in the pre- and post-ambles.
For the convenience of those who want to see only the text, I now run the typesetter only on demand (a button, "Typeset"), calling MathJax.Hub.Typeset().
At first, pressing the button left (as expected) the original dummy non-equations, generated by an internal preprocessor, showing. Inserting MathJax.Hub.Config({preRemoveClass: "EQN"}); did not hide them -- perhaps I have misunderstood or they are not close enough. That does not matter, as I have easily coded
EQNs = document.getElementsByClassName("EQN")
for (J in EQNs) EQNs[J].style.display="none"
to hide them.
Now, after pressing my button, all is fine. But, before pressing it, the ugly TeX shows, and
MathJax.Hub.Config({ tex2jax: {preview: "none"}});
did not remove it. Perhaps I need to run some of your processing code onload, to extract the TeX from view??
In my preprocessing, I could I expect wrap each $$...$$ in <span class=HID> </span>, and if necessary unhide it before calling Typeset(). But it would be better to do it "your" way, which I have not yet found.--
(c) John Stockton, near London, UK. Using Google, no spell-check.
Mail: J.R.""""""""@physics.org or (better) via Home Page at
Web: <http://www.merlyn.demon.co.uk/> (may move soon)
FAQish topics, acronyms, links, etc.; Date, Lagrange, JavaScript, ..|