本文记录Markdown中各个数学符号的写法。
使用的时候直接把数学符号对应的字符放到两个美元符号中即可:$$
。
空格:~
,组合:{}
,换行:\\
,元素分隔:&
,上标:^
,下标:_
。
比如矩阵是这样写的:
$\left[ \begin{matrix}
1&2&3\\
3&2&1\\
4&5&6\\
\end{matrix} \right]$
多行函数写法
- 使用
array
定义
$\begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}$
其中的 {lcl}
表示数组有三列,每一列的排列方式是:居左 l
(left
),居中 c
(center
)和居右 r
(right
)。
- 使用
cases
定义
$f(n) = \begin{cases} n/2, & if ~n~is~even \\ 3n+1, & if~n~is~odd \end{cases}$
参考网址:LaTeX – Multiline equations, systems and matrices
Latex数学符号
找到的数学符号表示的网址:LATEX Mathematical Symbols
此pdf(数学符号比较全)对应的图片:
(阿拉伯符号的读音,看表示符号就知道了,比如 就读作 alpha
)。