LaTex语法(常用数学符号的语法和注意事项)

说明:[]括号表示把语法括起来,并不表示LaTex语法。

1. 求和符号(Σ)

这个符号的基本语法为:[\sum_{}^{}]。

符号有两种模式:内联数学模式(inside math mode)和显示数学模式(displayed math mode)。

内联数学模式:排版时使用各种格式限制符号,使其尊重符号只占用一行的约定,但符号看起来就不太美观,在word中输入数学符号也有这个特性。

显示数学模式(\displaystyle):这种模式以显示为优秀,符号符合数学的常用格式,更为美观,但是会占用更多显示的空间,会把旁边的其它符号挤向一边。

例如:

内联数学模式(默认):[\sum_{n=-\infty}^{+\infty}] \sum_{n=-\infty}^{+\infty}  。

显示数学模式:[\displaystyle \sum_{n=-\infty}^{+\infty} ] [\displaystyle \sum_{n=-\infty}^{+\infty}]  。

注意,这个 \displaystyle 标记可以加在命令行的最开头,使得其后面的所有符号都遵行显示械。

2. 极限符号(lim)

语法格式[\lim_{}] 

同样存在两种模式。

[ \lim_{n->0} ]\lim_{n->0} 

[\displaystyle \lim_{n->0}] \displaystyle \lim_{n->0}

3.  黑板粗体(blackboard bold)(又称双字母(double strokes,即双写某些笔画))

语法格式[\mathbb{letter}] 

例如,常用的,[\mathbb{R}]\mathbb{R} ,[\mathbb{C}]\mathbb{C} ,[\mathbb{Z}]\mathbb{Z}

4.  Fourier系数常用符号(向下的帽)

[\hat]\hat{f}(n) 或者宽的帽 [\widehat]\widehat{f}(n) 。

5.  向上的帽

[\check{f}]\check{f}(n)

6.  积分符号(∫)

不带积分上下限的积分符号[\int_{}^{}]\int_{}^{} ,带上下限的积分符号[\int_{-\infty}^{+\infty}] ,

只有下限的积分符号 [\int_{\mathbb{R}}^{}]\int_{\mathbb{R}}^{}

7.  变体字母l

[\ell]\ell

8.  公式中可以随内部增大而被撑大的标识

\left symbol  \right symbol

试对比:

[\displaystyle \left | \int_{\delta \leq |\theta|}^{}f(\theta)p_{k}\right | ]  \displaystyle \left | \int_{\delta \leq |\theta|}^{}f(\theta)p_{k} \right |

[ \displaystyle  | \int_{\delta \leq |\theta|}^{}f(\theta)p_{k}| ]  \displaystyle | \int_{\delta \leq |\theta|}^{}f(\theta)p_{k}|

9.  相似符号(~)

[\sim] \sim

10.   跨越多行的花括号({array})

行用“\\”分隔,列用“&”分隔,分别有有、中、右对齐方式:

c – for centred

l – for flush left

r – for flush right

 [\\displaystyle a_{n}=
\\left\{ \\begin{array}{rcl}1(|n| < N)  \\ 0(|n| \\geq N) \\end{array}\\right.]

\displaystyle a_{n}= \left\{ \begin{array}{rcl}1(|n| < N ) \\ 0(|n| \geq N) \end{array}\right.

11.   矩阵的各种形式({matrix},{bmatrix})

行用“\\”分隔,列用“&”分隔

(1) 无边框(无括号)矩阵

[\\begin{matrix} 
1&2&3\\1&2&3
\\1&2&3
\\end{matrix}]

\begin{matrix} 1&2&3\\1&2&3 \\1&2&3 \end{matrix}

(2) 中括号(方括号)边框矩阵(brackets)

[\\begin{bmatrix} 
1&2&3\\1&2&3
\\1&2&3
\\end{bmatrix}]

\begin{bmatrix} 1&2&3\\1&2&3 \\1&2&3 \end{bmatrix}

(3)  圆括号(小括号)边框矩阵(parentheses)

[\\begin{pmatrix} 
1&2&3\\1&2&3
\\1&2&3
\\end{pmatrix}]

\begin{pmatrix} 1&2&3\\1&2&3 \\1&2&3 \end{pmatrix}

(4) 矩阵行列式(vertical )

[\\begin{vmatrix} 
1&2&3\\1&2&3
\\1&2&3
\\end{vmatrix}]

\begin{vmatrix} 1&2&3\\1&2&3 \\1&2&3 \end{vmatrix}

(5)  花括号(大括号)矩阵(curly brackets—Braces)

[\\begin{Bmatrix} 
1&2&3\\1&2&3
\\1&2&3
\\end{Bmatrix}]

\begin{Bmatrix} 1&2&3\\1&2&3 \\1&2&3 \end{Bmatrix}

(6)   拉长括号 m×n 矩阵

[ A_{m,n} = 
\\begin{pmatrix}
a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\
a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\
\vdots  & \vdots  & \ddots & \vdots  \\
a_{m,1} & a_{m,2} & \cdots & a_{m,n} 
\\end{pmatrix} ]

A_{m,n} = \begin{pmatrix} a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\ a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m,1} & a_{m,2} & \cdots & a_{m,n} \end{pmatrix}

(7)  双垂直线矩阵(V-double vertical bar)

[\\begin{Vmatrix} 
1&2&3\\1&2&3
\\1&2&3
\\end{Vmatrix}]

\begin{Vmatrix} 1&2&3\\1&2&3 \\1&2&3 \end{Vmatrix} 

12.   拉丁字母的罗马字体(非斜体)(math-roman typestyle )(no-italic)

试比较

[\mathrm{A}] \mathrm{A} 的 A

13.   范数符号和绝对值符号(\|表示双竖线)

[\left \|  \right \| ] \left \| f - \sum_{|n| \leq N}^{}c_{n}e_{n} \right \|

[\left |  \right | ]   \left | f - \sum_{|n| \leq N}^{}c_{n}e_{n} \right |

14.   左上下角标号(_{a}^{b} )

 [ _{a}^{b}\textrm{y} ] 或 [ _{a}^{b}\mathrm{y} ]      _{a}^{b}\textrm{y}

15. 直和符号 (\oplus——圆圈+)

[a  \oplus b ] a \oplus b

16. 多字母函数的环绕间距(“\”+函数名)

“\”符号会自动调整上下标间距和前后间距等。

试对比:

[rsin\theta] rsin\theta  和  [r\sin \theta] r\sin \theta

17.  头顶上的波浪符号

[\tilde] \tilde{f}   [\widetilde{f}]\widetilde{f}

18.   计算定积分时的上下限书写法

[\displaystyle \left. \int_{0}^{y}\frac{dx}{1+x^{2}}= \arctan(u) \right \vert_{0}^{1}=\frac{\pi}{4}]\displaystyle \left. \int_{0}^{y}\frac{dx}{1+x^{2}}= \arctan(u) \right \vert_{0}^{1}=\frac{\pi}{4}

思想:看符号看成一对符号,左侧用空代替,用 “\left.”表示且要放在积分符号的前面,右边用\right +"符号"表示。 

另一种写法[\bigg |_{a}] \bigg |_{a} (关键在于\bigg |)

[\displaystyle \frac{df}{dx}\bigg |_{a} = \lim_{x \rightarrow a}\frac{f(x)-f(a)}{x-a}]

\displaystyle \frac{df}{dx}\bigg |_{a} = \lim_{x \rightarrow a}\frac{f(x)-f(a)}{x-a}

19.  斜粗体

[ \boldsymbol {A} ]\boldsymbol {A}

20.  weierstrass p(德)魏尔施特拉斯 p)(℘)

用于在复分析中表示 weierstrass ℘ 函数,读作 “魏尔施特拉斯 p”。

[\wp]   \wp

21. 字母z的德文尖角体

[\frak{z}]或 \mathfrak{z} \frak{z} ,尖角体语法 \frak{} 或 \mathfrak{z}  。

22. =号头上一个?号

[\overset{?}{=}] \overset{?}{=}  或 [\stackrel{?}{=}] \stackrel{?}{=} 

23.  复合函数符号(composite function)(小空心圆)

[f \circ g]  f \circ g 

24.  头上一横

[\overline{f}] \overline{f} 或 [\bar{f}] \bar{f} 

  • 0
    点赞
  • 24
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值