|
把下载的MathJax解压后(必要时重新命名)到 apache 的 htdocs/MathLib/MathJax (此目录下应有文件 MathJax.js)
修改DZ 模板大致加上以下代码 (参见数学中国版面, 鼠标右键在网页内选择 view source)
- <!-- mathchina code START Elim -->
- <SCRIPT type=text/javascript>
- fldKey = "inpost";
- </SCRIPT>
- <SCRIPT src="/MathLib/LaTeX_files/eq_field_wk.js" type=text/javascript></SCRIPT>
- <script type="text/x-mathjax-config">
- MathJax.Hub.Config({
- tex2jax: {
- inlineMath: [[','],['\\(','\\)']], // uncomment to use $...$ for inline math
- processEscapes: 1 // set to 1 to allow \$ to produce a dollar sign
- },
- TeX: {
- Macros: {
- fplus: "\\genfrac{}{}{0pt}{}{}{+}",
- fdots: "\\genfrac{}{}{0pt}{}{}{\\cdots}"
- },
- Augment: {
- Definitions: {
- macros: {
- overparen: ['UnderOver','23DC'],
- underparen: ['UnderOver','23DD']
- }
- }
- }
- }
- });
- </script>
- <script src="/MathLib/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>
- <!-- mathchina code END -->
复制代码 |
|