commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien Brisard <>
Subject Re: [all] xdoc vs. apt
Date Tue, 18 Sep 2012 11:04:56 GMT

> Having something compatible with Mathjax would be a tremendous step forward
> for [math]. I would really love to see this happen!

We can in fact make it happen now! In the site.xml file, we just need
to add (in the <body></body> section)

<script src=''
        extensions: ["tex2jax.js",
        jax: ["input/TeX",
        tex2jax: {
            inlineMath: [ ['$','$'] ],
            displayMath: [ ['$$','$$'] ],
            processEscapes: true,
        "HTML-CSS": { availableFonts: ["TeX"] }

Any expression in $...$ will be interpreted as inline math, while
$$...$$ will be interpreted as displayed equation. I've just tried it
in an xdoc file, and it works. As allways with MathJax, though, it
makes the page a bit longer to load.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message