メインコンテンツまでスキップ

TeXコマンド一覧

Desmosのラベルや数式で使える TeX\TeX(LaTeX\LaTeX)コマンドの一覧です。標準的なコマンドの多くを利用できますが、一部は数式中で正しく認識されない場合があります。

ラベルでTeXを使う場合は、TeX部分をバッククォートで囲みます。詳しくは点・ラベル・ベクトルを参照してください。

ギリシャ文字​

以下は数式中でも変数として利用できます。

出力コマンド備考
α\alpha\alpha \α
β\beta\beta \β
γ\gamma\gamma \γ
Γ\Gamma\Gamma \Γ
ϝ\digamma\digamma \Gammad \gammad \Ϝ
δ\delta\delta \δ
Δ\Delta\Delta \Δ
ϵ\epsilon\epsilon \ϵ
ε\varepsilon\varepsilon \epsiv \ε
ζ\zeta\zeta \ζ
η\eta\eta \η
θ\theta\theta \θ
Θ\Theta\Theta \Θ
ϑ\vartheta\vartheta \thetasym \thetav \ϑ
ι\iota\iota \ι
κ\kappa\kappa \κ
ϰ\varkappa\varkappa \kappav \ϰ
λ\lambda\lambda \λ
Λ\Lambda\Lambda \Λ
μ\mu\mu \μ
ν\nu\nu \ν
ξ\xi\xi \ξ
Ξ\Xi\Xi \Ξ
π\pi\pi \π
Π\Pi\Pi \Π
ϖ\varpi\varpi \piv \ϖ
ρ\rho\rho \ρ
ϱ\varrho\varrho \rhov \ϱ
σ\sigma\sigma \σ
Σ\Sigma\Sigma \Σ
ς\varsigma\varsigma \sigmav \sigmaf \ς
τ\tau\tau \τ
υ\upsilon\upsilon \upsi \υ
Υ\Upsilon\Upsilon \Upsih \upsih \Upsi \Υ
ϕ\phi\phi \φ
Φ\Phi\Phi \Φ
φ\varphi\varphi \phiv \ϕ
χ\chi\chi \χ
ψ\psi\psi \ψ
Ψ\Psi\Psi \Ψ
ω\omega\omega \ω
Ω\Omega\Omega \Ω

数学の関数など​

コマンドとして認識されても、Desmosで完全にサポートされていないものは表示が崩れる場合があります。

出力コマンド備考
arg⁡\arg\arg
degdeg\deg
det⁡\det\det
dimdim\dim
exp⁡\exp\exp
gcd⁡\gcd\gcd
homhom\hom
infinf\inf
kerker\ker
lglg\lg
limlim\lim
ln⁡\ln\ln
log⁡\log\log
max⁡\max\max
min⁡\min\min
supsup\sup
limsuplimsup\limsup
limin⁡fli\min f\liminf
injliminjlim\injlim
projlimprojlim\projlim
PrPr\Pr
arcsinh\mathrm{arcsinh}\arcsinh
arsinh\mathrm{arsinh}\arsinh
sinh⁡\sinh\sinh
arcsin⁡\arcsin\arcsin
sin⁡\sin\sin
arccosh\mathrm{arccosh}\arccosh
arcosh\mathrm{arcosh}\arcosh
cosh⁡\cosh\cosh
arccos⁡\arccos\arccos
cos⁡\cos\cos
arctanh\mathrm{arctanh}\arctanh
artanh\mathrm{artanh}\artanh
tanh⁡\tanh\tanh
arctan⁡\arctan\arctan
tan⁡\tan\tan
arcsech\mathrm{arcsech}\arcsech
arsech\mathrm{arsech}\arsech
sech\mathrm{sech}\sech
arcsec\mathrm{arcsec}\arcsec
sec\mathrm{sec}\sec
arccos ech\mathrm{arccos}\,ech\arccosech
ar cos echar\,\mathrm{cos}\,ech\arcosech
cos ech\mathrm{cos}\,ech\cosech
arccos ec\mathrm{arccos}\,ec\arccosec
cos ec\mathrm{cos}\,ec\cosec
arccsch\mathrm{arccsch}\arccsch
arcsch\mathrm{arcsch}\arcsch
csch\mathrm{csch}\csch
arccsc\mathrm{arccsc}\arccsc
csc\mathrm{csc}\csc
arccot anh\mathrm{arccot}\,anh\arccotanh
ar cot anhar\,\mathrm{cot}\,anh\arcotanh
cot anh\mathrm{cot}\,anh\cotanh
arccot an\mathrm{arccot}\,an\arccotan
cot an\mathrm{cot}\,an\cotan
arccoth\mathrm{arccoth}\arccoth
arcoth\mathrm{arcoth}\arcoth
coth\mathrm{coth}\coth
arccot\mathrm{arccot}\arccot
cot\mathrm{cot}\cot
arcctgharcctgh\arcctgh
arctgharctgh\arctgh
ctghctgh\ctgh
arcctgarcctg\arcctg
ctgctg\ctg
gcf\mathrm{gcf}\gcf
hcfhcf\hcf
lcm\mathrm{lcm}\lcm
projproj\proj
spanspan\span
ff\operatorname{f}Desmos の関数で使われる
ff\f
∑\displaystyle\sum\sum \summation \∑
∏\displaystyle\prod\prod \product \∏
∐\displaystyle\coprod\coprod \coproduct
∫\displaystyle\int\int \integral \∫
12\dfrac12\\frac{1}{2} \\fraction{1}{2} \\dfrac{1}{2} \\cfrac{1}{2}すべて同じ扱い
aba\over b\over{a}{b}
ans\mathrm{ans}\ansDesmos の他のツールでサポートされている関数
% of\%\ \mathrm{of}\percent \percentof
2\sqrt2\sqrt{2}
23\sqrt[3]{2}\sqrt[3]{2} \nthroot{3}{2} \cbrt{3}{2}

その他の記号​

出力コマンド備考
∀\forall\forall \∀
0{}^0\⁰1から9までも同様
14\dfrac14\¼
12\dfrac12\½
34\dfrac34\¾
\sqrt{\quad}\√
++\+
−-\- \– \— \−
±\pm\pm \plusmn \plusminus \±
∓\mp\mp \mnplus \minusplus
⋅\cdot\cdot \sdot
→\to\to \→
<\lt\lt \<
>\gt\gt \>
≤\leq\leq \le \≤
≥\geq\geq \ge \≥
∞\infty\infty \infinity \infin \∞
≠\neq\neq \ne \≠
==\=
×\times\times \cross \×
÷\div\div \divide \divides \÷
∼\sim\sim \~
≈\approx\approx \≈
◯\bigcirc\bigcirc \◯
∠\angle\angle \ang \∠
°\degree\degree \°
△\triangle\triangle \△
≅\cong\cong \≅
∡\measuredangle\measuredangle \∡
▱\parallelogram \▱
≆\ncong\ncong \≇
≁\nsim\nsim \≁
a\mathrm{a}\mathrm{a}
a\mathit a\mathit{a}
a\mathbf a\mathbf{a}
a\mathsf a\mathsf{a}
a\mathtt a\mathtt{a}
a^\hat{a}\hat{a}
a⃗\vec a\vec{a}
a~\tilde a\tilde{a}
a‾\underline a\underline{a}
aˉ\bar a\bar{a} \overline{a}
a→\overrightarrow a\overrightarrow{a}
a←\overleftarrow a\overleftarrow{a}
a↔\overleftrightarrow a\overleftrightarrow{a}
AB⏠\overgroup{AB}\overarc{AB}
a˙\dot a\dot{a}
a\textcolor{red}{a}\textcolor{red}{a}#ff0000 のように rgb も可
いくつかの特殊文字は使えないが、css の color プロパティが指定できる
a{}_a\_{a} \subscript{a}
a{}^a\^{a} \supscript{a} \superscript{a}
 \space\space \(スペース)少し間隔を開ける
..\.
′'\prime \'
′′''\dprime \″
\\backslash\backslash
$\text{\textdollar}\$
□\square\square \□
∣\mid\mid
@@\@
&\&\&
%\%\%
∥\parallel\parallel \∥
∦\nparallel\nparallel \∦
⊥\perp\perp \⟂
⟨a⟩\langle a \rangle\langle{a} \rangle{a}\langle a \rangle の方が正しいような...
∥a∥\lVert a\rVert\lVert{a} \rVert{a}\lVert a \rVert の方が正しいような...
(12)\left(\dfrac12 \right)\left( \frac12 \right)中の大きさに合わせて様々な括弧で囲む 詳しくは後述
(ab)\dbinom ab\binom{a}{b} \binomial{a}{b} \choose{a}{b}
leftとrightの補足

これらは対で使用し、中身に合わせて括弧の大きさを調整します。leftの後に左括弧、rightの後に右括弧を指定します。

特殊なコマンド​

内部処理向けと思われるため、通常の記事やグラフでの使用は推奨しません。

出力コマンド備考
\tildeNbsp改行させない半角スペースである   が挿入されるよう。\sim として認識される?
\class{クラス名}{a}任意のクラス名の span タグで囲める
入れ子にもできるので上手くクラス名を指定すれば css を当てさせることもできなくはない
\token{特定の数字}Desmos の他のツールで使われる
aa\editable{a} \MathQuillMathField{a}不明
\embed{}不明