tex and mathjax framework