Typora添加数学公式

参考链接:

https://blog.csdn.net/mingzhuo_126/article/details/82722455

https://www.cnblogs.com/144823836yj/p/10263070.html

https://zhuanlan.zhihu.com/p/262900046

https://blog.csdn.net/liyuanbhu/article/details/51473886

https://blog.csdn.net/luolang_103/article/details/81289529

https://blog.csdn.net/weixin_42301220/article/details/109817603

1.打开Typora选择数学模块

  • 点击“段落”—>“公式块”
  • 快捷键Ctrl+Shift+m
  • “$$”+回车

以上三种方式都能打开数学公式的编辑栏,如下:

Typora添加数学公式

Typora可以使用行内公式,行内公式需要开启设置。

具体操作:文件→偏好设置→Markdown,勾选内联公式,重启typora

输入,按Esc键会自动在后面加上一个,然后在这两个之间输入公式。

Typora添加数学公式

案例如下:

Typora添加数学公式

2. 添加数学公式

输出美观规范的数学公式,要清楚它们的格式和代码,在编辑栏中输入代码,对应的公式会在下面实时显示。

3.常用公式的代码

3.1.上/下标

算式 Markdown
\(x^{2}\) x^2
\(y_1\) y_1
\(\overset{?}=\) \overset{?}= (表达式上方插入符号)
\(\underset{0 \le j \le k-1}{\arg \min}\) \underset{0 \le j \le k-1}{\arg \min} (表达式下方插入符号)

3.2.分式

算式 Markdown
1/2 1/2
$\frac{1}{2} $ \frac{1}{2}

3.3.点符号

算式 Markdown
\(\cdots\) \cdots
\(\cdot\) \cdot
\(\vdots\) \vdots
$ \ddots$ \ddots

3.4.开根号

算式 Markdown
\(\sqrt{2}\) \sqrt{2}
\(\sqrt[a]{b}\) \sqrt[a]{b}

3.5.矢量

算式 Markdown
\(\vec{a}\) \vec{a}

3.6.积分

算式 Markdown
\(\int{x}dx\) \int{x}dx
\(\int_{1}^{2}{x}dx\) \int_{1}^{2}{x}dx

3.7.极限

算式 Markdown
\(\lim{a+b}\) \lim{a+b}
\(\lim_{n \rightarrow +\infty}\) \lim_{n \rightarrow +\infty}

3.8.累加

算式 Markdown
\(\sum{a}\) \sum{a}
\(\sum_{n=1}^{100}{a_n}\) \sum_{n=1}^{100}{a_n}

3.9.累乘

算式 Markdown
\(\prod{x}\) \prod{x}
\(\prod_{n=1}^{99}{x_n}\) \prod_{n=1}^{99}{x_n}

3.10.希腊字母

大写 Markdown 小写 Markdown
\(A\) A \(\alpha\) \alpha
\(B\) B \(\beta\) \beta
\(\Gamma\) \Gamma \(\gamma\) \gamma
\(\Delta\) \Delta \(\delta\) \delta
\(E\) E \(\epsilon\) \epsilon
\(\varepsilon\) \varepsilon
\(Z\) Z \(\zeta\) \zeta
\(H\) H \(\eta\) \eta
\(\Theta\) \Theta \(\theta\) \theta
\(I\) I \(\iota\) \iota
\(K\) K \(\kappa\) \kappa
\(\Lambda\) \Lambda \(\lambda\) \lambda
\(M\) M \(\mu\) \mu
\(N\) N \(\nu\) \nu
\(\Xi\) \Xi \(\xi\) \xi
\(O\) O \(\omicron\) \omicron
\(\Pi\) \Pi \(\pi\) \pi
\(P\) P \(\rho\) \rho
\(\Sigma\) \Sigma \(\sigma\) \sigma
\(T\) T \(\tau\) \tau
\(\Upsilon\) \Upsilon \(\upsilon\) \upsilon
\(\Phi\) \Phi \(\phi\) \phi
\(\varphi\) \varphi
\(X\) X \(\chi\) \chi
\(\Psi\) \Psi \(\psi\) \psi
\(\Omega\) \Omega \(\omega\) \omega

3.11.三角函数

三角函数 Markdown
\(\sin\) \sin
\(\arcsin\) \arcsin
\(\tan\) \tan

3.12.对数函数

算式 Markdown
\(\ln2\) \ln2
\(\log_28\) \log_28
\(\lg10\) \lg10

3.13.关系运算符

运算符 Markdown
\(\pm\) \pm
\(\times\) \times
\(\cdot\) \cdot
\(\div\) \div
\(\neq\) \neq
\(\equiv\) \equiv
\(\leq\) \leq
\(\geq\) \geq
\(\ll\) \ll
\(\gg\) \gg
\(\lll\) \lll
\(\ggg\) \ggg
\(<\) <
\(>\) >
\(\triangleq\) \triangleq

3.14.其它特殊字符

符号 Markdown
\(\forall\) \forall
\(\infty\) \infty
\(\emptyset\) \emptyset
\(\exists\) \exists
\(\nabla\) \nabla
\(\bot\) \bot
\(\angle\) \angle
\(\because\) \because
\(\therefore\) \therefore
\(\part\) \part
\(\in\) \in
\(\cup\) \cup
\(\cap\) \cap
\(\subset\) \subset
\(\subseteq\) \subseteq
\(\supset\) \supset
\(\sim\) \sim
\(\varnothing\) \varnothing
\(\lnot\) \lnot
\(\notin\) \notin

3.15.箭头符号

符号 Markdown
\(\uparrow\) \uparrow
\(\downarrow\) \downarrow
\(\Uparrow\) \Uparrow
\(\Downarrow\) \Downarrow
\(\updownarrow\) \updownarrow
\(\Updownarrow\) \Updownarrow
\(\rightarrow\) \rightarrow
\(\leftarrow\) \leftarrow
\(\Rightarrow\) \Rightarrow
\(\Leftarrow\) \Leftarrow
\(\leftrightarrow\) \leftrightarrow
\(\Leftrightarrow\) \Leftrightarrow
\(\longrightarrow\) \longrightarrow
\(\longleftarrow\) \longleftarrow
\(\Longrightarrow\) \Longrightarrow
\(\Longleftarrow\) \Longleftarrow
\(\longleftrightarrow\) \longleftrightarrow
\(\Longleftrightarrow\) \Longleftrightarrow
\(\mapsto\) \mapsto
\(\longmapsto\) \longmapsto
\(\hookleftarrow\) \hookleftarrow
\(\hookrightarrow\) \hookrightarrow
\(\leftharpoonup\) \leftharpoonup
\(\rightharpoonup\) \rightharpoonup
\(\leftharpoondown\) \leftharpoondown
\(\rightharpoondown\) \rightharpoondown
\(\rightleftharpoons\) \rightleftharpoons
\(\leadsto\) \leadsto
\(\nearrow\) \nearrow
\(\searrow\) \searrow
\(\swarrow\) \swarrow
\(\nwarrow\) \nwarrow
\(\nleftarrow\) \nleftarrow
\(\nrightarrow\) \nrightarrow
\(\nLeftarrow\) \nLeftarrow
\(\nRightarrow\) \nRightarrow
\(\nleftrightarrow\) \nleftrightarrow
\(\nLeftrightarrow\) \nLeftrightarrow
\(\dashrightarrow\) \dashrightarrow
\(\dashleftarrow\) \dashleftarrow
\(\leftleftarrows\) \leftleftarrows
\(\leftrightarrows\) \leftrightarrows
\(\Lleftarrow\) \Lleftarrow
\(\twoheadleftarrow\) \twoheadleftarrow
\(\leftarrowtail\) \leftarrowtail
\(\looparrowleft\) \looparrowleft
\(\leftrightharpoons\) \leftrightharpoons
\(\curvearrowleft\) \curvearrowleft
\(\circlearrowleft\) \circlearrowleft
\(\Lsh\) \Lsh
\(\upuparrows\) \upuparrows
\(\upharpoonleft\) \upharpoonleft
\(\downharpoonleft\) \downharpoonleft
\(\multimap\) \multimap
\(\leftrightsquigarrow\) \leftrightsquigarrow
\(\rightrightarrows\) \rightrightarrows
\(\rightleftarrows\) \rightleftarrows
\(\rightrightarrows\) \rightrightarrows
\(\rightleftarrows\) \rightleftarrows
\(\twoheadrightarrow\) \twoheadrightarrow
\(\rightarrowtail\) \rightarrowtail
\(\looparrowright\) \looparrowright
\(\rightleftharpoons\) \rightleftharpoons
\(\curvearrowright\) \curvearrowright
\(\circlearrowright\) \circlearrowright
\(\Rsh\) \Rsh
\(\downdownarrows\) \downdownarrows
\(\upharpoonright\) \upharpoonright
\(\downharpoonright\) \downharpoonright
\(\rightsquigarrow\) \rightsquigarrow

使用\\ 表示换行

3.16.戴帽符号

符号 Markdown
\(\hat{x}\) \hat{x}
\(\tilde{x}\) \tilde{x}
\(\check{x}\) \check{x}
\(\grave{x}\) \grave{x}
\(\bar{x}\) \bar{x}
\(\widehat{xy}\) \widehat{xy}
\(\widetilde{xyz}\) \widetilde{xyz}
\(\breve{x}\) \breve{x}
\(\acute{x}\) \acute{x}
\(\dot{x}\) \dot{x}

3.17.导数相关符号

符号 latex语法 形状
偏导符号 \partial x \(\partial x\)
求导符号 \mathrm{d} x \(\mathrm{d} x\)
撇形式的求导符号 x^{’} \(x^{’}\)
点形式的求导符号 \dot x \(\dot x\)
点形式的求导符号(几个点就是几个d) \ddot x \(\ddot x\)
全微分算子 \nabla f $ \nabla f$

4.字体样式

样式 latex语法 形状
粗体 \bold \(\bold B\)
斜体 \it \(\it B\)
正体 \rm \(\rm B\)
花体 \mathcal \(\mathcal B\)
数集 \mathbb \(\mathbb B\)
粗体花体 \pmb \(\pmb B\)

5.补充

花括号

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

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

空格

\[a \quad b \\ a\ b \]

a \quad b  #4个空格
a\ b  #小空格

矩阵

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

a = \left[
\matrix{
  \alpha_1 & test1\\
  \alpha_2 & test2\\
  \alpha_3 & test3 
}
\right]
上一篇:二进制部署K8S集群(九)Master节点之controller-manager集群部署


下一篇:kubeadm中添加k8s节点问题