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

提供: yonewiki
移動: 案内, 検索
(概要)
(概要)
5行: 5行:
 
 このサイトでは以下のような設定を使っています。
 
 このサイトでは以下のような設定を使っています。
 
<ymath>$$ f(x) $$</ymath>
 
<ymath>$$ f(x) $$</ymath>
 +
 +
<syntaxhighlight lang="javascript">
 +
<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 = {
 +
          chtml: {displayAlign: 'left', displayIndent: '2em', matchFontHeight: false},
 +
            tex: {inlineMath: [['$', '$']],tags: 'ams', macros: { tcdegree: ['\u00b0'], tccelsius: ['\u2103'], tcperthousand: ['\u2030'], tcmu: ['\u03bc'], tcohm: ['\u03a9'] }, processEscapes: true }
 +
};
 +
</script>
 +
</syntaxhighlight>

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



個人用ツール
名前空間

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