TYPORA的使用手册

常用样式及快捷键

语法功能效果
[toc]加目录
# 、 Ctrl+数字标题(六档)
*happy*斜体happy
**happy**加粗happy
~~happy~~删除线happy
*** --- ___分割线
<center>文字内容</center>居中
~~删除线的内容~~删除线删除线的内容
$a^2$上标 a 2 a^2 a2 a 2 a^2 a2
H_2O下标 H 2 O H_2O H2OH_2O
==高亮==高亮高亮
```代码段
``行内代码块
用单箭头表示>区块类
Ctrl+Shift+M数学公式
Ctrl+T表格
[^]注释
Ctrl+K超链接
ctrl+L选中某句话
ctrl+D选中某个单词
ctrl+E选中相同格式的文字
alt+shift+5删除线删除线的内容
ctrl+B加粗
ctrl+ I倾斜
ctrl+U下划线
Ctrl+Home返回Typora顶部
Ctrl+End返回Typora底部
Ctrl+T创建表格
Ctrl+K创建超链接
Ctrl+F搜索
Ctrl+H搜索并替换
Ctrl+Shift+I插入图片
高亮文字
\textcolor{颜色}{内容}高亮公式

字体样式

1) 字体颜色、背景、格式

<span style="color:fuchsia;background:yellow;font-size:102;font-family:楷体;">文字</span>
<span style="color:Magenta;background:aqua;font-size:200;font-family:隶书;">样式</span>

文字样式

2)只设字体颜色

洋红色 \textcolor{Magenta}{洋红色} 洋红色: 设置颜色为$\textcolor{RedOrange}{橙红色} ,设置字体颜色为 ,设置字体颜色为 ,设置字体颜色为\textcolor{DarkOrchid}{DarkOrchid} $。数学公式也能分别设置颜色:
$ \textcolor{red}{\int_a^b}\textcolor{blue}{f(x)}\textcolor{green}{dx}\textcolor{brown}{=c}$

$\textcolor{GreenYellow}{GreenYellow} $
Y e l l o w \textcolor{Yellow}{Yellow} Yellow
$\textcolor{Goldenrod}{Goldenrod} $
D a n d e l i o n \textcolor{Dandelion}{Dandelion} Dandelion
$\textcolor{Apricot}{Apricot} $
P e a c h \textcolor{Peach}{Peach} Peach
$\textcolor{Melon}{Melon} $
Y e l l o w O r a n g e \textcolor{YellowOrange}{YellowOrange} YellowOrange
$\textcolor{Orange}{Orange} $
B u r n t O r a n g e \textcolor{BurntOrange}{BurntOrange} BurntOrange
B i t t e r s w e e t \textcolor{Bittersweet}{Bittersweet} Bittersweet
$\textcolor{RedOrange}{RedOrange} $
M a h o g a n y \textcolor{Mahogany}{Mahogany} Mahogany
$\textcolor{Maroon}{Maroon} $
B r i c k R e d \textcolor{BrickRed}{BrickRed} BrickRed
$\textcolor{Red}{Red} $
O r a n g e R e d \textcolor{OrangeRed}{OrangeRed} OrangeRed
R u b i n e R e d 文字 \textcolor{RubineRed}{RubineRed文字} RubineRed文字
W i l d S t r a w b e r r y \textcolor{WildStrawberry}{WildStrawberry} WildStrawberry
S a l m o n \textcolor{Salmon}{Salmon} Salmon
C a r n a t i o n P i n k \textcolor{CarnationPink}{CarnationPink} CarnationPink
$\textcolor{Magenta}{Magenta 洋红色} $
V i o l e t R e d \textcolor{VioletRed}{VioletRed} VioletRed
$\textcolor{Rhodamine}{Rhodamine} $
M u l b e r r y \textcolor{Mulberry}{Mulberry} Mulberry
$\textcolor{RedViolet}{RedViolet} $
F u c h s i a \textcolor{Fuchsia}{Fuchsia} Fuchsia
$\textcolor{Lavender}{Lavender} $
T h i s t l e \textcolor{Thistle}{Thistle} Thistle
$\textcolor{Orchid}{Orchid} $
D a r k O r c h i d \textcolor{DarkOrchid}{DarkOrchid} DarkOrchid
$\textcolor{Purple}{Purple} $
P l u m \textcolor{Plum}{Plum} Plum
$\textcolor{Violet}{Violet} $
R o y a l P u r p l e \textcolor{RoyalPurple}{RoyalPurple} RoyalPurple
B l u e V i o l e t \textcolor{BlueViolet}{BlueViolet} BlueViolet
P e r i w i n k l e \textcolor{Periwinkle}{Periwinkle} Periwinkle
C a d e t B l u e \textcolor{CadetBlue}{CadetBlue} CadetBlue
C o r n f l o w e r B l u e \textcolor{CornflowerBlue}{CornflowerBlue} CornflowerBlue
M i d n i g h t B l u e \textcolor{MidnightBlue}{MidnightBlue} MidnightBlue
$\textcolor{NavyBlue}{NavyBlue} $
R o y a l B l u e \textcolor{RoyalBlue}{RoyalBlue} RoyalBlue
$\textcolor{Blue}{Blue} $
C e r u l e a n \textcolor{Cerulean}{Cerulean} Cerulean
$\textcolor{Cyan}{Cyan} $
P r o c e s s B l u e \textcolor{ProcessBlue}{ProcessBlue} ProcessBlue
$\textcolor{SkyBlue}{SkyBlue} $
T u r q u o i s e \textcolor{Turquoise}{Turquoise} Turquoise
$\textcolor{TealBlue}{TealBlue} $
A q u a m a r i n e \textcolor{Aquamarine}{Aquamarine} Aquamarine
$\textcolor{BlueGreen}{BlueGreen} $
E m e r a l d \textcolor{Emerald}{Emerald} Emerald
J u n g l e G r e e n \textcolor{JungleGreen}{JungleGreen} JungleGreen
$\textcolor{SeaGreen}{SeaGreen} $
G r e e n \textcolor{Green}{Green} Green
F o r e s t G r e e n \textcolor{ForestGreen}{ForestGreen} ForestGreen
$\textcolor{PineGreen}{PineGreen} $
L i m e G r e e n \textcolor{LimeGreen}{LimeGreen} LimeGreen
Y e l l o w G r e e n \textcolor{YellowGreen}{YellowGreen} YellowGreen
S p r i n g G r e e n \textcolor{SpringGreen}{SpringGreen} SpringGreen
O l i v e G r e e n \textcolor{OliveGreen}{OliveGreen} OliveGreen
$\textcolor{RawSienna}{RawSienna} $
S e p i a \textcolor{Sepia}{Sepia} Sepia
$\textcolor{Brown}{Brown} $
T a n \textcolor{Tan}{Tan} Tan
$\textcolor{Gray}{Gray} $

连接

  • 图片连接

    ![描述](图片链接地址)
    图片路径

    • 云端填网址就好

    • 本地:需与文档在同一文件夹下,或者在其子文件夹下。eg ![ASDF](校历.jpg)

  • 超链接

  1. 第一种:URL左右加<> eg: http://www.simba.com

  2. 第二种:快捷键Ctrl+K [自定义内容](超链接地址) eg: 百度一下

注脚

注脚按标记出现顺序编号

我爱睡觉[^1]
[^1]: 人是铁,床是磁铁

我爱睡觉1

我爱漫画2

列表

待办

- [ ] **学习计划**
  - [ ] linux
  - [ ] C++
  - [ ] 操作系统
    - [ ] 并行运算
    - [x] 性能检测
    - [x] 机器学习 
  • 学习计划
    • linux
    • C++
    • 操作系统
      • 并行运算
      • 性能检测
      • 机器学习

无序

+ 可用+
+ 可用-
+ 可用*
  + 二级用tab缩进
    + 三级
      + 四级
        + 五级  

有序

1. 阿拉伯数字+标点
2.  用单个tab空开
    1. 这是二级
       1. 这是三级
          1. 这是四级
             1. 这是五级
                1. 这是六级
                   1. 这是七级
                      1. 这是八级        

表格

  • 第一种:快捷键Ctrl+T
  • 第二种:|国籍|省份|市区|
|colname1|colname2|
|---|---|
|entry1|entry2|
|entry3|entry4|
colname1colname2
entry1entry2
entry3entry4

合并行

列一列一
合并行
合并行

合并列

列一列二
合并列行二列二
行三列二

实列**

文件状态:
[√] 草稿
[√] 正在修改
[√] 正式发布
文件标识:
当前版本:2.7
作 者:
创建日期:
最后更新:
密 级:
版权说明:

  • 简单表格

    • 开头结尾: \begin{array}\end{array}
    • 定义式:例:{|c|c|c|},其中c l r 分别代表居中、左对齐及右对齐
    • 分割线:
      • ①竖直分割线:在定义式中插入 |, (||表示两条竖直分割线)
      • ②水平分割线:在下一行输入前插入 \hline,以下图真值表为例。
    • 其他:每行元素间均须要插入 & ,每行元素以 \\ 结尾。
\begin{array}{|c|c|c|}
	\hline 2 & 9 & 4	\\
	\hline 7 & 5 & 3	\\
	\hline 6 & 1 & 8	\\
	\hline
\end{array}

2 9 4 7 5 3 6 1 8 \begin{array}{|c|c|c|} \hline 2 & 9 & 4 \\ \hline 7 & 5 & 3 \\ \hline 6 & 1 & 8 \\ \hline \end{array} 276951438

  • 真值表

    \begin{array}{cc|c}
    	       A & B & F	\\
    	\hline 0 & 0 & 0	\\
    	       0 & 1 & 1	\\
    	       1 & 0 & 1	\\
    	       1 & 1 & 1	\\
    \end{array}
    

A B F 0 0 0 0 1 1 1 0 1 1 1 1 \begin{array}{cc|c} A & B & F \\ \hline 0 & 0 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 1 \\ \end{array} A0011B0101F0111

公式

  • 行内公式 : $ $
  • 行外公式 :$$ $$ 、 Ctrl+Shift+M;
    • 后加 \tag{1} 公式序号
  • 多行等式对齐
\begin{aligned}
a &= b + c \\
  &= d + e + f
\end{aligned}

a = b + c = d + e + f \begin{aligned} a &= b + c \\ &= d + e + f \end{aligned} a=b+c=d+e+f

  • 方程组、条件表达式
\begin{cases}
3x + 5y +  z \\
7x - 2y + 4z \\
-6x + 3y + 2z
\end{cases}

{ 3 x + 5 y + z 7 x − 2 y + 4 z − 6 x + 3 y + 2 z \begin{cases} 3x + 5y + z \\ 7x - 2y + 4z \\ -6x + 3y + 2z \end{cases} 3x+5y+z7x2y+4z6x+3y+2z

f(n) =
\begin{cases} 
n/2,  & \text{if }n\text{ is even} \\
3n+1, & \text{if }n\text{ 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\text{ is even} \\ 3n+1, & \text{if }n\text{ is odd} \end{cases} f(n)={n/2,3n+1,if n is evenif n is odd

  • 间隔 (大小空格、紧贴)
紧贴 + 无空格 + 小空格 + 中空格 + 大空格 + 真空格 + 双真空格
a\!b + ab + a\,b + a\;b + a\ b + a\quad b + a\qquad b

a  ⁣ b + a b + a   b + a    b + a   b + a b + a b a\!b + ab + a\,b + a\;b + a\ b + a\quad b + a\qquad b ab+ab+ab+ab+a b+ab+ab

加粗

  • 数字加粗 使用$\mathbf{数学符号}$ 0123456789 \mathbf{0123456789} 0123456789
  • 希腊字母加粗 使用$\pmb{希腊字母}$ α β \pmb{\alpha\beta} αβ
  • 斜体加粗: $\boldsymbol{希腊字母}$ α β \boldsymbol{\alpha\beta} αβ

花括号

c(u)=\begin{cases}
\sqrt\frac{1}{N},u=0\
\sqrt\frac{2}{N}, u \neq 0
\end{cases}

c ( u ) = { 1 N , u = 0 2 N , u ≠ 0 c(u)=\begin{cases} \sqrt\frac{1}{N},u=0\\ \sqrt\frac{2}{N}, u \neq 0 \end{cases} c(u)= N1 u=0N2 u=0

矩阵

  1. 简单矩阵

    • \begin{matrix}…\end{matrix}生成

    • 行以\\结尾表示换行

    • 元素间以&间隔

    • 式子的表示序号\tag{1}

    \begin{matrix}
     1 & 2 & 3 \\
     4 & 5 & 6 \\
     7 & 8 & 9 
    \end{matrix} 
    

    1 2 3 4 5 6 7 8 9 (1) \begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \tag{1} 147258369(1)

  2. 大括号

    外加括号 \left\{ \right\}

     \left\{
     \begin{matrix}
       1 & 2 & 3 \\
       4 & 5 & 6 \\
       7 & 8 & 9
      \end{matrix}
      \right\} 
    

{ 1 2 3 4 5 6 7 8 9 } \left\{ \begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right\} 147258369

  1. 中括号

    外加括号 \left\[ \right\]

    \left[
    \matrix{
      \alpha_1 & test1\\
      \alpha_2 & test2\\
      \alpha_3 & test3 
    }
    \right]
    

KaTeX parse error: Undefined control sequence: \matrix at position 9: \left[ \̲m̲a̲t̲r̲i̲x̲{ \alpha_1 & …

  1. 小括号
 \left(
 \begin{matrix}
   1 & 2 & 3 \\
   4 & 5 & 6 \\
   7 & 8 & 9
  \end{matrix}
  \right) \tag{4}

( 1 2 3 4 5 6 7 8 9 ) \left( \begin{matrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{matrix} \right) 147258369

方法二

改变\begin{matrix}\end{matrix}{matrix}

  • 大括号
 \begin{Bmatrix}
   1 & 2 & 3 \\
   4 & 5 & 6 \\
   7 & 8 & 9
  \end{Bmatrix}

{ 1 2 3 4 5 6 7 8 9 } \begin{Bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{Bmatrix} 147258369

  • 中括号
 \begin{bmatrix}
   1 & 2 & 3 \\
   4 & 5 & 6 \\
   7 & 8 & 9
  \end{bmatrix}

[ 1 2 3 4 5 6 7 8 9 ] \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix} 147258369


  • 复杂的

    行省略号\cdots,列省略号\vdots,斜向省略号(左上至右下)\ddots

 \left\{
 \begin{matrix}
 1      & 2        & \cdots & 5        \\
 6      & 7        & \cdots & 10       \\
 \vdots & \vdots   & \ddots & \vdots   \\
 \alpha & \alpha+1 & \cdots & \alpha+4 
 \end{matrix}
 \right\}

{ 1 2 ⋯ 5 6 7 ⋯ 10 ⋮ ⋮ ⋱ ⋮ α α + 1 ⋯ α + 4 } \left\{ \begin{matrix} 1 & 2 & \cdots & 5 \\ 6 & 7 & \cdots & 10 \\ \vdots & \vdots & \ddots & \vdots \\ \alpha & \alpha+1 & \cdots & \alpha+4 \end{matrix} \right\} 16α27α+1510α+4

  • 上下括号
    a + b + c + d + ⋯ ⏞ 这是一段下面的内容 n 个 \overbrace{a+b+c+d+\cdots}^{n个}_{这是一段下面的内容} a+b+c+d+ 这是一段下面的内容n

    a + b + c + d + ⋯ ⏟ n 个 \underbrace{a+b+c+d+\cdots}_{n个} n a+b+c+d+


角标

上角标$^$ 公式上标
爆米TM爆米<sup>TM</sup> 文本上标
下角标$_$
分式 1 2 \frac{1}{2} 21\frac{1}{2}
省略号 ⋯ \cdots \cdots
开方 a + b 5 \sqrt[5]{a+b} 5a+b \sqrt[5]{a+b}
矢量 a ⃗ \vec{a} a \vec{a}
平均值 x ˉ \bar x xˉ\bar x
积分 ∫ 1 2 x d x \int_{1}^{2}{x}dx 12xdx\int_{1}^{2}{x}dx
极限 lim ⁡ n → + ∞ \lim_{ n \rightarrow + \infty } limn+\lim_{ n \rightarrow + \infty }
累加 ∑ n = 1 100 a n \sum_{n=1}^{100} {a_n} n=1100an\sum_{n=1}^{100} {a_n}
累乘 ∏ n = 1 99 x n \prod_{n=1}^{99}{x_n} n=199xn\prod_{n=1}^{99} {x_n}
x ← \overleftarrow{x} x \overleftarrow{x}
x → \overrightarrow{x} x \overrightarrow{x}
← \leftarrow \leftarrow
→ \rightarrow \rightarrow
↑ \uparrow \uparrow
↓ \downarrow \downarrow
⇐ \Leftarrow \Leftarrow
⇒ \Rightarrow \Rightarrow
⇑ \Uparrow \Uparrow
⇓ \Downarrow \Downarrow​
R \Bbb{R} R\Bbb{R}
x y z ‾ \overline{xyz} xyz 平均数计算\overline{xyz}

微积分运算

∫ \int \int ′ \prime \prime
∬ \iint \iint$\infty $\infty
∭ \iiint \iiint ∇ \nabla \nabla
∂ \partial \partial x ˙ \dot{x} x˙ 一阶导数\dot{x}
∮ \oint \oint x ¨ \ddot{x} x¨ 二阶导数\ddot{x}

公式& 特殊符号& 关系运算符

空格 \quad \quad
sin ⁡ \sin sin\sin
ln ⁡ 2 \ln2 ln2\ln2
log ⁡ 2 8 \log_28 log28\log_28
lg ⁡ 10 \lg10 lg10\lg10
± \pm ±\pm
× \times ×\times
⋅ \cdot \cdot
÷ \div ÷\div
⟨ a , b ⟩ \langle a , b \rangle a,b 内积\langle a , b \rangle
a ⊗ b a \otimes b ab 外积a \otimes b
≠ \neq =\neq
≈ \approx \approx
≅ \cong \cong
∽ \backsim \backsim
≡ \equiv \equiv
≤ \leq \leq
≥ \geq \geq
∀ \forall \forall
∞ \infty \infty
∅ \emptyset \emptyset
∃ \exists \exists
∇ \nabla \nabla
⊥ \bot \bot
∠ \angle \angle
∵ \because \because
∴ \therefore \therefore
∣ \mid \mid
∤ \nmid \nmid
∘ \circ \circ
∗ \ast \ast
⨀ \bigodot \bigodot
⨂ \bigotimes \bigotimes
⨁ \bigoplus \bigoplus
∑ \sum \sum
∏ \prod \prod
∐ \coprod \coprod
\ \backslash \\backslash

集合运算

∅ \emptyset \emptyset ∨ \vee \vee
∈ \in \in ∧ \wedge \wedge
∉ \notin /\notin ⊎ \uplus \uplus
⊂ \subset \subset ⊤ \top \top
⊃ \supset \supset ⊥ \bot \bot
⊆ \subseteq \subseteq ∁ \complement \complement
⊇ \supseteq \supseteq
∩ \cap \cap
∪ \cup \cup

逻辑运算

∵ \because \because ⊄ \not\subset \not\subset
∴ \therefore \therefore ≮ \not< <\not<
¬ \neg ¬\neg ≯ \not> >\not>
∀ \forall \forall ≠ \not= =\not=
∃ \exists \exists

戴帽运算

x y ^ \hat{xy} xy^\hat{xy} y ˊ \acute{y} yˊ\acute{y}
x y z ^ \widehat{xyz} xyz \widehat{xyz} y ˘ \breve{y} y˘\breve{y}
y ˉ \bar{y} yˉ\bar{y} y ˇ \check{y} yˇ\check{y}
x y ~ \tilde{xy} xy~\tilde{xy} y ˋ \grave{y} yˋ\grave{y}
x y z ~ \widetilde{xyz} xyz \widetilde{xyz} x ˙ \dot{x} x˙\dot{x}
x ¨ \ddot{x} x¨\ddot{x}

希腊字母

α \alpha α\alpha τ \tau τ\tau
β \beta β\beta υ \upsilon υ\upsilon
γ \gamma γ\gamma ϕ \phi ϕ\phi
δ \delta δ\delta φ \varphi φ\varphi
ϵ \epsilon ϵ\epsilon χ \chi χ\chi
ε \varepsilon ε\varepsilon ψ \psi ψ\psi
ζ \zeta ζ\zeta ω \omega ω\omega
η \eta η\eta Γ \Gamma Γ\Gamma
θ \theta θ\theta Θ \Theta Θ\Theta
ι \iota ι\iota Λ \Lambda Λ\Lambda
κ \kappa κ\kappa Δ \Delta Δ\Delta
λ \lambda λ\lambda Ξ \Xi Ξ\Xi
μ \mu μ\mu Π \Pi Π\Pi
ν \nu ν\nu Σ \Sigma Σ\Sigma
ξ \xi ξ\xi Υ \Upsilon Υ\Upsilon
ο \omicron ο\omicron Φ \Phi Φ\Phi
ρ \rho ρ\rho Ψ \Psi Ψ\Psi
σ \sigma σ\sigma Ω \Omega Ω\Omega
π \pi π\pi

markdown绘制相关图像

流程图

graph 关键字就是声明一张流程图,LR TD 方向 横竖

A
B
C
D
竖向流程图
a=1
a=2
方形
圆角
条件a
结果1
结果2
横向流程图
Created with Raphaël 2.3.0 开始框 处理框 判断框(是或否?) 输入输出框 结束框 子流程 yes no
Created with Raphaël 2.3.0 开始框 处理框 判断框(是或否?) 输入输出框 结束框 子流程 yes no

时序图(顺序图)

->> 代表实线箭头,-->> 则代表虚线。

对象A 对象B 对象B你好吗?(请求) 对象B的描述 对象A的描述(提示) 我很好(响应) 你真的好吗? 对象A 对象B 标题:复杂使用
张三 李四 嘿,小四儿, 写博客了没? 李四愣了一下,说: 忙得吐血,哪有时间写。 张三 李四 标题:复杂使用
sequenceDiagram
Alice ->> Bob: Authentication Request:
Bob -->> Alice: Authentication Response:
Alice ->> Bob: Another authentication Request:
Alice <-- Bob: another authentication Response:
对象A 对象B 小三 C 对象B你好吗?(请求) 对象B的描述 对象A的描述(提示) 我很好(响应) 你好吗 对象B找我了 你真的好吗? 我们是朋友 没人陪我玩 对象A 对象B 小三 C 标题:复杂使用
张三 李四 王五 王五你好吗? 与疾病战斗 loop [健康检查] 合理 食物 看医生... 很好! 你怎么样? 很好! 张三 李四 王五 标题:复杂使用
状态图

[*] 表示开始或者结束,如果在箭头右边则表示结束。

s1

类图

<|--` 表示继承,`+` 表示 `public`,`-` 表示 `private
Animal
+int age
+String gender
+isMammal()
+mate()
Duck
+String beakColor
+swim()
+quack()
Fish
-int sizeInFeet
-canEat()
Zebra
+bool is_wild
+run()

甘特图

甘特图一般用来表示项目的计划排期,目前在工作中经常会用到。

语法也非常简单,从上到下依次是图片标题、日期格式、项目、项目细分的任务

2020-01-05 2020-01-12 2020-01-19 2020-01-26 2020-02-02 2020-02-09 2020-02-16 A task Task in sec another task Another task Section Another 工作计划

饼图

饼图使用 pie 表示,标题下面分别是区域名称及其百分比

40% 46% 9% 5% Key elements in Product X Calcium Potassium Magnesium Iron

Mermaid 官方有一个在线的工具,可以导出 SVG 和 PNG

tips

  1. 一般导出 html ,大小是 pdf 的一半

  2. 好用的地图API

    http://api.map.baidu.com/lbsapi/creatmap/

  3. 参考链接

    1. https://cloud.tencent.com/developer/article/1838511

  1. 人是铁,床是磁铁 ↩︎

  2. 漫画是人类幸福的基石 ↩︎