Plugin Directory

Changeset 522223


Ignore:
Timestamp:
03/22/2012 02:02:30 PM (14 years ago)
Author:
mathzqy
Message:

inline config of mathjax

File:
1 edited

Legend:

Unmodified
Added
Removed
  • latex/trunk/latex.php

    r522181 r522223  
    44Plugin URI: http://wordpress.org/extend/plugins/latex/
    55Description: Using MathJax and LaTex image service, this plugin provides a general solution to add and display your mathematical fourmula, no matter the visitors are visiting your blog or read from Google Reader.
    6 Version: 3.3
     6Version: 3.31
    77Author: zhiqiang
    88Author URI: http://zhiqiang.org
     
    6666//  if (get_option("latex_cache_path") == FALSE )   
    6767        update_option("latex_cache_path", ABSPATH."wp-content/plugins/latex/cache/");
     68        update_option("latex_mathjax_config", '<script type="text/x-mathjax.config"> \n'.
     69'        MathJax.Hub.Config({ \n' .
     70'                TeX: {equationNumbers: {autoNumber: ["AMS"], useLabelIds: true}}, \n' .
     71'                "HTML-CSS": {linebreaks: {automatic: true}}, \n' .
     72'                SVG: {linebreaks: {automatic: true}}\n' .
     73'        }); \n' .
     74'</script>') ;
    6875}
    6976
Note: See TracChangeset for help on using the changeset viewer.