|
kuing
发表于 2024-9-15 22:04
以下就是 /data/template/1_1_common_mathjax.tpl.php 的内容
- <?php if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
- <script>
- window.MathJax = {
- <?php if(!empty($_GET['highlight'])) { ?>
- startup: {
- typeset: false
- },
- <?php } ?>
- tex: {
- inlineMath: [ ['$','$'], ['`','`'], ["\\(","\\)"] ],
- processEscapes: true,
- tags: "ams",
- macros: {
- mbb: '\\mathbb',
- riff: '\\implies',
- liff: '\\impliedby',
- abs: ['\\left\\lvert #1\\right\\rvert', 1],
- rmd: '\\mathop{}\\!\\mathrm<?php echo d;?>',
- vv: '\\overrightarrow',
- sslash: '\\mathrel{/\\mkern-5mu/}',
- px: '\\mathrel{/\\mkern-5mu/}',
- pqd: '\\stackrel{\\smash[b]{/\\!/}}{\\raise-.3ex{=}}',
- veps: '\\varepsilon',
- du: '^\\circ',
- bsb: '\\boldsymbol',
- bm: '\\boldsymbol',
- kongji: '\\varnothing',
- buji: '\\complement',
- S: ['S_{\\triangle #1}', 1],
- led: '\\left\\{\\begin<?php echo aligned;?>',
- endled: '\\end<?php echo aligned;?>\\right.',
- edr: '\\left.\\begin<?php echo aligned;?>',
- endedr: '\\end<?php echo aligned;?>\\right\\}',
- an: '\\{a_n\\}',
- bn: '\\{b_n\\}',
- cn: '\\{c_n\\}',
- xn: '\\{x_n\\}',
- Sn: '\\{S_n\\}',
- inR: '\\in\\mbb R',
- inN: '\\in\\mbb N',
- inZ: '\\in\\mbb Z',
- inC: '\\in\\mbb C',
- inQ: '\\in\\mbb Q',
- Rtt: '\\text<?php echo Rt;?>\\triangle',
- LHS: '\\text<?php echo LHS;?>',
- RHS: '\\text<?php echo RHS;?>',
- arccot: '\\operatorname<?php echo arccot;?>',
- arcsinh: '\\operatorname<?php echo arcsinh;?>',
- arccosh: '\\operatorname<?php echo arccosh;?>',
- arctanh: '\\operatorname<?php echo arctanh;?>',
- arccoth: '\\operatorname<?php echo arccoth;?>',
- },
- autoload: {
- color: [],
- colorv2: ['color']
- },
- packages: {'[+]': ['noerrors','mathtools','xypic']}
- },
- options: {
- ignoreHtmlClass: 'blockcode',
- menuOptions: {
- settings: {
- zoom: "DoubleClick"
- }
- },
- processHtmlClass: 'tex2jax_process',
- renderActions: {
- assistiveMml: []
- }
- },
- //chtml: {
- // scale: 0.9
- //},
- loader: {
- load: ['[tex]/noerrors','[tex]/mathtools','[custom]/xypic.js'],
- //paths: {custom: '//cdn.jsdelivr.net/gh/sonoisa/XyJax-v3@3.0.1/build'}
- paths: {custom: 'kk'}
- },
- svg: {
- scale: 0.9,
- fontCache: 'global'
- }
- };
- </script>
- <!--<script src="//polyfill.io/v3/polyfill.min.js?features=es6" type="text/javascript"></script>-->
- <!--<script src="//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js" type="text/javascript"></script>-->
- <!--<script src="//cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js" type="text/javascript"></script>-->
- <script src="mathjax3/es5/tex-svg.js" type="text/javascript"></script>
- <!--<script src="mathjax3/es5/tex-chtml.js" type="text/javascript"></script>-->
- <!--<script src="//unpkg.com/mathjax@3.2.2/es5/tex-svg.js" type="text/javascript"></script>-->
- <!--<script src="//unpkg.com/mathjax@3.2.2/es5/tex-chtml.js" type="text/javascript"></script>-->
- <!--<script src="//cdn.bootcdn.net/ajax/libs/mathjax/3.2.2/es5/tex-svg.min.js" type="text/javascript"></script>-->
- <!--<script src="//cdn.bootcdn.net/ajax/libs/mathjax/3.2.2/es5/tex-chtml.js" type="text/javascript"></script>-->
复制代码 |
|