字体样式
一般样式:\text{文本}
显示直立文本: \textup{文本}
意大利斜体: \textit{文本}
加粗命令: \textbf{文本}
效果:
text
\text{text}
text
text
\textup{text}
text
text
\textit{text}
text
text
\textbf{text}
text
字母上方加符号
加 ^ 号 \hat 或者 \widehat{}
加 - 横线 \overline{}
加 ~ 波浪线 \widetilde{}
加单点号或者双点号 \dot{} 或者 \ddot{}
加下划线 \underline{}
等式对齐
$$\begin{aligned}
a &=b+c+d \\
&=e+f+g
\end{aligned}$$
效果:
a
=
b
+
c
+
d
=
e
+
f
+
g
\begin{aligned} a &=b+c+d \\ &=e+f+g \end{aligned}
a=b+c+d=e+f+g
转置符号
$\mathbf{A}^\mathrm{T}$
$\mathbf{A}^\top$
$\mathbf{A}^\mathsf{T}$
$\mathbf{A}^\intercal$
效果:
A
T
A
⊤
A
T
A
⊺
\mathbf{A}^\mathrm{T} \mathbf{A}^\top \mathbf{A}^\mathsf{T} \mathbf{A}^\intercal
ATA⊤ATA⊺
空心大写字母
$\mathbb{R}$
效果:
R
\mathbb{R}
R
运算符号
$\cdot$
$\times$
$\div$
$\in$
$\notin$
效果:
⋅
\cdot
⋅
×
\times
×
÷
\div
÷
∈
\in
∈
∉
\notin
∈/
连加和连乘
$\sum\limits_{i=1}^{n}$ //上下标在上下方
$\sum_{i=1}^{n}$ //上下标在右上下方
$\prod\limits_{i=1}^{n}$
$\prod_{i=1}^{n}$
∑ i = 1 n \sum\limits_{i=1}^{n} i=1∑n
∑ i = 1 n \sum_{i=1}^{n} ∑i=1n
∏ i = 1 n \prod\limits_{i=1}^{n} i=1∏n
∏ i = 1 n \prod_{i=1}^{n} ∏i=1n
大括号公式
$$f(x)=
\begin{cases}
0& \text{x=0}\\
1& \text{x!=0}
\end{cases}$$
效果:
f
(
x
)
=
{
0
x=0
1
x!=0
f(x)= \begin{cases} 0& \text{x=0}\\ 1& \text{x!=0} \end{cases}
f(x)={01x=0x!=0
希腊符号

这篇博客总结了 LaTeX 中常用的符号用法,包括字体样式如直立、斜体和加粗,字母上方的^、-、~、.和..符号,等式对齐,转置符号,空心大写字母,运算符,连加连乘,大括号表示条件公式,以及希腊字母的使用。通过实例展示了各种效果。

1466

被折叠的 条评论
为什么被折叠?



