Markdown Latex 数学符号写法

433 阅读1分钟

本文记录Markdown中各个数学符号的写法。

使用的时候直接把数学符号对应的字符放到两个美元符号中即可:$$

空格:~,组合:{},换行:\\,元素分隔:&,上标:^,下标:_

比如矩阵是这样写的:

$\left[ \begin{matrix}
1&2&3\\
3&2&1\\
4&5&6\\
\end{matrix} \right]$

[123321456]\left[ \begin{matrix} 1&2&3\\ 3&2&1\\ 4&5&6\\ \end{matrix} \right]

多行函数写法

  1. 使用array定义
$\begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}$

z=af(x,y,z)=x+y+z\begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}

其中的 {lcl} 表示数组有三列,每一列的排列方式是:居左 lleft),居中 ccenter)和居右 rright)。

  1. 使用cases 定义
$f(n) = \begin{cases} n/2, & if ~n~is~even \\ 3n+1, & if~n~is~odd \end{cases}$

f(n)={n/2,if n is even3n+1,if n is oddf(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 就读作 alpha)。

symbols.jpg

symbols1.jpg

symbols3.jpg

symbols4.jpg