Mathjax2.x 練習場

提供:yonewiki
2025年1月14日 (火) 16:03時点におけるYo-net (トーク | 投稿記録)による版

Mathjax 2.7に戻る。

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

概要

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

 

MathJax is not defined. Global keys: NORLQ, RLCONF, RLPAGEMODULES, RLQ, RLSTATE, __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, 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, 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, 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} $$