【学习经验】markdown入门

标题

1
2
3
4
5
6
# 大标题
## 二号标题
### 三号标题
#### 四号标题
##### 五号标题
###### 六号标题

字体

1
*斜体*  **加粗**  ***斜体加粗***  ~~划掉~~  ==高亮==  ^上标^  ~下标~

列表

  1. 无序列表

    1
    2
    3
    + dfji
    + dfj
    + dfj
  2. 有序列表

    1
    2
    3
    1. sdf
    2. sdf
    3. sdf

表格

1
2
3
4
| mon | tue | wed |
|-----|-----|:----|
|dd|dd|dd|
|ss|ss|ss|

引用

1
2
3
4
> 第一层引用
> > 第二层引用
> > >第三层引用
> > > >第四层引用

分割线

1
---

折叠内容

1
2
3
4
<details>
<summary>展示的内容</summary>
折叠的内容
</details>

数学公式

输入$$回车后即可插入数学公式(公式为独立一行且居中)

基本运算符

  • 下标:_ 放在字符下时加上\limits

  • 上标:^

  • 根号:\sqrt

  • 分数:\frac{up}{down}

    例如

    1
    x_{ij} 、y^{ij} 、\max \limits_{a<x<b} \{f(x)\}、\frac{up}{down}、\sqrt{b}、 \sqrt[a]{b}

$$
x_{ij} 、y^{ij} 、\max \limits_{a<x<b}{f(x)}、\frac{up}{down}、\sqrt{b}、 \sqrt[a]{b}
$$

括号

  • markdown语法 表示字符 markdown语法 表示字符
    () () | |
    [] [] \{\} {}
    \langle \rangle
    \lceil \rceil
    \lfloor \rfloor
    \lbrace { \rbrace }
  • 需要显示大号的括号或分隔符时,用\left和\right命令

    1
    2
    3
    \left[
    \frac{(x_{ij})_{max}^2}{MSE}
    \right]

    $$
    \left[
    \frac{(x_{ij})_{max}^2}{MSE}
    \right]
    $$

运算符

输入 显示 输入 显示
\pm ± \mp
\times × \cdot
\div ÷ \approx
\neq \equiv
\leq \geq

求和求积

输入 显示 输入 显示
\sum \prod

集合运算符

输入 显示 输入 显示
\in \notin
\subset \supset
\subseteq \supseteq
\bigcap \bigcup
\emptyset \not\subset

对数运算符

输入 显示 输入 显示 输入 显示
\log log \lg lg \ln ln

三角运算符

输入 显示 输入 显示 输入 显示
30^\circ 30° \bot \angle A A
\sin sin \cos cos \tan tan
\csc csc \sec sec \cot cot

微积分运算符

输入 显示 输入 显示 输入 显示
\int \lim lim \infty

逻辑运算符

输入 显示 输入 显示
\because \therefore
\forall \exists

上下花括号

1
\overbrace{a+b+\dots+n}^{m个}、\underbrace{a+b+\dots+n}_{m个}

$$
\overbrace{a+b+\dots+n}^{m个}、\underbrace{a+b+\dots+n}_{m个}
$$

箭头

输入 显示 输入 显示 输入 显示
\leftarrow \rightarrow \longleftarrow
\leftrightarrow \uparrow \Downarrow
  • 首字母大写为双箭头
  • 前面加long为长箭头

希腊字母

  • 输入 \小写希腊字母英文全称\首字母大写希腊字母英文全称 来分别输入小写和大写希腊字母。对于大写希腊字母与现有字母相同的,直接输入大写字母即可。

    输入 显示 输入 显示 输入 显示
    \alpha α \beta β \gamma γ
    \delta δ \epsilon ϵ \eta η
    \theta θ \lambda λ \mu μ
    \sigma σ \pi π \omega ω

字体

  • 若要对公式的某一部分字符进行字体转换,可以用 {\字体 {需转换的部分字符}} 命令,其中 \字体 部分可以参照下方选择合适的字体。一般情况下,公式默认为意大利体 。

    1
    意大利体\it{sample}、罗马体\rm{sample}、粗体\bf{sample}、等线体\sf{sample}、打字机体\tt{sample}、旧德式字体\frak{sample}、花体\cal{sample}、黑板粗体\Bbb{sample}、数字斜体\mit{sample}、手写体\scr{sample}

    $$
    意大利体\it{sample}、罗马体\rm{sample}、粗体\bf{sample}、等线体\sf{sample}、打字机体\tt{sample}、旧德式字体\frak{sample}、花体\cal{sample}、黑板粗体\Bbb{sample}、数字斜体\mit{sample}、手写体\scr{sample}
    $$

矩阵

\begin{matrix}...\end{matrix}括起来,使用&分割同行元素,\换行

1
2
3
4
5
\begin{matrix}
1 & x & x^2\\
1 & y & y^2\\
1 & z & z^2\\
\end{matrix}

$$
\begin{matrix}
1 & x & x^2\
1 & y & y^2\
1 & z & z^2\
\end{matrix}
$$

行列式

在矩阵基础上添加\left| ... \right|

1
2
3
4
5
6
7
8
X=\left|
\begin{matrix}
x_{11} & x_{12} & \cdots & x_{1d}\\
x_{21} & x_{22} & \cdots & x_{2d}\\
\vdots & \vdots & \ddots & \vdots \\
x_{11} & x_{12} & \cdots & x_{1d}\\
\end{matrix}
\right|

$$
X=\left|
\begin{matrix}
x_{11} & x_{12} & \cdots & x_{1d}\
x_{21} & x_{22} & \cdots & x_{2d}\
\vdots & \vdots & \ddots & \vdots \
x_{11} & x_{12} & \cdots & x_{1d}\
\end{matrix}
\right|
$$

分段函数

\begin{cases} ... \end{cases}包括

1
2
3
4
5
f(n)=
\begin{cases}
n/2, & \text{if $n$ is even}\\
3n+1,& \text{if $n$ is odd}
\end{cases}

$$
f(n)=
\begin{cases}
n/2, & \text{if $n$ is even}\
3n+1,& \text{if $n$ is odd}
\end{cases}
$$

方程组

1
2
3
4
5
6
7
\left\{
\begin{array}{c}
a_1x+b_1y+c_1z=d_1\\
a_2x+b_2y+c_2z=d_2\\
a_3x+b_3y+c_3z=d_3
\end{array}
\right.

$$
\left{
\begin{array}{c}
a_1x+b_1y+c_1z=d_1\
a_2x+b_2y+c_2z=d_2\
a_3x+b_3y+c_3z=d_3
\end{array}
\right.
$$


【学习经验】markdown入门
http://example.com/2024/02/14/LE-markdown/
Author
John Doe
Posted on
February 14, 2024
Licensed under