writing/animating maths courses with HTML/Latex with Mathjax

137 views
Skip to first unread message

acx...@gmail.com

unread,
Oct 16, 2015, 1:13:51 PM10/16/15
to MathJax Users
I'm trying to write some dynamic Maths with MathJax, there is what I obtained until now :

http://www.paris8.free.fr/SomeDynamicMathJax.html

I think it would be a good start to let teachers write there Maths course in HTML/Latex with MathJax (replacing slides and pdf in the same time)

1) don't process anything until I decided to (only Init MathJax) :
MathJax.Hub.Config({
skipStartupTypeset: true
)}; // let us process some Latex when we want
2) I process when I want some html DOM nodes :
// DOMnode = document.getElementById("someMathsDivs");
function ApplyMathjaxTo(DOMnode) {
DOMnode.beforeMathJax_innerHTML = DOMnode.innerHTML;
MathJax.Hub.Queue(["Typeset",MathJax.Hub,DOMnode]);
}

function UnApplyMathjaxTo(DOMnode) {
DOMnode.innerHTML = DOMnode.beforeMathJax_innerHTML;
delete DOMnode.beforeMathJax_innerHTML;
}

such that is it EASY to write a maths course in HTML+Latex, THEN :
- process it enterily with MathJax
- or animate it as I want, because I'm still able to add/remove/modify any HTML or Latex 

The problem I have is where placing
MathJax.Extension.tex2jax.config.inlineMath = MathJax.Hub.config.inlineMath; // = [['$','$'],['\\(','\\)']]; 
because there is a bug : 
with 
skipStartupTypeset: true 
the 
MathJax.Hub.Config( { inlineMath : [['$','$'],['\\(','\\)']]});
is not taken in account when calling my ApplyMathjaxTo(DOMnode)function.



William F Hammond

unread,
Oct 16, 2015, 1:38:38 PM10/16/15
to mathja...@googlegroups.com

On Fri, Oct 16, 2015 at 10:13 AM, <acx...@gmail.com> wrote:

I think it would be a good start to let teachers write there Maths course in HTML/Latex with MathJax (replacing slides and pdf in the same time)

Sufficiently good LaTeX, e.g., formally profiled LaTeX, is the easiest way to originate the HTML + MathJax version of an article, a course "handout", or a set of slides.

                     -- Bill
Reply all
Reply to author
Forward
0 new messages