markdown语法

[TOC]

1.文本编辑

加粗,斜体删除线加粗斜体,高亮

  1. **加粗**,*斜体*,~~删除线~~,***加粗斜体***,==高亮==

引用>

双层引用>>

2.列表

形式一-无序列表(*-+后接文字):

  1. + 列表项目1
  2. + 列表项目2

形式二-有序列表:

  1. 1. 列表项目一
  2. 2. 列表项目二
  3. - 次级列表
  4. - 次级列表
  5. 3. 列表项目三

3.外链及图片

使用[外链](http://www.baidu.com)增加外联
添加图片![Pictures](C:\Sample Pictures\small Penguins.jpg "企鹅")
使用三个或三个以上*或者—-都可以做页面分割


4.添加表格

  1. | name| age | weight |
  2. | :---| ---: | ---|
  3. |左对齐|右对齐|居中对齐|

5.代码嵌入

行内代码块:np.range(10)
跨行代码块:

  1. ```python
  2. from sklearn import ensemble
  1. <a name="l7xQT"></a>
  2. #### 6.常用符号
  3. | 表达式 | 符号 | 表达式 | 符号 | 表达式 | 符号 | 表达式 | 符号 |
  4. | --- | --- | --- | --- | --- | --- | --- | --- |
  5. | **1.数学符号** | | | | | | | |
  6. | \\sum | ![](https://g.yuque.com/gr/latex?%5Csum#card=math&code=%5Csum&height=28&width=25) | \\prod | ![](https://g.yuque.com/gr/latex?%5Cprod#card=math&code=%5Cprod&height=28&width=22) | \\int | ![](https://g.yuque.com/gr/latex?%5Cint#card=math&code=%5Cint&height=42&width=16) | \\oint | ![](https://g.yuque.com/gr/latex?%5Coint#card=math&code=%5Coint&height=42&width=16) |
  7. | \\cap | ![](https://g.yuque.com/gr/latex?%5Ccap#card=math&code=%5Ccap&height=15&width=11) | \\cup | ![](https://g.yuque.com/gr/latex?%5Ccup#card=math&code=%5Ccup&height=15&width=11) | \\rgroup | ![](https://g.yuque.com/gr/latex?%5Crgroup#card=math&code=%5Crgroup&height=21&width=7) | | |
  8. | \\bigcap | ![](https://g.yuque.com/gr/latex?%5Cbigcap#card=math&code=%5Cbigcap&height=28&width=19) | \\bigcup | ![](https://g.yuque.com/gr/latex?%5Cbigcup#card=math&code=%5Cbigcup&height=28&width=19) | \\lgroup | ![](https://g.yuque.com/gr/latex?%5Clgroup#card=math&code=%5Clgroup&height=21&width=7) | | |
  9. | \\oplus | ![](https://g.yuque.com/gr/latex?%5Coplus#card=math&code=%5Coplus&height=16&width=13) | \\odot | ![](https://g.yuque.com/gr/latex?%5Codot#card=math&code=%5Codot&height=16&width=13) | \\otimes | ![](https://g.yuque.com/gr/latex?%5Cotimes#card=math&code=%5Cotimes&height=16&width=13) | | |
  10. | \\bigoplus | ![](https://g.yuque.com/gr/latex?%5Cbigoplus#card=math&code=%5Cbigoplus&height=28&width=26) | \\bigodot | ![](https://g.yuque.com/gr/latex?%5Cbigodot#card=math&code=%5Cbigodot&height=28&width=26) | \\bigotimes | ![](https://g.yuque.com/gr/latex?%5Cbigotimes#card=math&code=%5Cbigotimes&height=28&width=26) | | |
  11. | \\ne | ![](https://g.yuque.com/gr/latex?%5Cne#card=math&code=%5Cne&height=20&width=13) | \\le | ![](https://g.yuque.com/gr/latex?%5Cle#card=math&code=%5Cle&height=16&width=13) | \\ge | ![](https://g.yuque.com/gr/latex?%5Cge#card=math&code=%5Cge&height=16&width=13) | | |
  12. | \\approx | ![](https://g.yuque.com/gr/latex?%5Capprox#card=math&code=%5Capprox&height=11&width=13) | \\sim | ![](https://g.yuque.com/gr/latex?%5Csim#card=math&code=%5Csim&height=10&width=13) | \\surd | ![](https://g.yuque.com/gr/latex?%5Csurd#card=math&code=%5Csurd&height=21&width=15) | | |
  13. | \\subset | ![](https://g.yuque.com/gr/latex?%5Csubset#card=math&code=%5Csubset&height=13&width=13) | \\subseteq | ![](https://g.yuque.com/gr/latex?%5Csubseteq#card=math&code=%5Csubseteq&height=16&width=13) | \\in | ![](https://g.yuque.com/gr/latex?%5Cin#card=math&code=%5Cin&height=13&width=11) | \\notin | ![](https://g.yuque.com/gr/latex?%5Cnotin#card=math&code=%5Cnotin&height=20&width=11) |
  14. | \\varnothing | ![](https://g.yuque.com/gr/latex?%5Cvarnothing#card=math&code=%5Cvarnothing&height=15&width=13) | \\forall | ![](https://g.yuque.com/gr/latex?%5Cforall#card=math&code=%5Cforall&height=16&width=9) | \\exists | ![](https://g.yuque.com/gr/latex?%5Cexists#card=math&code=%5Cexists&height=16&width=9) | \\nabla | ![](https://g.yuque.com/gr/latex?%5Cnabla#card=math&code=%5Cnabla&height=16&width=14) |
  15. | \\intty | ![](https://g.yuque.com/gr/latex?%5Cinfty#card=math&code=%5Cinfty&height=12&width=17) | \\propto | ![](https://g.yuque.com/gr/latex?%5Cpropto#card=math&code=%5Cpropto&height=12&width=13) | \\partial | ![](https://g.yuque.com/gr/latex?%5Cpartial#card=math&code=%5Cpartial&height=16&width=10) | \\ell | ![](https://g.yuque.com/gr/latex?%5Cell#card=math&code=%5Cell&height=16&width=7) |
  16. | \\top | ![](https://g.yuque.com/gr/latex?%5Ctop#card=math&code=%5Ctop&height=16&width=13) | \\bot | ![](https://g.yuque.com/gr/latex?%5Cbot#card=math&code=%5Cbot&height=16&width=13) | \\parallel | ![](https://g.yuque.com/gr/latex?%5Cparallel#card=math&code=%5Cparallel&height=21&width=9) | \\ &#124; | ![](https://g.yuque.com/gr/latex?%5C%7C#card=math&code=%5C%7C&height=21&width=9) |
  17. | **2.标记符号** | | | | | | | |
  18. | \\star | ![](https://g.yuque.com/gr/latex?%5Cstar#card=math&code=%5Cstar&height=11&width=9) | \\ast | ![](https://g.yuque.com/gr/latex?%5Cast#card=math&code=%5Cast&height=11&width=9) | \\circ | ![](https://g.yuque.com/gr/latex?%5Ccirc#card=math&code=%5Ccirc&height=11&width=9) | \\diamond | ![](https://g.yuque.com/gr/latex?%5Cdiamond#card=math&code=%5Cdiamond&height=11&width=9) |
  19. | \\bullet | ![](https://g.yuque.com/gr/latex?%5Cbullet#card=math&code=%5Cbullet&height=11&width=9) | \\ldots | ![](https://g.yuque.com/gr/latex?%5Cldots#card=math&code=%5Cldots&height=6&width=20) | \\cdots | ![](https://g.yuque.com/gr/latex?%5Ccdots#card=math&code=%5Ccdots&height=9&width=20) | \\cdot | ![](https://g.yuque.com/gr/latex?%5Ccdot#card=math&code=%5Ccdot&height=9&width=5) |
  20. | \\Box | ![](https://g.yuque.com/gr/latex?%5CBox#card=math&code=%5CBox&height=16&width=13) | \\triangle | ![](https://g.yuque.com/gr/latex?%5Ctriangle#card=math&code=%5Ctriangle&height=16&width=15) | \\vdots | ![](https://g.yuque.com/gr/latex?%5Cvdots#card=math&code=%5Cvdots&height=27&width=5) | \\ddots | ![](https://g.yuque.com/gr/latex?%5Cddots#card=math&code=%5Cddots&height=29&width=22) |
  21. | \\Diamond | ![](https://g.yuque.com/gr/latex?%5CDiamond#card=math&code=%5CDiamond&height=17&width=11) | \\clubsuit | ![](https://g.yuque.com/gr/latex?%5Cclubsuit#card=math&code=%5Cclubsuit&height=18&width=13) | \\heartsuit | ![](https://g.yuque.com/gr/latex?%5Cheartsuit#card=math&code=%5Cheartsuit&height=16&width=13) | \\spadesuit | ![](https://g.yuque.com/gr/latex?%5Cspadesuit#card=math&code=%5Cspadesuit&height=18&width=13) |
  22. | \\leftarrow | ![](https://g.yuque.com/gr/latex?%5Cleftarrow#card=math&code=%5Cleftarrow&height=13&width=17) | \\rightarrow | ![](https://g.yuque.com/gr/latex?%5Crightarrow#card=math&code=%5Crightarrow&height=13&width=17) | \\Leftarrow | ![](https://g.yuque.com/gr/latex?%5CLeftarrow#card=math&code=%5CLeftarrow&height=13&width=17) | \\Rightarrow | ![](https://g.yuque.com/gr/latex?%5CRightarrow#card=math&code=%5CRightarrow&height=13&width=17) |
  23. | \\uparrow | ![](https://g.yuque.com/gr/latex?%5Cuparrow#card=math&code=%5Cuparrow&height=18&width=9) | \\downarrow | ![](https://g.yuque.com/gr/latex?%5Cdownarrow#card=math&code=%5Cdownarrow&height=18&width=9) | \\Uparrow | ![](https://g.yuque.com/gr/latex?%5CUparrow#card=math&code=%5CUparrow&height=18&width=10) | \\Downarrow | ![](https://g.yuque.com/gr/latex?%5CDownarrow#card=math&code=%5CDownarrow&height=18&width=10) |
  24. | **3.希腊字母** | | | | | | | |
  25. | \\lambda | ![](https://g.yuque.com/gr/latex?%5Clambda#card=math&code=%5Clambda&height=16&width=10) | \\theta | ![](https://g.yuque.com/gr/latex?%5Ctheta#card=math&code=%5Ctheta&height=16&width=8) | \\gamma | ![](https://g.yuque.com/gr/latex?%5Cgamma#card=math&code=%5Cgamma&height=16&width=9) | \\delta | ![](https://g.yuque.com/gr/latex?%5Cdelta#card=math&code=%5Cdelta&height=17&width=8) |
  26. | \\Lambda | ![](https://g.yuque.com/gr/latex?%5CLambda#card=math&code=%5CLambda&height=16&width=12) | \\Theta | ![](https://g.yuque.com/gr/latex?%5CTheta#card=math&code=%5CTheta&height=16&width=13) | \\Gamma | ![](https://g.yuque.com/gr/latex?%5CGamma#card=math&code=%5CGamma&height=16&width=11) | \\Delta | ![](https://g.yuque.com/gr/latex?%5CDelta#card=math&code=%5CDelta&height=16&width=14) |
  27. | \\phi | ![](https://g.yuque.com/gr/latex?%5Cphi#card=math&code=%5Cphi&height=18&width=10) | \\sigma | ![](https://g.yuque.com/gr/latex?%5Csigma#card=math&code=%5Csigma&height=12&width=10) | \\xi | ![](https://g.yuque.com/gr/latex?%5Cxi#card=math&code=%5Cxi&height=18&width=8) | \\pi | ![](https://g.yuque.com/gr/latex?%5Cpi#card=math&code=%5Cpi&height=12&width=10) |
  28. | \\Phi | ![](https://g.yuque.com/gr/latex?%5CPhi#card=math&code=%5CPhi&height=16&width=12) | \\Sigma | ![](https://g.yuque.com/gr/latex?%5CSigma#card=math&code=%5CSigma&height=16&width=12) | \\Xi | ![](https://g.yuque.com/gr/latex?%5CXi#card=math&code=%5CXi&height=16&width=11) | \\Pi | ![](https://g.yuque.com/gr/latex?%5CPi#card=math&code=%5CPi&height=16&width=13) |
  29. | \\psi | ![](https://g.yuque.com/gr/latex?%5Cpsi#card=math&code=%5Cpsi&height=18&width=11) | \\omega | ![](https://g.yuque.com/gr/latex?%5Comega#card=math&code=%5Comega&height=12&width=11) | | | | |
  30. | \\Psi | ![](https://g.yuque.com/gr/latex?%5CPsi#card=math&code=%5CPsi&height=16&width=13) | \\Omega | ![](https://g.yuque.com/gr/latex?%5COmega#card=math&code=%5COmega&height=16&width=12) | | | | |
  31. | \\epsilon | ![](https://g.yuque.com/gr/latex?%5Cepsilon#card=math&code=%5Cepsilon&height=12&width=7) | \\varepsilon | ![](https://g.yuque.com/gr/latex?%5Cvarepsilon#card=math&code=%5Cvarepsilon&height=12&width=8) | \\rho | ![](https://g.yuque.com/gr/latex?%5Crho#card=math&code=%5Crho&height=16&width=9) | \\chi | ![](https://g.yuque.com/gr/latex?%5Cchi#card=math&code=%5Cchi&height=15&width=11) |
  32. | \\alpha | ![](https://g.yuque.com/gr/latex?%5Calpha#card=math&code=%5Calpha&height=12&width=11) | \\beta | ![](https://g.yuque.com/gr/latex?%5Cbeta#card=math&code=%5Cbeta&height=18&width=10) | \\zeta | ![](https://g.yuque.com/gr/latex?%5Czeta#card=math&code=%5Czeta&height=18&width=8) | \\kappa | ![](https://g.yuque.com/gr/latex?%5Ckappa#card=math&code=%5Ckappa&height=12&width=10) |
  33. | \\eta | ![](https://g.yuque.com/gr/latex?%5Ceta#card=math&code=%5Ceta&height=16&width=9) | \\mu | ![](https://g.yuque.com/gr/latex?%5Cmu#card=math&code=%5Cmu&height=16&width=10) | \\tau | ![](https://g.yuque.com/gr/latex?%5Ctau#card=math&code=%5Ctau&height=12&width=9) | | |
  34. | **4.公式编辑** | | | | | | | x |
  35. | \\hat x | ![](https://g.yuque.com/gr/latex?%5Chat%20x#card=math&code=%5Chat%20x&height=16&width=10) | \\widehat{xy} | ![](https://g.yuque.com/gr/latex?%5Cwidehat%7Bxy%7D#card=math&code=%5Cwidehat%7Bxy%7D&height=20&width=18) | \\overline x | ![](https://g.yuque.com/gr/latex?%5Coverline%20x#card=math&code=%5Coverline%20x&height=17&width=11) | \\vec x | ![](https://g.yuque.com/gr/latex?%5Cvec%20x#card=math&code=%5Cvec%20x&height=17&width=10) |
  36. | \\tilde x | ![](https://g.yuque.com/gr/latex?%5Ctilde%20x#card=math&code=%5Ctilde%20x&height=16&width=10) | \\widetilde{xy} | ![](https://g.yuque.com/gr/latex?%5Cwidetilde%7Bxy%7D#card=math&code=%5Cwidetilde%7Bxy%7D&height=18&width=18) | \\overrightarrow x | | \\overleftarrow | |
  37. | x^2_1 | ![](https://g.yuque.com/gr/latex?x%5E2_1#card=math&code=x%5E2_1&height=23&width=17) | \\frac{x+1}{y+2} | ![](https://g.yuque.com/gr/latex?%5Cfrac%7Bx%2B1%7D%7By%2B2%7D#card=math&code=%5Cfrac%7Bx%2B1%7D%7By%2B2%7D&height=42&width=45) | \\binom{n+1}{2n} | ![](https://g.yuque.com/gr/latex?%5Cbinom%7Bn%2B1%7D%7B2n%7D#card=math&code=%5Cbinom%7Bn%2B1%7D%7B2n%7D&height=45&width=65) | \\int_{x=1}^\\infty | ![](https://g.yuque.com/gr/latex?%5Cint_%7Bx%3D1%7D%5E%5Cinfty#card=math&code=%5Cint_%7Bx%3D1%7D%5E%5Cinfty&height=43&width=33) |
  38. | \\sqrt{a+b} | ![](https://g.yuque.com/gr/latex?%5Csqrt%7Ba%2Bb%7D#card=math&code=%5Csqrt%7Ba%2Bb%7D&height=22&width=51) | \\sqrt[n]{abc} | ![](https://g.yuque.com/gr/latex?%5Csqrt%5Bn%5D%7Babc%7D#card=math&code=%5Csqrt%5Bn%5D%7Babc%7D&height=22&width=38) | \\prod_{i=1}^n | | \\sum_{i=1}^n | |
  39. | arg\\max_{c_k} | | \\mathop {argmax}_{c_k} | | f'(x) | ![](https://g.yuque.com/gr/latex?f'(x)#card=math&code=f%27%28x%29&height=22&width=38) | | |
  40. | \\big( | | \\Big[ | | \\bigg( | | \\Bigg[ | |
  41. <a name="8dtRa"></a>
  42. #### 6.公式编辑
  43. 行内公式:`$f(x)=w^tx+b$`<br />
  44. 行间公式:
  45. ```latex
  46. $$
  47. \alpha\sum{x_i}
  48. $$

(1)多行公式
行间公式使用\换行,使用&标志需要对齐的位置,使用\空格来插入空格

\begin{equation} D^\star &=arg\max_{D}V(G,D) \\ & =arg\max_{D}\{E_{x\sim P_{data}}[logD(x)]+E_{x\sim P_G}[log(1-D(x))]\} \\ & =arg\max_{D}\{\int_xP_{data}(x)logD(x)dx+\int_{x}p_G(x)log(1-D(x))dx \} \\ & =\int_x[P_{data}(x)logD(x)+P_G(x)log(1-D(x))]dx \\ \end{equation}

markdown语法 - 图1
(2)方程组

sign(x)= \begin{cases} -1, & w^Tx+b<0 \\ +1, & w^Tx+b>=0 \end{cases}

markdown语法 - 图2%3D%0A%5Cbegin%7Bcases%7D%0A-1%2C%20%26%20w%5ETx%2Bb%3C0%20%5C%5C%0A%2B1%2C%20%26%20w%5ETx%2Bb%3E%3D0%0A%5Cend%7Bcases%7D%0A#card=math&code=sign%28x%29%3D%0A%5Cbegin%7Bcases%7D%0A-1%2C%20%26%20w%5ETx%2Bb%3C0%20%5C%5C%0A%2B1%2C%20%26%20w%5ETx%2Bb%3E%3D0%0A%5Cend%7Bcases%7D%0A&height=45&width=244)
(3)阵列
表头|用于分隔格列,c居中,r右对齐,l左对齐,hline插入水平线

\begin{array}{c|lc|r} {\downarrow}&{a}&{b}&{R^2} \\ \hline {R_1}&{bca}&{b}&{a} \\ {R_2}&{b}&{c}&{abc} \\ \end{array}

markdown语法 - 图3
(4)有边框矩阵

  • matrix无边框矩阵
  • vmatrix单竖线边框
  • Vmatrix双竖线边框
  • pmatrix小括号边框
  • bmatrix中括号边框
  • Bmatrix大括号边框

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

markdown语法 - 图4

7.流程图

(1).标准流程图

  1. st=>start: Start
  2. op=>operation: My Operation
  3. cond=>condition: Yes or No?
  4. e=>end
  5. st->op->cond
  6. cond(yes)->e
  7. cond(no)->op

(2)mermaid流程图

  1. graph LR
  2. A[方向] -->B(圆角)
  3. B --> C{条件a}
  4. C -->|a=1|D[结果1]
  5. C -->|a=2|E[结果2]
  6. A -->F[横向流程图]

markdown语法 - 图5%0A%09B%20—%3E%20C%7B%E6%9D%A1%E4%BB%B6a%7D%0A%09C%20—%3E%7Ca%3D1%7CD%5B%E7%BB%93%E6%9E%9C1%5D%0A%09C%20—%3E%7Ca%3D2%7CE%5B%E7%BB%93%E6%9E%9C2%5D%0A%09A%20—%3EF%5B%E6%A8%AA%E5%90%91%E6%B5%81%E7%A8%8B%E5%9B%BE%5D#code=graph%20LR%0AA%5B%E6%96%B9%E5%90%91%5D%20—%3EB%28%E5%9C%86%E8%A7%92%29%0A%09B%20—%3E%20C%7B%E6%9D%A1%E4%BB%B6a%7D%0A%09C%20—%3E%7Ca%3D1%7CD%5B%E7%BB%93%E6%9E%9C1%5D%0A%09C%20—%3E%7Ca%3D2%7CE%5B%E7%BB%93%E6%9E%9C2%5D%0A%09A%20—%3EF%5B%E6%A8%AA%E5%90%91%E6%B5%81%E7%A8%8B%E5%9B%BE%5D&id=9d597aa9&type=mermaid)