一,角标
上标
代码:
$a^2,x^2,x^2+y^2,x^{z+a}$
效果:
a
2
,
x
2
,
x
2
+
y
2
,
x
z
+
a
a^2,x^2,x^2+y^2,x^{z+a}
a2,x2,x2+y2,xz+a
下标
代码:
$x_1,x_2,x_{12}$
效果:
x
1
,
x
2
,
x
12
x_1,x_2,x_{12}
x1,x2,x12
组合使用
代码:
$y=x_1^2+2x_2^2+x_{1,2}^{2}$
效果:
y
=
x
1
2
+
2
x
2
2
+
x
1
,
2
2
y=x_1^2+2x_2^2+x_{1,2}^{2}
y=x12+2x22+x1,22
注意:有多个下标或者多个上标用{},将参数写在{}中
二,分式与根式
分式
代码:
$\frac{1}{2},\frac{x}{y}(y\ne0)$
效果:
1
2
,
x
y
(
y
≠
0
)
\frac{1}{2},\frac{x}{y}(y\ne0)
21,yx(y=0)
根式
代码:
$\sqrt 2,\sqrt[3]2,\sqrt[5]{x^2+y^2}$
效果:
2
,
2
3
,
x
2
+
y
2
5
\sqrt 2,\sqrt[3]2,\sqrt[5]{x^2+y^2}
2,32,5x2+y2
三,运算符
常用运算符
代码:
$+,-,\times,\div$
$\cdot,\pm,\mp$
$>,<,\ge,\le,=,\ne,\gg,\ll,\approx$
$\cap,\cup,\in,\notin,\sub,\subseteq,\subsetneqq,\varnothing,\forall,\exists,\nexists$
$\therefore,\because$
$\mathbb R,\R,\N,\Z_+$
$\mathcal F$
效果:
+
,
−
,
×
,
÷
+,-,\times,\div
+,−,×,÷
⋅
,
±
,
∓
\cdot,\pm,\mp
⋅,±,∓
>
,
<
,
≥
,
≤
,
=
,
≠
,
≫
,
≪
,
≈
>,<,\ge,\le,=,\ne,\gg,\ll,\approx
>,<,≥,≤,=,=,≫,≪,≈
∩
,
∪
,
∈
,
∉
,
⊂
,
⊆
,
⫋
,
∅
,
∀
,
∃
,
∄
\cap,\cup,\in,\notin,\sub,\subseteq,\subsetneqq,\varnothing,\forall,\exists,\nexists
∩,∪,∈,∈/,⊂,⊆,⫋,∅,∀,∃,∄
∴
,
∵
\therefore,\because
∴,∵
R
,
R
,
N
,
Z
+
\mathbb R,\R,\N,\Z_+
R,R,N,Z+
F
\mathcal F
F
公式运算符
代码:
$\sum,\prod,\sum_i,\sum_{i=1}^N,\sum\limits_{i=1}^N$
==注意:如果想让$\sum$的上下标在上下显示,需要加上\limits==
$\int,\iint,\iiint,\oint,\int_{-\infty}^{\infty} f(x) dx,\int_{-\infty}^{\infty}f(x)\text dx$
==注意:\text可以是字母不是倾斜体==
效果:
∑
,
∏
,
∑
i
,
∑
i
=
1
N
,
∑
i
=
1
N
\sum,\prod,\sum_i,\sum_{i=1}^N,\sum\limits_{i=1}^N
∑,∏,∑i,∑i=1N,i=1∑N
注意:如果想让
∑
\sum
∑的上下标在上下显示,需要加上\limits
∫
,
∬
,
∭
,
∮
,
∫
−
∞
∞
f
(
x
)
d
x
,
∫
−
∞
∞
f
(
x
)
d
x
\int,\iint,\iiint,\oint,\int_{-\infty}^{\infty} f(x) dx,\int_{-\infty}^{\infty}f(x)\text dx
∫,∬,∭,∮,∫−∞∞f(x)dx,∫−∞∞f(x)dx
注意:\text可以是字母不是倾斜体