https://bugzilla.wikimedia.org/show_bug.cgi?id=48036

--- Comment #1 from Peter Krautzberger <peter.krautzber...@mathjax.org> ---
Hi Matthew

Thanks for posting this here.

Just to repeat it hear: MathJax v2.2 beta has been released, which includes a
full localization module.
http://www.mathjax.org/mathjax-v2-2-beta-now-available/

To repost the jquery code for experimenting:

        $('img.tex').wrap('<span class="MathJax_Preview" />'); // this will
allow MathJax to replace the images with its rendering on the fly
    $('.MathJax_Preview').after(function() {
      tex = $(this).find('img').attr("alt"); //grab the TeX code
      return " <script type='math/tex'>" + tex + "</script>" ; //add the script
behind the MathJax_preview TODO handle display style
    });
   
$.getScript('https://c328740.ssl.cf1.rackcdn.com/mathjax/2.1-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML');
//run MathJax

People can put this into a bookmarklet to give it a test run. It's missing a)
the correct configuration file for Wikipedia and b) support for display math.
Maybe somebody can correct that.

Note that this way, the user will always see math on the page -- MathJax will
typeset an equation and replace the image only with the final output. 

There's a configuration option in MathJax called EqnChunk that allows you to
specify how many equations get typeset before placing them in the page. The
default is relatively high to avoid "flickering", but in this case it might be
worth exploring a low setting.

Peter.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to