常用Tex代码编辑汇总
Tex常用代码对照表
\frac{a}{b} | |
---|---|
{x}^{ab} | |
{x}_{12} | |
\sqrt{xyz} | |
\sqrt[{x}]{{y}}或\sqrt%5B{x}%5D{{y}} | |
\log_{a}{x} | |
C_{m}^{n} | |
\sqrt{a^2}=|a| | |
\sum_{k=1}^{n}{a_k} | |
\prod_{k=1}^{n}{a_k} | |
\lim_{k\to \infty}{k^{-1}}=0 | |
\int_{a}^{b}{f(x)dx} | |
\pm1,\mp1 | |
\Rightarrow,\Leftarrow,\Leftrightarrow | |
\ne,\le,\ge,\equiv | |
f’(x)\in [a,b]或f’(x)\in%5B a,b%5D | |
\tan{30{\circ}}=\frac{1}{\cot{30{\circ}}} | |
\pi,\alpha,\beta,\gamma,\theta,\lambda | |
{a}\cdot{b},{a}\times{b},{a}\div{b} | |
\Delta,\bigtriangleup,\odot,\angle,\perp | |
\forall,\exists,\emptyset | |
{{n}\choose{m}} | |
f(x) = \begin{cases}1,&\text{x>0},\\0,&\text{x<0}.\end{cases} |
Typora公式法插入样例:
1.\frac{a}{b}
a
b
\frac{a}{b}
ba
2.{x}^{ab}
x
a
b
{x}^{ab}
xab
3.{x}{12}
x
12
{x}_{12}
x12
4.\sqrt{xyz}
x
y
z
\sqrt{xyz}
xyz
5.\sqrt[{x}]{{y}}
y
x
\sqrt[{x}]{{y}}
xy
6.\log{a}{x}
log
a
x
\log_{a}{x}
logax
7.C_{m}^{n}
C
m
n
C_{m}^{n}
Cmn
8.\sqrt{a^2}=|a|
a
2
=
∣
a
∣
\sqrt{a^2}=|a|
a2=∣a∣
9.\sum_{k=1}^{n}{a_k}
∑
k
=
1
n
a
k
\sum_{k=1}^{n}{a_k}
k=1∑nak
10.\prod_{k=1}^{n}{a_k}
∏
k
=
1
n
a
k
\prod_{k=1}^{n}{a_k}
k=1∏nak
11.\lim_{k\to \infty}{k^{-1}}=0
lim
k
→
∞
k
−
1
=
0
\lim_{k\to \infty}{k^{-1}}=0
k→∞limk−1=0
12.\int_{a}^{b}{f(x)dx}
∫
a
b
f
(
x
)
d
x
\int_{a}^{b}{f(x)dx}
∫abf(x)dx
13.\pm1,\mp1
±
1
,
∓
1
\pm1,\mp1
±1,∓1
14.\Rightarrow,\Leftarrow,\Leftrightarrow
⇒
,
⇐
,
⇔
\Rightarrow,\Leftarrow,\Leftrightarrow
⇒,⇐,⇔
15.\ne,\le,\ge,\equiv
≠
,
≤
,
≥
,
≡
\ne,\le,\ge,\equiv
=,≤,≥,≡
16.f’(x)\in [a,b]
f
′
(
x
)
∈
[
a
,
b
]
f'(x)\in [a,b]
f′(x)∈[a,b]
17.\tan{30{\circ}}=\frac{1}{\cot{30{\circ}}}
tan
3
0
∘
=
1
cot
3
0
∘
\tan{30^{\circ}}=\frac{1}{\cot{30^{\circ}}}
tan30∘=cot30∘1
18.\pi,\alpha,\beta,\gamma,\theta,\lambda
π
,
α
,
β
,
γ
,
θ
,
λ
\pi,\alpha,\beta,\gamma,\theta,\lambda
π,α,β,γ,θ,λ
19.{a}\cdot{b},{a}\times{b},{a}\div{b}
a
⋅
b
,
a
×
b
,
a
÷
b
{a}\cdot{b},{a}\times{b},{a}\div{b}
a⋅b,a×b,a÷b
20.\Delta,\bigtriangleup,\odot,\angle,\perp
Δ
,
△
,
⊙
,
∠
,
⊥
\Delta,\bigtriangleup,\odot,\angle,\perp
Δ,△,⊙,∠,⊥
21.\forall,\exists,\emptyset
∀
,
∃
,
∅
\forall,\exists,\emptyset
∀,∃,∅
22.{{n}\choose{m}}
(
n
m
)
{{n}\choose{m}}
(mn)
23.f(x) = \begin{cases}1,&\text{x>0},\\0,&\text{x<0}.\end{cases}}
f
(
x
)
=
{
1
,
x>0
,
0
,
x<0
.
f(x)=\begin{cases}1,&\text{x>0},\\0,&\text{x<0}.\end{cases}
f(x)={1,0,x>0,x<0.
参考文档:https://www.latexlive.com/help