「Mathjax2.x 開発」の版間の差分

提供:yonewiki
編集の要約なし
タグ: 差し戻し済み
編集の要約なし
 
(同じ利用者による、間の31版が非表示)
22行目: 22行目:
         extensions: ["[Contrib]/physics/physics.js","[Contrib]/siunitx/siunitx.js", "color.js", "cancel.js"]
         extensions: ["[Contrib]/physics/physics.js","[Contrib]/siunitx/siunitx.js", "color.js", "cancel.js"]
       },
       },
  "HTML-CSS": {
    availableFonts: [],
    preferredFont: null,
    webFont: "STIX-Web"
  },
//      "HTML-CSS": {
//      "HTML-CSS": {
//        undefinedFamily: "'Neo Euler Medium', Meiryo, STIXGeneral, 'Arial Unicode MS', serif",
//        undefinedFamily: "'Neo Euler Medium', Meiryo, STIXGeneral, 'Arial Unicode MS', serif",
//        webFont :"Neo Euler Medium"
//        webFont :"Neo Euler Medium"
      }
//      }
     }
     }
   );</script>
   );</script>
57行目: 62行目:
     if(MathJax.version) {
     if(MathJax.version) {
     // MathJax のバージョンを取得して表示
     // MathJax のバージョンを取得して表示
       document.getElementById("version").textContent = "MathJax &amp;@@&amp; version: " + MathJax.version;
       document.getElementById("version").textContent = "MathJax version: " + MathJax.version;
     }
     }
   } else {
   } else {
69行目: 74行目:
 
 


=== 数 ===
1.二次方程式の解の公式
<syntaxhighlight lang="tex">
$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$
</syntaxhighlight>


<yjavascript></script>
x=b±b24ac2a
<script></yjavascript>
2.積分の例
<syntaxhighlight lang="tex">
10x2dx=13
</syntaxhighlight>
10x2dx=13
3.行列の掛け算
<syntaxhighlight lang="tex">
A=(1234),B=(5678),A×B=(19224350)
</syntaxhighlight>
A=(1234),B=(5678),A×B=(19224350)
4.複素数の計算
<syntaxhighlight lang="tex">
z=3+4i,|z|=32+42=5
</syntaxhighlight>
z=3+4i,|z|=32+42=5
5.ピタゴラスの定理
<syntaxhighlight lang="tex">
a2+b2=c2
</syntaxhighlight>
a2+b2=c2
6.シュレディンガー方程式
<syntaxhighlight lang="tex">
itψ=ˆHψ
</syntaxhighlight>
itψ=ˆHψ
7.ベクトルの内積
<syntaxhighlight lang="tex">
AB=|A||B|cosθ
</syntaxhighlight>
AB=|A||B|cosθ
8.ローレンツ変換
<syntaxhighlight lang="tex">
x=γ(xvt),0t=γ(tvxc2)
</syntaxhighlight>
x=γ(xvt),0t=γ(tvxc2)
9.二項定理
<syntaxhighlight lang="tex">
(x+y)n=nk=0(nk)xnkyk
</syntaxhighlight>
(x+y)n=nk=0(nk)xnkyk
10.解析関数のコーシー・リーマン方程式
<syntaxhighlight lang="tex">
ux=vy,uy=vx
</syntaxhighlight>
ux=vy,uy=vx
11.正弦関数の定義
<syntaxhighlight lang="tex">
sin(θ)=対辺斜辺
</syntaxhighlight>
sin(θ)=対辺斜辺
12.余弦定理
<syntaxhighlight lang="tex">
c2=a2+b22abcos(C)
</syntaxhighlight>
c2=a2+b22abcos(C)
13.三重角の公式(正弦)
<syntaxhighlight lang="tex">
sin(3θ)=3sin(θ)4sin3(θ)
</syntaxhighlight>
sin(3θ)=3sin(θ)4sin3(θ)
=== 線 ===
*分数
*分数
<freescript></script>
 
<div class="hljs-wrap"><pre data-label="MathJaxSample" class="pre-wrap">
xy
<code class="tex">\frac{1}{2}
 
</code></pre></div><script></freescript><div style="background-color:#eeeeee; border:2px solid;">
*下線
$$ \underline{\text{a long long ago}} $$
<div width="100%" align="center><span class="mrow" id="MathJax-Span-2"><span class="munderover" id="MathJax-Span-3"><span style="display: inline-block; position: relative; width: 6.087em; height: 0px;"><span style="position: absolute; clip: rect(1.127em, 1006.09em, 2.457em, -999.997em); top: -2.094em; left: 0em;"><span class="mtext" id="MathJax-Span-4"><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;">a</span><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;"> </span><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;">l</span><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;">o</span><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;">n</span><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;">g</span><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;"> </span><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;">l</span><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;">o</span><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;">n</span><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;">g</span><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;"> </span><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;">a</span><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;">g</span><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;">o</span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span><span style="position: absolute;clip: rect(1.127em, 1000.36em, 2.457em, -999.997em);top: -1.918em;left: 0em;"><span class="mo" id="MathJax-Span-5"><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;">_________________</span></span><span style="display: inline-block; width: 0px; height: 2.099em;"></span></span></span></span></span></div>
</div>

2025年1月25日 (土) 16:59時点における最新版

Mathjax 2.7に戻る。

概要

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


 

MathJax is defined.

 Version2.0系に関する記事です。現在の2.0系最新バージョンは

 

MathJax version: 2.7.9

 

1.二次方程式の解の公式

$$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$

x=b±b24ac2a

2.積分の例

$$\int_{0}^{1} x^2 \, dx = \frac{1}{3}$$

10x2dx=13


3.行列の掛け算

$$A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}, B = \begin{pmatrix} 5 & 6 \\ 7 & 8 \end{pmatrix}, A \times B = \begin{pmatrix} 19 & 22 \\ 43 & 50 \end{pmatrix}$$

A=(1234),B=(5678),A×B=(19224350)


4.複素数の計算

$$z = 3 + 4i, |z| = \sqrt{3^2 + 4^2} = 5$$

z=3+4i,|z|=32+42=5


5.ピタゴラスの定理

$$a^2 + b^2 = c^2$$

a2+b2=c2


6.シュレディンガー方程式

$$i \hbar \frac{\partial}{\partial t} \psi = \hat{H} \psi$$

itψ=ˆHψ


7.ベクトルの内積

$$\vec{A} \cdot \vec{B} = |\vec{A}| |\vec{B}| \cos \theta$$

AB=|A||B|cosθ


8.ローレンツ変換

$$ x^{\prime} = \gamma (x - vt), \phantom{0} t^{\prime} = \gamma ( t - \frac{vx}{c^2} ) $$

x=γ(xvt),0t=γ(tvxc2)


9.二項定理

$$ (x + y)^n = \sum_{k=0}^{n} \binom{n}{k} x^{n-k} y^k $$

(x+y)n=nk=0(nk)xnkyk


10.解析関数のコーシー・リーマン方程式

$$\frac{\partial u}{\partial x} = \frac{\partial v}{\partial y}, \quad \frac{\partial u}{\partial y} = -\frac{\partial v}{\partial x}$$

ux=vy,uy=vx


11.正弦関数の定義

$$\sin(\theta) = \frac{\text{対辺}}{\text{斜辺}}$$

sin(θ)=対辺斜辺


12.余弦定理

$$c^2 = a^2 + b^2 - 2ab \cos(C)$$

c2=a2+b22abcos(C)


13.三重角の公式(正弦)

$$\sin(3\theta) = 3\sin(\theta) - 4\sin^3(\theta)$$

sin(3θ)=3sin(θ)4sin3(θ)


  • 分数

xy

  • 下線
a long long ago_________________