## mako ## File: templates/mathjax_include.html ## ## Advanced mathjax using 2.0-latest CDN for Dynamic Math ## ## This enables ASCIIMathJAX, and is used by js_textbox <%def name="mathjaxConfig()"> %if mathjax_mode is not Undefined and mathjax_mode == 'wiki': MathJax.Hub.Config({ tex2jax: {inlineMath: [ ['$','$'], ["\\(","\\)"]], displayMath: [ ['$$','$$'], ["\\[","\\]"]]} }); %else: MathJax.Hub.Config({ tex2jax: { inlineMath: [ ["\\(","\\)"], ['[mathjaxinline]','[/mathjaxinline]'] ], displayMath: [ ["\\[","\\]"], ['[mathjax]','[/mathjax]'] ] } }); %endif MathJax.Hub.Configured(); window.HUB = MathJax.Hub;