【更新中…】Latex语法总结

1 花体字母

$\mathbb{R}$

$\mathcal{R}$

$\mathscr{R}$

效果分别是
A , R , S , P \mathbb{A} ,\mathbb{R}, \mathbb{S}, \mathbb{P} A,R,S,P
A , R , S , P \mathcal{A},\mathcal{R}, \mathcal{S}, \mathcal{P} A,R,S,P
A , R , S , P \mathscr{A},\mathscr{R},\mathscr{S},\mathscr{P} A,R,S,P

2 常用数学符号

名称语法效果名称语法效果
任意\forall ∀ \forall 存在\exists ∃ \exists
无穷\infty ∞ \infty 属于\in ∈ \in
左箭头\leftarrow ← \leftarrow 右箭头\rightarrow → \rightarrow
上箭头\uparrow ↑ \uparrow 下箭头downarrow ↓ \downarrow
两端箭头\leftrightarrow ↔ \leftrightarrow

3 常用数学字母

名称语法效果名称语法效果
\pi π \pi π阿尔法\alpha α \alpha α
贝塔\beta β \beta β伽马\gamma γ \gamma γ

4 矩阵的表示

参见https://blog.csdn.net/qq_38228254/article/details/79469727

5 连加和连乘

\sum_{i=1}^{n}效果:
∑ i = 1 n \sum_{i=1}^{n} i=1n
\prod_{i=1}^{n}效果:
∏ i = 1 n \prod_{i=1}^{n} i=1n
其中
_后面加的是下标,^后面加的是上标

6 Latex公式的格式设置

6.1 换行对齐

$$ 
\begin{aligned}
V_\pi(s)=&G_{t1}·P(a_1)·p_1+G_{t2}·P(a_1)·p_2+G_{t3}·P(a_1)·p_3+\\
&G_{t4}·P(a_2)·p_4+G_{t5}·P(a_2)·p_5+G_{t6}·P(a_2)·p_6+\\
&G_{t7}·P(a_3)·p_7+G_{t8}·P(a_3)·p_8+G_{t9}·P(a_3)·p_9
\end{aligned}
$$

效果:
V π ( s ) = G t 1 ⋅ P ( a 1 ) ⋅ p 1 + G t 2 ⋅ P ( a 1 ) ⋅ p 2 + G t 3 ⋅ P ( a 1 ) ⋅ p 3 + G t 4 ⋅ P ( a 2 ) ⋅ p 4 + G t 5 ⋅ P ( a 2 ) ⋅ p 5 + G t 6 ⋅ P ( a 2 ) ⋅ p 6 + G t 7 ⋅ P ( a 3 ) ⋅ p 7 + G t 8 ⋅ P ( a 3 ) ⋅ p 8 + G t 9 ⋅ P ( a 3 ) ⋅ p 9 \begin{aligned} V_\pi(s)=&G_{t1}·P(a_1)·p_1+G_{t2}·P(a_1)·p_2+G_{t3}·P(a_1)·p_3+\\ &G_{t4}·P(a_2)·p_4+G_{t5}·P(a_2)·p_5+G_{t6}·P(a_2)·p_6+\\ &G_{t7}·P(a_3)·p_7+G_{t8}·P(a_3)·p_8+G_{t9}·P(a_3)·p_9 \end{aligned} Vπ(s)=Gt1P(a1)p1+Gt2P(a1)p2+Gt3P(a1)p3+Gt4P(a2)p4+Gt5P(a2)p5+Gt6P(a2)p6+Gt7P(a3)p7+Gt8P(a3)p8+Gt9P(a3)p9

备注:&在哪,就在哪里对齐。

6.2 公式带编号

  • \tag{编号}编号有括号
$$ 
\begin{aligned}
V_\pi(s)=&G_{t1}·P(a_1)·p_1+G_{t2}·P(a_1)·p_2+G_{t3}·P(a_1)·p_3+\\
&G_{t4}·P(a_2)·p_4+G_{t5}·P(a_2)·p_5+G_{t6}·P(a_2)·p_6+\\
&G_{t7}·P(a_3)·p_7+G_{t8}·P(a_3)·p_8+G_{t9}·P(a_3)·p_9  \tag{1-1}
\end{aligned}
$$

V π ( s ) = G t 1 ⋅ P ( a 1 ) ⋅ p 1 + G t 2 ⋅ P ( a 1 ) ⋅ p 2 + G t 3 ⋅ P ( a 1 ) ⋅ p 3 + G t 4 ⋅ P ( a 2 ) ⋅ p 4 + G t 5 ⋅ P ( a 2 ) ⋅ p 5 + G t 6 ⋅ P ( a 2 ) ⋅ p 6 + G t 7 ⋅ P ( a 3 ) ⋅ p 7 + G t 8 ⋅ P ( a 3 ) ⋅ p 8 + G t 9 ⋅ P ( a 3 ) ⋅ p 9 (1-1) \begin{aligned} V_\pi(s)=&G_{t1}·P(a_1)·p_1+G_{t2}·P(a_1)·p_2+G_{t3}·P(a_1)·p_3+\\ &G_{t4}·P(a_2)·p_4+G_{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7+Gt8P(a3)p8+Gt9P(a3)p91-1

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

dreautumn

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值