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

提供:yonewiki
編集の要約なし
編集の要約なし
87行目: 87行目:
<code class="tex">\frac{1}{2}
<code class="tex">\frac{1}{2}
</code></pre></div><script></freescript><div style="background-color:#eeeeee; border:2px solid;">
</code></pre></div><script></freescript><div style="background-color:#eeeeee; border:2px solid;">
<span class="MathJax_Preview" style="color: inherit;"></span><div class="MathJax_Display" style="text-align: center;"><span class="MathJax" tabindex="0"><span class="none-math" style="width: 0.923em; display: inline-block;" data="display: \frac{1}{2}"><span style="display: inline-block; position: relative; width: 0.718em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(0.463em, 1000.72em, 3.224em, -999.997em); top: -2.094em; left: 0em;"><span class="mrow"><span class="mfrac"><span style="display: inline-block; position: relative; width: 0.514em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(1.127em, 1000.41em, 2.457em, -999.997em); top: -2.758em; left: 50%; margin-left: -0.202em;"><span class="mn"><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.099em;"></span></span><span style="position: absolute; clip: rect(1.127em, 1000.41em, 2.457em, -999.997em); top: -1.327em; left: 50%; margin-left: -0.202em;"><span class="mn"><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.099em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1000.51em, 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.514em; 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></span></div>
<span class="MathJax_Preview" style="color: inherit;"></span><div class="MathJax_Display" style="text-align: center;"><span class="MathJax" tabindex="0"><span class="none-math" style="width: 0.923em; display: inline-block;" id="display: \frac{1}{2}"><span style="display: inline-block; position: relative; width: 0.718em; height: 0px; font-size: 127%;"><span style="position: absolute; clip: rect(0.463em, 1000.72em, 3.224em, -999.997em); top: -2.094em; left: 0em;"><span class="mrow"><span class="mfrac"><span style="display: inline-block; position: relative; width: 0.514em; height: 0px; margin-right: 0.105em; margin-left: 0.105em;"><span style="position: absolute; clip: rect(1.127em, 1000.41em, 2.457em, -999.997em); top: -2.758em; left: 50%; margin-left: -0.202em;"><span class="mn"><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.099em;"></span></span><span style="position: absolute; clip: rect(1.127em, 1000.41em, 2.457em, -999.997em); top: -1.327em; left: 50%; margin-left: -0.202em;"><span class="mn"><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.099em;"></span></span><span style="position: absolute; clip: rect(0.872em, 1000.51em, 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.514em; 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></span></div>
</div>
</div>



2025年1月14日 (火) 16:27時点における版

Mathjax 2.7に戻る。

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

概要

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

 

MathJax is not defined. Global keys: $, NORLQ, RLCONF, RLPAGEMODULES, RLQ, RLSTATE, VisualEditorSupportCheck, __playwright__binding__, __pwInitScripts, adsbygoogle, alert, atob, blur, btoa, c, caches, cancelAnimationFrame, cancelIdleCallback, captureEvents, clearInterval, clearTimeout, clientInformation, close, closed, confirm, cookieStore, createImageBitmap, credentialless, crossOriginIsolated, crypto, css_browser_selector, customElements, devicePixelRatio, document, documentPictureInPicture, event, external, fence, fetch, find, focus, frameElement, frames, getComputedStyle, getScreenDetails, getSelection, history, hljs, indexedDB, innerHeight, innerWidth, isCompatible, isSecureContext, jQuery, launchQueue, length, localStorage, location, locationbar, matchMedia, mediaWiki, menubar, moveBy, moveTo, mw, myAddAccordionPanel, myEditInnerHighligt, mySetUpHljsPlugins, mySetupHighlightJs, mySetupToggleDetailsAnimation, name, navigation, navigator, onabort, onafterprint, onanimationend, onanimationiteration, onanimationstart, onappinstalled, onauxclick, onbeforeinput, onbeforeinstallprompt, onbeforematch, onbeforeprint, onbeforetoggle, onbeforeunload, onbeforexrselect, onblur, oncancel, oncanplay, oncanplaythrough, onchange, onclick, onclose, oncontentvisibilityautostatechange, oncontextlost, oncontextmenu, oncontextrestored, oncuechange, ondblclick, ondevicemotion, ondeviceorientation, ondeviceorientationabsolute, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, ondurationchange, onemptied, onended, onerror, onfocus, onformdata, ongotpointercapture, onhashchange, oninput, oninvalid, onkeydown, onkeypress, onkeyup, onlanguagechange, onload, onloadeddata, onloadedmetadata, onloadstart, onlostpointercapture, onmessage, onmessageerror, onmousedown, onmouseenter, onmouseleave, onmousemove, onmouseout, onmouseover, onmouseup, onmousewheel, onoffline, ononline, onpagehide, onpagereveal, onpageshow, onpageswap, onpause, onplay, onplaying, onpointercancel, onpointerdown, onpointerenter, onpointerleave, onpointermove, onpointerout, onpointerover, onpointerrawupdate, onpointerup, onpopstate, onprogress, onratechange, onrejectionhandled, onreset, onresize, onscroll, onscrollend, onscrollsnapchange, onscrollsnapchanging, onsearch, onsecuritypolicyviolation, onseeked, onseeking, onselect, onselectionchange, onselectstart, onslotchange, onstalled, onstorage, onsubmit, onsuspend, ontimeupdate, ontoggle, ontransitioncancel, ontransitionend, ontransitionrun, ontransitionstart, onunhandledrejection, onunload, onvolumechange, onwaiting, onwebkitanimationend, onwebkitanimationiteration, onwebkitanimationstart, onwebkittransitionend, onwheel, open, openDatabase, opener, origin, originAgentCluster, outerHeight, outerWidth, pageXOffset, pageYOffset, parent, performance, personalbar, pluralRuleParser, postMessage, print, prompt, queryLocalFonts, queueMicrotask, releaseEvents, reportError, requestAnimationFrame, requestIdleCallback, resizeBy, resizeTo, scheduler, screen, screenLeft, screenTop, screenX, screenY, scroll, scrollBy, scrollTo, scrollX, scrollY, scrollbars, self, sessionStorage, setInterval, setTimeout, sharedStorage, showDirectoryPicker, showOpenFilePicker, showSaveFilePicker, speechSynthesis, status, statusbar, stop, structuredClone, styleMedia, toolbar, top, trustedTypes, ve, visualViewport, webkitCancelAnimationFrame, webkitRequestAnimationFrame, webkitRequestFileSystem, webkitResolveLocalFileSystemURL, window

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

 

MathJax failed to load.

 

  • 分数

tex
\frac{1}{2}
MathJaxSample

$$ \frac{1}{2} $$


  • 分数(NonMathjax)

tex
\frac{1}{2}
MathJaxSample
12


  • 分数(大)

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

$$ \displaystyle \frac{1}{2} $$


  • 分数(大)2

tex
\dfrac{1}{2}
MathJaxSample

$$ \dfrac{1}{2} $$


  • 増減表

tex
\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}
MathJaxSample

$$ \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} $$


  • 平方根

tex
\sqrt{ 2 }
MathJaxSample

$$ \sqrt{ 2 } $$


  • 微分(ラグランジュ)

tex
f^{\prime}
MathJaxSample

$$ f^{\prime} $$


  • 微分サンプル

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

$$ \begin{eqnarray} f^{\prime}(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^{\prime}(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^{\prime}(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} $$