Mathjax 3.0 新しいページはコチラ

提供: yonewiki
移動: 案内, 検索
(概要)
(概要)
8行: 8行:
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
 
<script>
 
<script>
function MathjaxSetUp(){
 
  var userAgent = window.navigator.userAgent.toLowerCase();
 
  if(userAgent.indexOf('edge') != -1 ) {
 
    var mathjax_elment_id = document.getElementById('mathjax');
 
    mathjax_elment_id.insertAdjacentHTML("afterend","" +
 
"    <script>" + "\n" +
 
"MathJax = {" + "\n" +
 
"          chtml: {displayAlign: 'left', displayIndent: '2em', matchFontHeight: false}," + "\n" +
 
"            tex: {inlineMath: [['$', '$']],tags: 'ams', macros: { tcdegree: ['\u00b0'], tccelsius: ['\u2103'], tcperthousand: ['\u2030'], tcmu: ['\u03bc'], tcohm: ['\u03a9'] }, processEscapes: true }" + "\n" +
 
"};" + "\n" +
 
"    <" + "/script>" + "\n" +
 
"    <script src='https://polyfill.io/v3/polyfill.min.js?features=es6'><" + "/script>" + "\n" +
 
"    <script  id='MathJax-script' async src='https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js'><" + "/script>" + "\n" +
 
"    <meta http-equiv='X-UA-Compatible' CONTENT='IE=EmulateIE7' />"
 
    );
 
    var nyone = 1;
 
  }
 
}
 
MathjaxSetUp();
 
 
MathJax = {
 
MathJax = {
          chtml: {displayAlign: 'left', displayIndent: '2em', matchFontHeight: false},
+
  chtml: {displayAlign: 'left', displayIndent: '2em', matchFontHeight: false},
            tex: {inlineMath: [['$', '$']],tags: 'ams', macros: { tcdegree: ['\u00b0'], tccelsius: ['\u2103'], tcperthousand: ['\u2030'], tcmu: ['\u03bc'], tcohm: ['\u03a9'] }, processEscapes: true }
+
  tex : {
 +
        inlineMath   : [['$', '$']],
 +
        tags         : 'ams',  
 +
        macros       : {
 +
                      tcdegree     : ['\u00b0'],
 +
                      tccelsius   : ['\u2103'],  
 +
                      tcperthousand: ['\u2030'],  
 +
                      tcmu         : ['\u03bc'],  
 +
                      tcohm       : ['\u03a9']  
 +
        },
 +
        processEscapes: true
 +
  }
 
};
 
};
 
</script>
 
</script>
 +
<script src='https://polyfill.io/v3/polyfill.min.js?features=es6'></script>
 +
<script  id='MathJax-script' async src='https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js'></script>
 
</syntaxhighlight>
 
</syntaxhighlight>

2020年5月13日 (水) 00:00時点における版



個人用ツール
名前空間

変種
操作
案内
ツールボックス