CSDN_md语法总结【updating】

@[TOC](这里写目录标题)

一、标题

一级标题

二级标题

三级标题

四级标题
五级标题
六级标题
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题

二、文本样式

强调文本 强调文本

加粗文本 加粗文本

标记文本

标记文本,同上

删除文本

下划线

小号字体

大号字体

引用文本

H2O is是液体。

210 运算结果是 1024。

*强调文本* _强调文本_

**加粗文本** __加粗文本__

==标记文本==

<mark>标记文本,同上</mark>

~~删除文本~~

<u>下划线</u>

<small>小号字体<small>

<big>大号字体</big>

> 引用文本

H~2~O is是液体。

2^10^ 运算结果是 1024。

三、列表

  • 项目
    • 项目
      • 项目
  1. 项目1
  2. 项目2
  3. 项目3
  • 计划任务
  • 完成任务
- 项目
  * 项目
    + 项目

1. 项目1
2. 项目2
3. 项目3

- [ ] 计划任务
- [x] 完成任务

四、图片

图片: Alt

带尺寸的图片: Alt

宽度确定高度等比例的图片: Alt

高度确定宽度等比例的图片: Alt

居中的图片: Alt

居中并且带尺寸的图片: Alt

居右的图片: Alt

图片: ![Alt](https://img-home.csdnimg.cn/images/20220524100510.png)

带尺寸的图片: ![Alt](https://img-home.csdnimg.cn/images/20220524100510.png =60x60)

宽度确定高度等比例的图片: ![Alt](https://img-home.csdnimg.cn/images/20220524100510.png =60x)

高度确定宽度等比例的图片: ![Alt](https://img-home.csdnimg.cn/images/20220524100510.png =x60)

居中的图片: ![Alt](https://img-home.csdnimg.cn/images/20220524100510.png#pic_center)

居中并且带尺寸的图片: ![Alt](https://img-home.csdnimg.cn/images/20220524100510.png#pic_center =60x60)

居右的图片: ![Alt](https://img-home.csdnimg.cn/images/20220524100510.png#pic_right)

多图片并排

  1. ! [描述] (图片链接) ! [描述] (图片链接) ! [描述] (图片链接)

要一张图片接着一张图片的语法写,中间不能有换行。如果换行的话,图片也换行。
如果图片过大可能无法实现。

<img src="https://img-blog.csdnimg.cn/img_convert/0a5105902d0514dd7846305d5768ae2c.jpeg" alt="艾斯" style="zoom:25%;" /><img src="https://img-blog.csdnimg.cn/direct/7e424f9ec2254c74b9fcb770152b22d6.png" alt="路飞" style="zoom: 50%;" /><img src="https://tse1-mm.cn.bing.net/th/id/OIP-C.vpt4yR5fwL9T3ZesMBgLBQHaHa?w=146&h=180&c=7&r=0&o=5&dpr=1.3&pid=1.7" alt="萨博" style="zoom: 60%;" />

  1. 以表格的形式
路飞艾斯萨博
路飞艾斯萨博
  1. 使用HTML中的语法
<!--居中并排显示-->
<center class="half">
<img src="https://img-blog.csdnimg.cn/2019012511060017.png" width=00/>
<img src="https://img-blog.csdnimg.cn/2019012511060017.png" width=200/>
</center>
<!--左对齐并排显示-->
<figure>
<img src="https://img-blog.csdnimg.cn/2019012511060017.png" width=200/>
<img src="https://img-blog.csdnimg.cn/2019012511060017.png" width=200/>
<img src="https://img-blog.csdnimg.cn/2019012511060017.png" width=200/>
</figure>
图1
图2
图3
图4
<!--并排显示在表格里,可以调节大小-->
<table>
    <tr>
        <td ><center><img src="https://img-blog.csdnimg.cn/img_convert/f6feac0857ed9afa5747cb91a5de2a4e.jpeg" >图1   </center></td>
        <td ><center><img src="https://img-blog.csdnimg.cn/img_convert/edc2bff2d89f6423189dbc1124f7e417.jpeg"  >图2 </center></td>
    </tr>
    <tr>
        <td><center><img src="https://img-blog.csdnimg.cn/img_convert/fce685248e007fd702655bd64e1fb668.jpeg" >图3 </center></td>
        <td ><center><img src="https://img-blog.csdnimg.cn/img_convert/68362624a18f6f7d9c7bb1e6f50329a6.jpeg"  >图4 </center> </td>
    </tr>
</table>

五、链接

链接: link

链接: [link](https://www.csdn.net/)


六、代码片

下面展示一些 内联代码片

// A code block
var foo = 'bar';
```
// A code block
var foo = 'bar';
```
// An highlighted block
var foo = 'bar';
```javascript
// An highlighted block
var foo = 'bar';
```

七、表格

项目Value
电脑$1600
手机$12
导管$1
Column 1Column 2
centered 文本居中right-aligned 文本居右
项目     | Value
-------- | -----
电脑  | $1600
手机  | $12
导管  | $1

| Column 1 | Column 2      |
|:--------:| -------------:|
| centered 文本居中 | right-aligned 文本居右 |

八、注脚

一个具有注脚的文本。1

一个具有注脚的文本。[^1]

[^1]: 注脚的解释

九、注释

Markdown将文本转换为 HTML

Markdown将文本转换为 HTML。

*[HTML]:   超文本标记语言

十、自定义列表

Markdown
Text-to- HTML conversion tool
Authors
John
Luke
Markdown
:  Text-to-HTML conversion tool

Authors
:  John
:  Luke

十一、数学公式

行内公式:$公式
行间公式:$$公式
参考文档
Gamma公式展示 Γ ( n ) = ( n − 1 ) ! ∀ n ∈ N \Gamma(n) = (n-1)!\quad\forall n\in\mathbb N Γ(n)=(n1)!nN 是通过 Euler integral

Γ ( z ) = ∫ 0 ∞ t z − 1 e − t d t   . \Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,. Γ(z)=0tz1etdt.

[参考文档](https://khan.github.io/KaTeX/)
Gamma公式展示 $\Gamma(n) = (n-1)!\quad\forall
n\in\mathbb N$ 是通过 Euler integral

$$
\Gamma(z) = \int_0^\infty t^{z-1}e^{-t}dt\,.
$$

1.分数、平方、下标、省略号、开根号

算式markdown
7 x + 5 1 + y 2 \frac{7x+5}{1+y^2} 1+y27x+5$\frac{7x+5}{1+y^2}$
x y x^y xy$x^y$
. . . ... ...$...$
2 \sqrt{2} 2 ; 3 n \sqrt[n]{3} n3 $\sqrt{2}$;$\sqrt[n]{3}$

2、行间公式、矢量、积分、极限、累加累乘

算式markdown
d d x e a x = a e a x \frac{d}{dx}e^{ax}=ae^{ax} dxdeax=aeax \quad ∑ i = 1 n ( X i − X ‾ ) 2 \sum_{i=1}^{n}{(X_i - \overline{X})}^2 i=1n(XiX)2}$\frac{d}{dx}e^{ax}=ae^{ax}$ $\quad$ $\sum_{i=1}^{n}{(X_i - \overline{X})^2}$ }
a ⃗ ⋅ b ⃗ = 0 \vec{a} \cdot \vec{b}=0 a b =0$\vec{a} \cdot \vec{b}=0$
∫ 3 2 x 2 d x \int ^2_3 x^2 {\rm d}x 32x2dx$\int ^2_3 x^2 {\rm d}x$
lim ⁡ n → + ∞ n \lim_{n\rightarrow+\infty} n limn+n$\lim_{n\rightarrow+\infty} n$
∑ 1 i 2 \sum \frac{1}{i^2} i21$\sum \frac{1}{i^2}$
∏ 1 i 2 \prod \frac{1}{i^2} i21$\prod \frac{1}{i^2}$

3、希腊字母

小写语法使用大写语法
α \alpha α\alpha A \Alpha A\Alpha
β \beta β\beta B \Beta B\Beta
γ \gamma γ\gamma Γ \Gamma Γ\Gamma
δ \delta δ\Delta Δ \Delta Δ\Delta
ϵ \epsilon ϵ\epsilon E \Epsilon E\Epsilon
ε \varepsilon ε\varepsilon
ζ \zeta ζ\zeta Z \Zeta Z\Zeta
η \eta η\eta H \Eta H\Eta
θ \theta θ\theta Θ \Theta Θ\Theta
ι \iota ι\iota I \Iota I\Iota
κ \kappa κ\kappa K \Kappa K\Kappa
λ \lambda λ\lambda Λ \Lambda Λ\Lambda
μ \mu μ\mu M \Mu M\Mu
ν \nu ν\nu N \Nu N\Nu
ξ \xi ξ\xi Ξ \Xi Ξ\Xi
ο \omicron ο\omicron O \Omicron O\Omicron
π \pi π\pi Π \Pi Π\Pi
ρ \rho ρ\rho P \Rho P\Rho
σ \sigma σ\sigma Σ \Sigma Σ\Sigma
τ \tau τ\tau T \Tau T\Tau
υ \upsilon υ\upsilon Υ \Upsilon Υ\Upsilon
ϕ \phi ϕ\phi Φ \Phi Φ\Phi
φ \varphi φ\varphi
χ \chi χ\chi X \Chi X\Chi
ψ \psi ψ\psi Ψ \Psi Ψ\Psi
ω \omega ω\omega Ω \Omega Ω\Omega

4.关系代数

  • 选择
    σ s n o = 1 ( S t u d e n t ) \sigma_{sno = 1}(Student) σsno=1(Student)
    $\sigma_{sno = 1}(Student)$
    σ s n o = 1 ∧ s a g e > 18 ∨ s s e x = " F " ( S t u d e n t ) \sigma_{sno = 1 \wedge sage >18 \vee ssex="F"}(Student) σsno=1sage>18ssex="F"(Student)
    $\sigma_{sno = 1 \wedge sage >18 \vee ssex="F"}(Student)$

  • 投影
    Π s n o , c n o ( S t u d e n t ) \Pi_{sno,cno}(Student) Πsno,cno(Student)
    $\Pi_{sno,cno}(Student)$

  • 连接
    S t u d e n t ⋈ S C Student \Join SC StudentSC
    $Student \Join SC$
    S t u d e n t ⋈ S C Student \bowtie SC StudentSC
    $Student \bowtie SC$
    S t u d e n t ⋈ S t u d e n t . S n o = S C . S n o S C Student \underset{Student.Sno=SC.Sno}\Join SC StudentStudent.Sno=SC.SnoSC
    $Student \underset{Student.Sno=SC.Sno}\Join SC$

  • 外连接

  • 笛卡尔积
    S t u d e n t × S C Student \times SC Student×SC
    $Student \times SC$


  • S C ÷ K SC \div K SC÷K
    $SC \div K$


  • R ∪ S R \cup S RS
    $R \cup S$


  • R ∩ S R \cap S RS
    $R \cap S$


  • R − S R - S RS
    $R - S$

Π S n a m e ( Π s n o ( σ C p n o = ′ 5 ′ ( C o u r s e ) ⋈ S C ) ⋈ Π S n o , S n a m e ( S t u d e n t ) ) \Pi_{Sname}(\Pi_{sno}(\sigma_{Cpno='5'}(Course)\Join SC)\Join \Pi_{Sno,Sname}(Student)) ΠSname(Πsno(σCpno=5(Course)SC)ΠSno,Sname(Student))
$\Pi_{Sname}(\Pi_{sno}(\sigma_{Cpno='5'}(Course)\Join SC)\Join \Pi_{Sno,Sname}(Student))$
πSnamesnoCpno=′5′(Course) ⋈ SC) ⋈ π Sno,Sname (Student))

π~Sname~ (π~sno~ (σ~Cpno=′5′~(Course) ⋈ SC) ⋈ π ~Sno,Sname~ (Student))

- 集合
符号语法
∀ \forall $\forall$
∈ \in $\in$
∋ \ni $\ni$
∉ \notin /$\notin$
∉ \not\in $\not\in$
⊂ \subset $\subset$
⊃ \supset $\supset$
⊆ \subseteq $\subseteq$
⊊ \subsetneq $\subsetneq%
⊋ \supsetneq $\supsetneq$
⊇ \supseteq $\supseteq$
⊅ \not\supset $\not\supset$
⊄ \not\subset $\not\subset$
∪ \cup $\cup$
⋃ \bigcup $\bigcup$
∩ \cap $\cap$
⋂ \bigcap $bigcap$
∖ \setminus $\setminus$
⨀ \bigodot $\bigodot$
R \mathbb{R} R$\mathbb{R}$
Z \mathbb{Z} Z$\mathbb{Z}$
∅ \emptyset $\emptyset$
-逻辑
符号语法
∵ \because $\because$
∴ \therefore $\therefore$
p p p$\p$
q ˉ → p \bar{q} \to p qˉp$\bar{q} \to p$
¬ \lnot ¬$\lnot$
∧ \land $\land$
∨ \lor $\lor$
¬ q \lnot q ¬q$\lont q$
∧ \wedge $\wedge$
∨ \vee $\vee$
∖ \setminus $\setminus$
⋀ \bigwedge $\bigwedge$
⋁ \bigvee $\bigvee$
∖ \smallsetminus $\smallsetminus$

5. 在字符中添加空格、添加注释文字、字体变换、更改文字颜色

  1. 字体变换

若要对公式的某一部分字符进行字体转换,可以用 =={\字体 {需转换的部分字符}} ==命令,其中 \字体 部分可以参照下表选择合适的字体。

语法说明显示
${\rm{Sample}}$罗马体 S a m p l e {\rm{Sample}} Sample
${\it{Sample}}$意大利体 S a m p l e {\it{Sample}} Sample
${\bf{Sample}}$粗体 S a m p l e {\bf{Sample}} Sample
${\sf{Sample}}$等线体 S a m p l e {\sf{Sample}} Sample
${\tt{Sample}}$打字体机 S a m p l e {\tt{Sample}} Sample
${\frak{Sample}}$旧德式字体 S a m p l e {\frak{Sample}} Sample
${\cal{Sample}}$花体 S a m p l e {\cal{Sample}} Sample
${\Bbb{Sample}}$黑板粗体 S a m p l e {\Bbb{Sample}} Sample
${\mit{Sample}}$数学斜体KaTeX parse error: Undefined control sequence: \mit at position 2: {\̲m̲i̲t̲{Sample}}
${\scr{Sample}}$手写体KaTeX parse error: Undefined control sequence: \scr at position 2: {\̲s̲c̲r̲{Sample}}

部分字体显示不出是因为不同markdown编辑器规则不同,大部分编辑器支持使用。

  1. 字符中添加空格
语法显示
a$\,$ba   \, b
a$\;$ba    \; b
a$\quad$ba \quad b
a$\qquad$ba \qquad b
  1. 添加注释文字

\text {文字} 中仍可以使用 公式 公式 公式 插入其它公式

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

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

  1. 更改文字颜色

使用 ==\color{颜色}{文字} ==来更改特定的文字颜色。更改文字颜色 需要浏览器支持 ,如果浏览器不知道你所需的颜色,那么文字将被渲染为黑色。

对于较旧的浏览器(HTML4与CSS2),以下颜色是被支持的:

输入显示输入显示
black t e x t \color{black}{text} textgrey t e x t \color{grey}{text} text
silver t e x t \color{silver}{text} textwhite t e x t \color{white}{text} text
maroon t e x t \color{maroon}{text} textred t e x t \color{red}{text} text
yellow t e x t \color{yellow}{text} textlime t e x t \color{lime}{text} text
olive t e x t \color{olive}{text} textgreen t e x t \color{green}{text} text
teal c o l o r t e a l t e x t color{teal}{text} colortealtextauqa t e x t \color{auqa}{text} text
blue c o l o r b l u e t e x t color{blue}{text} colorbluetextnavy t e x t \color{navy}{text} text
purple c o l o r p u r p l e t e x t color{purple}{text} colorpurpletextfuchsia t e x t \color{fuchsia}{text} text

对于较新的浏览器(HTML5与CSS3),额外的124种颜色将被支持:

输入 \color {#rgb} {text} 来自定义更多的颜色,其中 #rgb 的 r g b 可输入 0-9 和 a-f 来表示红色、绿色和蓝色的纯度(饱和度)。

$$
\begin{array}{|rrrrrrrr|}\hline
\verb+#000+ & \color{#000}{text} & & &
\verb+#00F+ & \color{#00F}{text} & & \\
& & \verb+#0F0+ & \color{#0F0}{text} &
& & \verb+#0FF+ & \color{#0FF}{text}\\
\verb+#F00+ & \color{#F00}{text} & & &
\verb+#F0F+ & \color{#F0F}{text} & & \\
& & \verb+#FF0+ & \color{#FF0}{text} &
& & \verb+#FFF+ & \color{#FFF}{text}\\
\hline
\end{array}
$$

#000 t e x t #00F t e x t #0F0 t e x t #0FF t e x t #F00 t e x t #F0F t e x t #FF0 t e x t #FFF t e x t \begin{array}{|rrrrrrrr|}\hline \verb+#000+ & \color{#000}{text} & & & \verb+#00F+ & \color{#00F}{text} & & \\ & & \verb+#0F0+ & \color{#0F0}{text} & & & \verb+#0FF+ & \color{#0FF}{text}\\ \verb+#F00+ & \color{#F00}{text} & & & \verb+#F0F+ & \color{#F0F}{text} & & \\ & & \verb+#FF0+ & \color{#FF0}{text} & & & \verb+#FFF+ & \color{#FFF}{text}\\ \hline \end{array} #000#F00texttext#0F0#FF0texttext#00F#F0Ftexttext#0FF#FFFtexttext
5. 添加删除线

在公式内使用 ==\require{cancel} ==来允许 片段删除线 的显示。声明片段删除线后,使用 ==\cancel{字符}、\bcancel{字符}、\xcancel{字符} 和 \cancelto{字符} ==来实现各种片段删除线效果

$$
\require{cancel}\begin{array}{rl}
\verb|y+\cancel{x}| & y+\cancel{x}\\
\verb|\cancel{y+x}| & \cancel{y+x}\\
\verb|y+\bcancel{x}| & y+\bcancel{x}\\
\verb|y+\xcancel{x}| & y+\xcancel{x}\\
\verb|y+\cancelto{0}{x}| & y+\cancelto{0}{x}\\
\verb+\frac{1\cancel9}{\cancel95} = \frac15+& \frac{1\cancel9}{\cancel95} = \frac15 \\
\end{array}
$$

6.等式、矩阵、方程式

  1. 等式
% 使用 \& 使 = 左对齐

$$
\begin{aligned}
    (f,K^{'}_{x}y+K^{''}_{x}y)_{F}
    &=(f^{'}+f^{''},K^{'}_{x}y+K^{''}_{x}y)_{F}\\
    &=(f^{'},K^{'}_{x}y)_{F}+(f^{''},K^{''}_{x}y)_{F}+(f^{'},K^{''}_{x}y)_{F}+(f^{''},K^{'}_{x}y)_{F}\\
    &=(f^{'},K^{'}_{x}y)_{F}+(f^{''},K^{''}_{x}y)_{F}\\
    &=(f^{'}(x),y)_{Y}+(f^{''}(x),y)_{Y}\\
    &=(f^{'}(x)+f^{''}(x),y)_{Y}\\
    &=(f(x),y)_{Y}\\
    &=(f,K_{x}y)_{F}
\end{aligned}
$$

( f , K x ′ y + K x ′ ′ y ) F = ( f ′ + f ′ ′ , K x ′ y + K x ′ ′ y ) F = ( f ′ , K x ′ y ) F + ( f ′ ′ , K x ′ ′ y ) F + ( f ′ , K x ′ ′ y ) F + ( f ′ ′ , K x ′ y ) F = ( f ′ , K x ′ y ) F + ( f ′ ′ , K x ′ ′ y ) F = ( f ′ ( x ) , y ) Y + ( f ′ ′ ( x ) , y ) Y = ( f ′ ( x ) + f ′ ′ ( x ) , y ) Y = ( f ( x ) , y ) Y = ( f , K x y ) F \begin{aligned} (f,K^{'}_{x}y+K^{''}_{x}y)_{F} &=(f^{'}+f^{''},K^{'}_{x}y+K^{''}_{x}y)_{F}\\ &=(f^{'},K^{'}_{x}y)_{F}+(f^{''},K^{''}_{x}y)_{F}+(f^{'},K^{''}_{x}y)_{F}+(f^{''},K^{'}_{x}y)_{F}\\ &=(f^{'},K^{'}_{x}y)_{F}+(f^{''},K^{''}_{x}y)_{F}\\ &=(f^{'}(x),y)_{Y}+(f^{''}(x),y)_{Y}\\ &=(f^{'}(x)+f^{''}(x),y)_{Y}\\ &=(f(x),y)_{Y}\\ &=(f,K_{x}y)_{F} \end{aligned} (f,Kxy+Kx′′y)F=(f+f′′,Kxy+Kx′′y)F=(f,Kxy)F+(f′′,Kx′′y)F+(f,Kx′′y)F+(f′′,Kxy)F=(f,Kxy)F+(f′′,Kx′′y)F=(f(x),y)Y+(f′′(x),y)Y=(f(x)+f′′(x),y)Y=(f(x),y)Y=(f,Kxy)F
2. 方程式

$$
\begin{cases}
    a_{0}+a_{1}x_{0}+...+a_{n}x_{0}^{n}=y_{0} \\
    a_{0}+a_{1}x_{1}+...+a_{n}x_{1}^{n}=y_{1} \\
    \cdots\\
    a_{0}+a_{1}x_{n}+...+a_{n}x_{n}^{n}=y_{n}
\end{cases}
$$

{ a 0 + a 1 x 0 + . . . + a n x 0 n = y 0 a 0 + a 1 x 1 + . . . + a n x 1 n = y 1 ⋯ a 0 + a 1 x n + . . . + a n x n n = y n \begin{cases} a_{0}+a_{1}x_{0}+...+a_{n}x_{0}^{n}=y_{0} \\ a_{0}+a_{1}x_{1}+...+a_{n}x_{1}^{n}=y_{1} \\ \cdots\\ a_{0}+a_{1}x_{n}+...+a_{n}x_{n}^{n}=y_{n} \end{cases} a0+a1x0+...+anx0n=y0a0+a1x1+...+anx1n=y1a0+a1xn+...+anxnn=yn

  1. 矩阵
% 可将 [] 换成 () 或 ||...
$$
\left[   
\begin{array}{ccc|c}
    \psi(x) & g(x)   & \cdots  & a_{1n} \\
    \hline
    a_{21}  & a_{22} & \dots   & a_{2n} \\
    \vdots  & \vdots & \ddots  & \vdots \\
    a_{n1}  & a_{n2} & ...     & a_{nn}
\end{array}
\right]
$$

[ ψ ( x ) g ( x ) ⋯ a 1 n a 21 a 22 … a 2 n ⋮ ⋮ ⋱ ⋮ a n 1 a n 2 . . . a n n ] \left[ \begin{array}{ccc|c} \psi(x) & g(x) & \cdots & a_{1n} \\ \hline a_{21} & a_{22} & \dots & a_{2n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{n1} & a_{n2} & ... & a_{nn} \end{array} \right] ψ(x)a21an1g(x)a22an2...a1na2nann

7. 上下标、分式、省略号、开根号、复杂数学符号、关系运算符、三角函数、对数函数

  1. 上下标
语法显示
$\vec{a}$ a ⃗ \vec{a} a
$\overline{a}$ a ‾ \overline{a} a
$\widehat{a}$ a ^ \widehat{a} a
$\widetilde{a}$ a ~ \widetilde{a} a
$\dot{a}$ a ˙ \dot{a} a˙
$\ddot{a}$ a ¨ \ddot{a} a¨
$\check{a}$ a ˇ \check{a} aˇ
$\breve{a}$ a ˘ \breve{a} a˘
$\grave{a}$ a ˋ \grave{a} aˋ
$\acute{a}$ a ˊ \acute{a} aˊ
$\stackrel{x}{y}$ y x \stackrel{x}{y} yx
$overset{z}{y}$ y z \overset{z}{y} yz
$underset{x}{y}$ y x \underset{x}{y} xy
$x^y$ x y x^y xy
$x_y$ x y x_y xy
  1. 分式、省略号、开根号、三角函数、对数函数
语法显示
$1/2$ 1 / 2 1/2 1/2
$frac{1}{2}$ 1 2 \frac{1}{2} 21
$cdots$ ⋯ \cdots
$\sqrt{2}$ 2 \sqrt{2} 2
$\sin 30^\circ$ sin ⁡ 3 0 ∘ \sin 30^\circ sin30
$\cos 30^\circ$ cos ⁡ 3 0 ∘ \cos 30^\circ cos30
$\tan 30^\circ$ tan ⁡ 3 0 ∘ \tan 30^\circ tan30
$\ln 2$ ln ⁡ 2 \ln 2 ln2
$\log_28$ log ⁡ 2 8 \log_2 8 log28
$\lg 10% lg ⁡ 10 \lg 10 lg10
  1. 复杂数学符号
语法显示
$y = \sum_{i=1}^{n}{x_i}$ y = ∑ i = 1 n x i y = \sum_{i=1}^{n}{x_i} y=i=1nxi
$y=\sum^{x \to \infty}_{y \to 0}{\frac{x}{y}}$ y = ∑ y → 0 x → ∞ x y y=\sum^{x \to \infty}_{y \to 0}{\frac{x}{y}} y=y0xyx
$\lim^{x \to \infty}_{y \to 0}{\frac{x}{y}}$ lim ⁡ y → 0 x → ∞ x y \lim^{x \to \infty}_{y \to 0}{\frac{x}{y}} limy0xyx
$\displaystyle \lim^{x \to \infty}_{y \to 0}{\frac{x}{y}}$ lim ⁡ y → 0 x → ∞ x y \displaystyle \lim^{x \to \infty}_{y \to 0}{\frac{x}{y}} y0limxyx
$\sqrt[3]{x+y}$ x + y 3 \sqrt[3]{x+y} 3x+y
$\int^{\infty}_{0}{xdx}$ ∫ 0 ∞ x d x \int^{\infty}_{0}{xdx} 0xdx
$\iint$ ∬ \iint
$\iiint$ ∭ \iiint
$\oint$ ∮ \oint
$\dfrac{\partial f}{\partial x}$ ∂ f ∂ x \dfrac{\partial f}{\partial x} xf
$\frac{\partial x^2}{\partial y^2}$ ∂ x 2 ∂ y 2 \frac{\partial x^2}{\partial y^2} y2x2
$\frac{\partial f(x,y)}{\partial x} \vert _{x=0}$ ∂ f ( x , y ) ∂ x ∣ x = 0 \frac{\partial f(x,y)}{\partial x} \vert _{x=0} xf(x,y)x=0
$y{\prime}x$ y ′ x y{\prime}x yx
$\nabla$ ∇ \nabla
$\infty$ ∞ \infty
$\overrightarrow{xy}$ x y → \overrightarrow{xy} xy
$vec x$ x ⃗ \vec x x
$overline{xyz}$ x y z ‾ \overline{xyz} xyz
$\overline{x\overline{yz}}$ x y z ‾ ‾ \overline{x\overline{yz}} xyz
$\underline{xyz}$ x y z ‾ \underline{xyz} xyz
$\prod_{n=1}^{99}{x_n}$ ∏ n = 1 99 x n \prod_{n=1}^{99}{x_n} n=199xn
$\displaystyle \prod_{n=1}^{99}{x_n}$ ∏ n = 1 99 x n \displaystyle \prod_{n=1}^{99}{x_n} n=199xn
$a \leftarrow b \rightarrow c \leftrightarrow d \Leftrightarrow e \rightleftharpoons f$ a ← b → c ↔ d ⇔ e ⇌ f a \leftarrow b \rightarrow c \leftrightarrow d \Leftrightarrow e \rightleftharpoons f abcdef
$a \longleftarrow b \longrightarrow c \Longleftrightarrow d$ a ⟵ b ⟶ c ⟺ d a \longleftarrow b \longrightarrow c \Longleftrightarrow d abcd
$a \nearrow b \searrow c \nwarrow d \searrow e$ a ↗ b ↘ c ↖ d ↘ e a \nearrow b \searrow c \nwarrow d \searrow e abcde
$a \uparrow b \downarrow c \Uparrow d \Downarrow e$ a ↑ b ↓ c ⇑ d ⇓ e a \uparrow b \downarrow c \Uparrow d \Downarrow e abcde
$a \rightharpoonup b \rightharpoondown c \leftharpoonup d \leftharpoondown e$ a ⇀ b ⇁ c ↼ d ↽ e a \rightharpoonup b \rightharpoondown c \leftharpoonup d \leftharpoondown e abcde
$\forall a \exists b$ ∀ a ∃ b \forall a \exists b ab
$\lnot a \bigvee b \bigwedge$ ¬ a ⋁ b ⋀ \lnot a \bigvee b \bigwedge ¬ab
$\because a \therefore b$ ∵ a ∴ b \because a \therefore b ab
$X\cup Y \bigcup Z\cap W$ X ∪ Y ⋃ Z ∩ W X\cup Y \bigcup Z\cap W XYZW
$X \subset Y \not\subset Z \subseteq W \not\subseteq U$ X ⊂ Y ⊄ Z ⊆ W ⊈ U X \subset Y \not\subset Z \subseteq W \not\subseteq U XYZWU
$c \in d \notin e$ c ∈ d ∉ e c \in d \notin e cd/e
$\emptyset$ ∅ \emptyset
$\varnothing$ ∅ \varnothing
$\lceil \frac{x}{2} \rceil$ ⌈ x 2 ⌉ \lceil \frac{x}{2} \rceil 2x
$\lfloor x \rfloor$ ⌊ x ⌋ \lfloor x \rfloor x
$\tbinom{n}{k}$ ( n k ) \tbinom{n}{k} (kn)
$\binom{n}{k}$ ( n k ) \binom{n}{k} (kn)
$\dbinom{n}{k}$ ( n k ) \dbinom{n}{k} (kn)
${n\brace k}$ { n k } {n\brace k} {kn}
${n\choose k}$ ( n k ) {n\choose k} (kn)
` [ n k ] {n\brack k} [kn] [ n k ] {n\brack k} [kn]
$\overbrace{1+2+\cdots+100}$ 1 + 2 + ⋯ + 100 ⏞ \overbrace{1+2+\cdots+100} 1+2++100
$\underbrace{1+2+\cdots+100}$ 1 + 2 + ⋯ + 100 ⏟ \underbrace{1+2+\cdots+100} 1+2++100
$5050 \overbrace {1+2+⋯+100}$ 5050 1 + 2 + ⋯ + 100 ⏞ 5050 \overbrace {1+2+⋯+100} 50501+2++100
$\begin{matrix} 0 & 1 \\ 3 & 4 \\ \end{matrix}​$ 0 1 3 4 ​ \begin{matrix} 0 & 1 \\ 3 & 4 \\ \end{matrix}​ 0314
$\begin{pmatrix} 0 & 1 \\ 3 & 4 \\ \end{pmatrix}$ ( 0 1 3 4 ) \begin{pmatrix} 0 & 1 \\ 3 & 4 \\ \end{pmatrix} (0314)
$\begin{vmatrix} 0 & 1 \\ 3 & 4 \\ \end{vmatrix}$ ∣ 0 1 3 4 ∣ \begin{vmatrix} 0 & 1 \\ 3 & 4 \\ \end{vmatrix} 0314
$\begin{Vmatrix} 0 & 1 \\ 3 & 4 \\ \end{Vmatrix}$ ∥ 0 1 3 4 ∥ \begin{Vmatrix} 0 & 1 \\ 3 & 4 \\ \end{Vmatrix} 0314
$\begin{bmatrix} 0 & 1 \\ 3 & 4 \\ \end{bmatrix}$ [ 0 1 3 4 ] \begin{bmatrix} 0 & 1 \\ 3 & 4 \\ \end{bmatrix} [0314]
$\begin{Bmatrix} 0 & 1 \\ 3 & 4 \\ \end{Bmatrix}$ { 0 1 3 4 } \begin{Bmatrix} 0 & 1 \\ 3 & 4 \\ \end{Bmatrix} {0314}
  1. 关系运算符
语法显示效果
$\neq$ ≠ \neq =
$=$ = = =
$>$ > > >
$<$ < < <
$\equiv$ ≡ \equiv
$\ngeq$ ≱ \ngeq
$not\geq$ ≱ \not\geq
$\nleq$ ≰ \nleq
$\not\leq$ ≰ \not\leq
$\leq$ ≤ \leq
$\geq$ ≥ \geq
$\aaprox$ ≈ \approx
$\not\lt$ ≮ \not\lt <
$\gt$ > \gt >
$\gg$ ≫ \gg
$\lll$ ⋘ \lll
$\pm$ ± \pm ±
$\times$ × \times ×
$div$ ÷ \div ÷
$\mid$ ∣ \mid
$\ast$ ∗ \ast
$\angle$ ∠ \angle
$\bot$ ⊥ \bot
$\odot and\bigodot$ ⊙ a n d ⨀ \odot and\bigodot and
$\otimes and \bigotimes$ ⊗ a n d ⨂ \otimes and \bigotimes and

十二、插入甘特图

参考文档

2014-01-06 2014-01-07 2014-01-08 2014-01-09 2014-01-10 2014-01-11 2014-01-12 2014-01-13 2014-01-14 2014-01-15 2014-01-16 2014-01-17 已完成 进行中 计划中 现有任务 Adding GANTT diagram functionality to mermaid
[参考文档](https://mermaid-js.github.io/mermaid/#/gantt)
```mermaid
gantt
        dateFormat  YYYY-MM-DD
        title Adding GANTT diagram functionality to mermaid
        section 现有任务
        已完成               :done,    des1, 2014-01-06,2014-01-08
        进行中               :active,  des2, 2014-01-09, 3d
        计划中               :         des3, after des2, 5d
```

十三、插入UML图

参考文档

张三 李四 王五 你好!李四, 最近怎么样? 你最近怎么样,王五? 我很好,谢谢! 我很好,谢谢! 李四想了很长时间, 文字太长了 不适合放在一行. 打量着王五... 很好... 王五, 你怎么样? 张三 李四 王五
[参考文档](https://mermaid-js.github.io/mermaid/#/sequenceDiagram)
```mermaid
sequenceDiagram
张三 ->> 李四: 你好!李四, 最近怎么样?
李四-->>王五: 你最近怎么样,王五?
李四--x 张三: 我很好,谢谢!
李四-x 王五: 我很好,谢谢!
Note right of 王五: 李四想了很长时间, 文字太长了<br/>不适合放在一行.

李四-->>张三: 打量着王五...
张三->>王五: 很好... 王五, 你怎么样?
```

十四、插入Mermaid流程图

参考文档

链接
长方形
圆角长方形
菱形

[参考文档](https://mermaid-js.github.io/mermaid/#/flowchart?id=graph)
```mermaid
graph LR
A[长方形] -- 链接 --> B((圆))
A --> C(圆角长方形)
B --> D{菱形}
C --> D
```

十五、插入Flowchart流程图

参考文档

Created with Raphaël 2.3.0 开始 我的操作 确认? 结束 yes no
[参考文档](http://flowchart.js.org/)
```mermaid
flowchat
st=>start: 开始
e=>end: 结束
op=>operation: 我的操作
cond=>condition: 确认?

st->op->cond
cond(yes)->e
cond(no)->op
```

十六、插入classDiagram类图

参考文档

Cool
Where am i?
«interface»
Class01
int chimp
int gorilla
size()
AveryLongClass
Class09
C2
C3
Class07
Object[] elementData
equals()
Class10
>>service>>
int id
size()
[参考文档](https://mermaid-js.github.io/mermaid/#/classDiagram)
```mermaid
classDiagram
    Class01 <|-- AveryLongClass : Cool
    <<interface>> Class01
    Class09 --> C2 : Where am i?
    Class09 --* C3
    Class09 --|> Class07
    Class07 : equals()
    Class07 : Object[] elementData
    Class01 : size()
    Class01 : int chimp
    Class01 : int gorilla
    class Class10 {
        >>service>>
        int id
        size()
    }
```

十七、快捷键

Markdown图标快捷键
撤销Ctrl /⌘+Z
重做Ctrl /⌘+Y
加粗Ctrl /⌘+B
斜体Ctrl /⌘+I
标题Ctrl /⌘+Shift +H
有序列表Ctrl /⌘+Shift +O
无序列表Ctrl /⌘+Shift +U
待办列表Ctrl /⌘+Shift +C
插入代码Ctrl /⌘+Shift +K
插入链接Ctrl /⌘+Shift +L
插入图片Ctrl /⌘+Shift +G
查找Ctrl /⌘+F
替换Ctrl /⌘+G

最后的目录


  1. 注脚的解释 ↩︎

  • 22
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值