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

提供:yonewiki
編集の要約なし
編集の要約なし
86行目: 86行目:
<div class="hljs-wrap"><pre data-label="MathJaxSample" class="pre-wrap">
<div class="hljs-wrap"><pre data-label="MathJaxSample" class="pre-wrap">
<code class="tex">\frac{1}{2}
<code class="tex">\frac{1}{2}
</code></pre></div><script></freescript><div align="center" style="background-color:#eeeeee; border:2px solid;"><span class="none_jax" id="MathNonJax-Span-1" style="width: 1.076em; display: inline-block;"><span style="display: inline-block; position: relative; width: 0.821em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(0.463em, 1000.82em, 3.224em, -999.997em); top: -2.094em; left: 0em;"><span class="mrow" id="MathNonJax-Span-2"><span class="mfrac" id="MathNonJax-Span-3"><span style="display: inline-block; position: relative; width: 0.616em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(1.281em, 1000.51em, 2.61em, -999.997em); top: -2.912em; left: 50%; margin-left: -0.253em;"><span class="mn" id="MathNonJax-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;">1</span></span><span style="display: inline-block; width: 0px; height: 2.252em;"></span></span><span style="position: absolute; clip: rect(1.281em, 1000.51em, 2.61em, -999.997em); top: -1.48em; left: 50%; margin-left: -0.253em;"><span class="mn" id="MathNonJax-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;">2</span></span><span style="display: inline-block; width: 0px; height: 2.252em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1000.62em, 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.616em; 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: -1.295em; border-left: 0px solid; width: 0px; height: 3.25em;"></span></span></div>
</code></pre></div><script></freescript><div align="center" style="background-color:#eeeeee; border:2px solid;"><span class="math" id="MathNonJax-Span-1" style="width: 1.076em; display: inline-block;"><span style="display: inline-block; position: relative; width: 0.821em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(0.463em, 1000.82em, 3.224em, -999.997em); top: -2.094em; left: 0em;"><span class="mrow" id="MathNonJax-Span-2"><span class="mfrac" id="MathNonJax-Span-3"><span style="display: inline-block; position: relative; width: 0.616em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(1.281em, 1000.51em, 2.61em, -999.997em); top: -2.912em; left: 50%; margin-left: -0.253em;"><span class="mn" id="MathNonJax-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;">1</span></span><span style="display: inline-block; width: 0px; height: 2.252em;"></span></span><span style="position: absolute; clip: rect(1.281em, 1000.51em, 2.61em, -999.997em); top: -1.48em; left: 50%; margin-left: -0.253em;"><span class="mn" id="MathNonJax-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;">2</span></span><span style="display: inline-block; width: 0px; height: 2.252em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1000.62em, 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.616em; 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: -1.295em; border-left: 0px solid; width: 0px; height: 3.25em;"></span></span></div>





2025年1月10日 (金) 18:49時点における版

Mathjax 2.7に戻る。

Mathjax コード一覧に戻る。

概要

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

 

MathJax is defined.

 Version2.0系に関する記事です。このページのMathJaxバージョンは

 

MathJax version: 2.7.9

 

  • 分数

tex
\frac{1}{2}
MathJaxSample

12


  • 分数(NonMathjax)

tex
\frac{1}{2}
MathJaxSample
12


  • 分数(大)

tex
\displaystyle \frac{1}{2}
MathJaxSample

12


  • 分数(大)2

tex
\dfrac{1}{2}
MathJaxSample

12


  • 増減表

tex
\begin{array}{c|ccccc}
  x     & \cdots & -1 & \cdots & 1 & \cdots \\ 
  \hline
  f’(x) & + & 0 && 0 & + \\ 
  \hline
  f(x)  & \nearrow & e & \searrow & -e & \nearrow
\end{array}
MathJaxSample

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


  • 平方根

tex
\sqrt{ 2 }
MathJaxSample

\sqrt{ 2 }


  • 微分(ラグランジュ)

tex
f'
MathJaxSample

f'


  • 微分サンプル

tex
\begin{eqnarray}
f'(x)
 = \frac{ df }{ dx }
 = \lim_{ \Delta x \to 0 } \frac{ f(x + \Delta x) - f(x) }{ \Delta x }
\end{eqnarray}
MathJaxSample

\begin{eqnarray} f'(x) = \frac{ df }{ dx } = \lim_{ \Delta x \to 0 } \frac{ f(x + \Delta x) - f(x) }{ \Delta x } \end{eqnarray}


  • 表サンプル

tex
\begin{array}{c|ccccc}
  x     & \cdots & -1 & \cdots & 1 & \cdots \\ 
  \hline
  f’(x) & + & 0 && 0 & + \\ 
  \hline
  f(x)  & \nearrow & e & \searrow & -e & \nearrow
\end{array}
MathJaxSample

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


  • 下線

tex
\underline{ A }
MathJaxSample

\underline{ A }


  • 下線

tex
\underline{ A }
MathJaxSample

\underline{A\phantom{B}}


  • 下線

tex
\underline{ AB }
MathJaxSample

\underline{AB}