「Mathjax2.x 練習場」の版間の差分

提供:yonewiki
編集の要約なし
編集の要約なし
 
(同じ利用者による、間の1版が非表示)
38行目: 38行目:
       },
       },
       "HTML-CSS": {
       "HTML-CSS": {
         undefinedFamily: "'Neo Euler Medium', Meiryo, STIXGeneral, 'Arial Unicode MS', serif",
         undefinedFamily: "Meiryo, STIXGeneral, 'Arial Unicode MS', serif",
         webFont :"Euler"
         webFont :"Neo-Euler"
       }
       }
     }
     }
58行目: 58行目:
 Mathjax2.x系で使えるコード一覧を作成したいと思います。<span class="MathJax_Preview" style="color: inherit;"></span><span class="MathJax" tabindex="0" style="position: relative;" role="presentation"><span class="none-math" id="Inline:_\frac{3}{5}" style="width: 0.718em; display: inline-block;"><span style="display: inline-block; position: relative; width: 0.565em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(0.821em, 1000.57em, 2.866em, -999.997em); top: -2.094em; left: 0em;"><span class="mrow"><span class="mfrac"><span style="display: inline-block; position: relative; width: 0.36em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(1.383em, 1000.26em, 2.406em, -999.997em); top: -2.656em; left: 50%; margin-left: -0.151em;"><span class="mn" style="font-size: 70.7%;"><span style="font-family: &quot;Neo Euler Medium&quot;, Meiryo, STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">3</span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span><span style="position: absolute; clip: rect(1.383em, 1000.26em, 2.406em, -999.997em); top: -1.634em; left: 50%; margin-left: -0.151em;"><span class="mn" style="font-size: 70.7%;"><span style="font-family: &quot;Neo Euler Medium&quot;, Meiryo, STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">5</span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1000.36em, 1.23em, -999.997em); top: -1.276em; left: 0em;"><span style="display: inline-block; overflow: hidden; vertical-align: 0em; border-top: 1.3px solid; width: 0.36em; height: 0px;"></span><span style="display: inline-block; width: 0px; height: 1.076em;"></span></span></span></span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span></span><span style="display: inline-block; overflow: hidden; vertical-align: -0.841em; border-left: 0px solid; width: 0px; height: 2.341em;"></span></span></span>しばらくはコード動作確認調整期間になります。Mathjax3.x系向けのサンプルを全部貼りましたので、<span class="MathJax_Preview" style="color: inherit;"></span><span class="MathJax" tabindex="0" style="position: relative;" role="presentation"><span class="none-math" id="Inline:_\frac{5}{9}" style="width: 0.718em; display: inline-block;"><span style="display: inline-block; position: relative; width: 0.565em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(0.821em, 1000.57em, 2.866em, -999.997em); top: -2.094em; left: 0em;"><span class="mrow"><span class="mfrac"><span style="display: inline-block; position: relative; width: 0.36em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(1.383em, 1000.26em, 2.406em, -999.997em); top: -2.656em; left: 50%; margin-left: -0.151em;"><span class="mn" style="font-size: 70.7%;"><span style="font-family: &quot;Neo Euler Medium&quot;, Meiryo, STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">5</span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span><span style="position: absolute; clip: rect(1.383em, 1000.26em, 2.406em, -999.997em); top: -1.634em; left: 50%; margin-left: -0.151em;"><span class="mn" style="font-size: 70.7%;"><span style="font-family: &quot;Neo Euler Medium&quot;, Meiryo, STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">9</span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1000.36em, 1.23em, -999.997em); top: -1.276em; left: 0em;"><span style="display: inline-block; overflow: hidden; vertical-align: 0em; border-top: 1.3px solid; width: 0.36em; height: 0px;"></span><span style="display: inline-block; width: 0px; height: 1.076em;"></span></span></span></span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span></span><span style="display: inline-block; overflow: hidden; vertical-align: -0.841em; border-left: 0px solid; width: 0px; height: 2.341em;"></span></span></span>動いていないものは非対応だったんだなと思っていいと思います。
 Mathjax2.x系で使えるコード一覧を作成したいと思います。<span class="MathJax_Preview" style="color: inherit;"></span><span class="MathJax" tabindex="0" style="position: relative;" role="presentation"><span class="none-math" id="Inline:_\frac{3}{5}" style="width: 0.718em; display: inline-block;"><span style="display: inline-block; position: relative; width: 0.565em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(0.821em, 1000.57em, 2.866em, -999.997em); top: -2.094em; left: 0em;"><span class="mrow"><span class="mfrac"><span style="display: inline-block; position: relative; width: 0.36em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(1.383em, 1000.26em, 2.406em, -999.997em); top: -2.656em; left: 50%; margin-left: -0.151em;"><span class="mn" style="font-size: 70.7%;"><span style="font-family: &quot;Neo Euler Medium&quot;, Meiryo, STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">3</span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span><span style="position: absolute; clip: rect(1.383em, 1000.26em, 2.406em, -999.997em); top: -1.634em; left: 50%; margin-left: -0.151em;"><span class="mn" style="font-size: 70.7%;"><span style="font-family: &quot;Neo Euler Medium&quot;, Meiryo, STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">5</span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1000.36em, 1.23em, -999.997em); top: -1.276em; left: 0em;"><span style="display: inline-block; overflow: hidden; vertical-align: 0em; border-top: 1.3px solid; width: 0.36em; height: 0px;"></span><span style="display: inline-block; width: 0px; height: 1.076em;"></span></span></span></span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span></span><span style="display: inline-block; overflow: hidden; vertical-align: -0.841em; border-left: 0px solid; width: 0px; height: 2.341em;"></span></span></span>しばらくはコード動作確認調整期間になります。Mathjax3.x系向けのサンプルを全部貼りましたので、<span class="MathJax_Preview" style="color: inherit;"></span><span class="MathJax" tabindex="0" style="position: relative;" role="presentation"><span class="none-math" id="Inline:_\frac{5}{9}" style="width: 0.718em; display: inline-block;"><span style="display: inline-block; position: relative; width: 0.565em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(0.821em, 1000.57em, 2.866em, -999.997em); top: -2.094em; left: 0em;"><span class="mrow"><span class="mfrac"><span style="display: inline-block; position: relative; width: 0.36em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(1.383em, 1000.26em, 2.406em, -999.997em); top: -2.656em; left: 50%; margin-left: -0.151em;"><span class="mn" style="font-size: 70.7%;"><span style="font-family: &quot;Neo Euler Medium&quot;, Meiryo, STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">5</span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span><span style="position: absolute; clip: rect(1.383em, 1000.26em, 2.406em, -999.997em); top: -1.634em; left: 50%; margin-left: -0.151em;"><span class="mn" style="font-size: 70.7%;"><span style="font-family: &quot;Neo Euler Medium&quot;, Meiryo, STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">9</span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1000.36em, 1.23em, -999.997em); top: -1.276em; left: 0em;"><span style="display: inline-block; overflow: hidden; vertical-align: 0em; border-top: 1.3px solid; width: 0.36em; height: 0px;"></span><span style="display: inline-block; width: 0px; height: 1.076em;"></span></span></span></span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span></span><span style="display: inline-block; overflow: hidden; vertical-align: -0.841em; border-left: 0px solid; width: 0px; height: 2.341em;"></span></span></span>動いていないものは非対応だったんだなと思っていいと思います。


 <div id="output">Checking environment...</div>
ア <span class="MathJax_Preview" style="color: inherit;"></span><span class="MathJax" tabindex="0" style="position: relative;" role="presentation"><span class="none-math" id="Inline:_\frac{\rho}{1-\rho}_\times_Ts" style="width: 4.707em; display: inline-block;"><span style="display: inline-block; position: relative; width: 3.684em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(1.127em, 1003.63em, 2.917em, -999.997em); top: -2.145em; left: 0em;"><span class="mrow"><span class="mfrac"><span style="display: inline-block; position: relative; width: 1.23em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(3.479em, 1000.36em, 4.297em, -999.997em); top: -4.548em; left: 50%; margin-left: -0.202em;"><span class="mi" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">ρ</span><span style="display: inline-block; width: 0px; height: 3.991em;"></span></span><span style="position: absolute; clip: rect(3.275em, 1001.08em, 4.297em, -999.997em); top: -3.525em; left: 50%; margin-left: -0.56em;"><span class="mrow"><span class="mn" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">1</span><span class="texatom"><span class="mrow"><span class="mo" style="font-size: 70.7%;"><span style="font-family: STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">-</span></span></span></span><span class="mi" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">ρ</span></span><span style="display: inline-block; width: 0px; height: 3.991em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1001.23em, 1.23em, -999.997em); top: -1.276em; left: 0em;"><span style="display: inline-block; overflow: hidden; vertical-align: 0em; border-top: 1.3px solid; width: 1.23em; height: 0px;"></span><span style="display: inline-block; width: 0px; height: 1.076em;"></span></span></span></span><span class="mo" style="font-family: NeoEulerMathJax_Main; padding-left: 0.207em;">×</span><span class="mi" style="font-family: NeoEulerMathJax_Main; padding-left: 0.207em;">T<span style="display: inline-block; overflow: hidden; height: 1px; width: 0.105em;"></span></span><span class="mi" style="font-family: NeoEulerMathJax_Main;">s</span></span><span style="display: inline-block; width: 0px; height: 2.15em;"></span></span></span><span style="display: inline-block; overflow: hidden; vertical-align: -0.841em; border-left: 0px solid; width: 0px; height: 2.016em;"></span></span></span>


 Version2.0系に関する記事です。このページのMathJaxバージョンは
イ <span class="MathJax_Preview" style="color: inherit;"></span><span class="MathJax" tabindex="0" style="position: relative;" role="presentation"><span class="none-math" id="Inline:_\frac{\rho}{1-2\rho}_\times_Ts" style="width: 5.167em; display: inline-block;"><span style="display: inline-block; position: relative; width: 4.042em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(1.127em, 1003.99em, 2.917em, -999.997em); top: -2.145em; left: 0em;"><span class="mrow"><span class="mfrac"><span style="display: inline-block; position: relative; width: 1.588em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(3.479em, 1000.36em, 4.297em, -999.997em); top: -4.548em; left: 50%; margin-left: -0.202em;"><span class="mi" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">ρ</span><span style="display: inline-block; width: 0px; height: 3.991em;"></span></span><span style="position: absolute; clip: rect(3.275em, 1001.43em, 4.297em, -999.997em); top: -3.525em; left: 50%; margin-left: -0.713em;"><span class="mrow"><span class="mn" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">1</span><span class="texatom"><span class="mrow"><span class="mo" style="font-size: 70.7%;"><span style="font-family: STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">-</span></span></span></span><span class="mn" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">2</span><span class="mi" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">ρ</span></span><span style="display: inline-block; width: 0px; height: 3.991em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1001.59em, 1.23em, -999.997em); top: -1.276em; left: 0em;"><span style="display: inline-block; overflow: hidden; vertical-align: 0em; border-top: 1.3px solid; width: 1.588em; height: 0px;"></span><span style="display: inline-block; width: 0px; height: 1.076em;"></span></span></span></span><span class="mo" style="font-family: NeoEulerMathJax_Main; padding-left: 0.207em;">×</span><span class="mi" style="font-family: NeoEulerMathJax_Main; padding-left: 0.207em;">T<span style="display: inline-block; overflow: hidden; height: 1px; width: 0.105em;"></span></span><span class="mi" style="font-family: NeoEulerMathJax_Main;">s</span></span><span style="display: inline-block; width: 0px; height: 2.15em;"></span></span></span><span style="display: inline-block; overflow: hidden; vertical-align: -0.841em; border-left: 0px solid; width: 0px; height: 2.016em;"></span></span></span>


 <div id="version">Loading MathJax version...</div>
ウ <span class="MathJax_Preview" style="color: inherit;"></span><span class="MathJax" tabindex="0" style="position: relative;" role="presentation"><span class="none-math" id="Inline:_\frac{2\rho}{1-\rho}_\times_Ts" style="width: 4.707em; display: inline-block;"><span style="display: inline-block; position: relative; width: 3.684em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(0.974em, 1003.63em, 2.917em, -999.997em); top: -2.145em; left: 0em;"><span class="mrow"><span class="mfrac"><span style="display: inline-block; position: relative; width: 1.23em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(3.326em, 1000.72em, 4.297em, -999.997em); top: -4.548em; left: 50%; margin-left: -0.355em;"><span class="mrow"><span class="mn" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">2</span><span class="mi" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">ρ</span></span><span style="display: inline-block; width: 0px; height: 3.991em;"></span></span><span style="position: absolute; clip: rect(3.275em, 1001.08em, 4.297em, -999.997em); top: -3.525em; left: 50%; margin-left: -0.56em;"><span class="mrow"><span class="mn" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">1</span><span class="texatom"><span class="mrow"><span class="mo" style="font-size: 70.7%;"><span style="font-family: STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">-</span></span></span></span><span class="mi" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">ρ</span></span><span style="display: inline-block; width: 0px; height: 3.991em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1001.23em, 1.23em, -999.997em); top: -1.276em; left: 0em;"><span style="display: inline-block; overflow: hidden; vertical-align: 0em; border-top: 1.3px solid; width: 1.23em; height: 0px;"></span><span style="display: inline-block; width: 0px; height: 1.076em;"></span></span></span></span><span class="mo" style="font-family: NeoEulerMathJax_Main; padding-left: 0.207em;">×</span><span class="mi" style="font-family: NeoEulerMathJax_Main; padding-left: 0.207em;">T<span style="display: inline-block; overflow: hidden; height: 1px; width: 0.105em;"></span></span><span class="mi" style="font-family: NeoEulerMathJax_Main;">s</span></span><span style="display: inline-block; width: 0px; height: 2.15em;"></span></span></span><span style="display: inline-block; overflow: hidden; vertical-align: -0.841em; border-left: 0px solid; width: 0px; height: 2.211em;"></span></span></span>
<freescript></script>
<script type="text/javascript">
// 読み込み後にグローバルスコープのオブジェクトを調べる
window.onload = function() {
  const keys = Object.keys(window).sort(); // グローバル変数を列挙
  const output = keys.includes("MathJax") ? "MathJax is defined." : "MathJax is not defined. Global keys: " + keys.join(", ");
  document.getElementById("output").textContent = output;


  if (typeof MathJax !== "undefined") {
エ <span class="MathJax_Preview" style="color: inherit;"></span><span class="MathJax" tabindex="0" style="position: relative;" role="presentation"><span class="none-math" id="Inline:_\frac{2\rho}{1-2\rho}_\times_Ts" style="width: 5.167em; display: inline-block;"><span style="display: inline-block; position: relative; width: 4.042em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(0.974em, 1003.99em, 2.917em, -999.997em); top: -2.145em; left: 0em;"><span class="mrow"><span class="mfrac"><span style="display: inline-block; position: relative; width: 1.588em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(3.326em, 1000.72em, 4.297em, -999.997em); top: -4.548em; left: 50%; margin-left: -0.355em;"><span class="mrow"><span class="mn" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">2</span><span class="mi" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">ρ</span></span><span style="display: inline-block; width: 0px; height: 3.991em;"></span></span><span style="position: absolute; clip: rect(3.275em, 1001.43em, 4.297em, -999.997em); top: -3.525em; left: 50%; margin-left: -0.713em;"><span class="mrow"><span class="mn" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">1</span><span class="texatom"><span class="mrow"><span class="mo" style="font-size: 70.7%;"><span style="font-family: STIXGeneral, &quot;Arial Unicode MS&quot;, serif; font-size: 79%; font-style: normal; font-weight: normal;">-</span></span></span></span><span class="mn" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">2</span><span class="mi" style="font-size: 70.7%; font-family: NeoEulerMathJax_Main;">ρ</span></span><span style="display: inline-block; width: 0px; height: 3.991em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1001.59em, 1.23em, -999.997em); top: -1.276em; left: 0em;"><span style="display: inline-block; overflow: hidden; vertical-align: 0em; border-top: 1.3px solid; width: 1.588em; height: 0px;"></span><span style="display: inline-block; width: 0px; height: 1.076em;"></span></span></span></span><span class="mo" style="font-family: NeoEulerMathJax_Main; padding-left: 0.207em;">×</span><span class="mi" style="font-family: NeoEulerMathJax_Main; padding-left: 0.207em;">T<span style="display: inline-block; overflow: hidden; height: 1px; width: 0.105em;"></span></span><span class="mi" style="font-family: NeoEulerMathJax_Main;">s</span></span><span style="display: inline-block; width: 0px; height: 2.15em;"></span></span></span><span style="display: inline-block; overflow: hidden; vertical-align: -0.841em; border-left: 0px solid; width: 0px; height: 2.211em;"></span></span></span>
    if(MathJax.version) {
    // MathJax のバージョンを取得して表示
      document.getElementById("version").textContent = "MathJax version: " + MathJax.version;
    }
  } else {
    console.error("MathJax is not defined or failed to load.");
    document.getElementById("version").textContent = "MathJax failed to load.";
  }
};
</script>
<script></freescript>


 
 

2025年1月27日 (月) 16:36時点における最新版

Mathjax 2.7に戻る。

Mathjax2.x コード一覧に戻る。

概要

 Mathjax2.x系で使えるコード一覧を作成したいと思います。35しばらくはコード動作確認調整期間になります。Mathjax3.x系向けのサンプルを全部貼りましたので、59動いていないものは非対応だったんだなと思っていいと思います。

ア ρ1ρ×Ts

イ ρ12ρ×Ts

ウ 2ρ1ρ×Ts

エ 2ρ12ρ×Ts

 

  • キャンセル4

\cancel{a}
a


  • 分数(NonMathjax)

\frac{1}{2}
12


  • 分数(大)

\displaystyle \frac{1}{2}
12


  • 分数(大)2

\dfrac{1}{2}
12


  • 増減表

\begin{array}{c|ccccc}
  x     & \cdots & -1 & \cdots & 1 & \cdots \\ 
  \hline
  f^{\prime}(x) & + & 0 & – & 0 & + \\ 
  \hline
  f(x)  & \nearrow & e & \searrow & -e & \nearrow
\end{array}
xf(x)f(x)+10e10e+


  • 平方根

\sqrt{ 2 }
2


  • 微分(ラグランジュ)

f^{\prime}
f


  • 微分サンプル

\begin{eqnarray}
f^{\prime}(x)
 = \frac{ df }{ dx }
 = \lim_{ \Delta x \to 0 } \frac{ f(x + \Delta x) - f(x) }{ \Delta x }
\end{eqnarray}
f(x)=dfdx=limΔx0f(x+Δx)f(x)Δx


  • 表サンプル

\begin{array}{c|ccccc}
  x     & \cdots & -1 & \cdots & 1 & \cdots \\ 
  \hline
  f^{\prime}(x) & + & 0 & – & 0 & + \\ 
  \hline
  f(x)  & \nearrow & e & \searrow & -e & \nearrow
\end{array}
xf(x)f(x)+10e10e+


  • 下線

\underline{ A }

$$ \underline{ A } $$


  • 下線

\underline{ A }
A_


  • 下線

\underline{ AB }
AB_