简书Markdown支持Latex公式了

Latex

如何写

只要在公式的前后加入$$符号,将需要输入的公式放到$$中间,即 $各种公式$就中了。

这玩意能搞出人命啊

矩阵

$$
        \begin{pmatrix}
        1 & a_1 & a_1^2 & \cdots & a_1^n \\
        1 & a_2 & a_2^2 & \cdots & a_2^n \\
        \vdots & \vdots & \vdots & \ddots & \vdots \\
        1 & a_m & a_m^2 & \cdots & a_m^n \\
        \end{pmatrix}
$$

\begin{pmatrix} 1 & a_1 & a_1^2 & \cdots & a_1^n \\ 1 & a_2 & a_2^2 & \cdots & a_2^n \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 1 & a_m & a_m^2 & \cdots & a_m^n \\ \end{pmatrix}

函数

$y=f(x)$ y=f(x)
$p(xy)=p(x|y)p(y)=p(y|x)p(x)$ p(xy)=p(x|y)p(y)=p(y|x)p(x)

上下标

$a^b$ a^b
$a_b$ a_b
$L^aT_eX$ L^aT_eX
E=mc^2 E=mc^2
2^{256} - 2^{32} - 2^9 - 2^8 - 2^7 - 2^6 - 2^4 -1
2^{256} - 2^{32} - 2^9 - 2^8 - 2^7 - 2^6 - 2^4 -1

化学

H~2~O H2O
$\ce{SO4^2- + Ba^2+ -> BaSO4 v}$ \ce{SO4^2- + Ba^2+ -> BaSO4 v}

分数

\frac{a}{ b} \frac{a}{ b}
$\frac{3+8a}{5b+6}$ \frac{3+8a}{5b+6}

开方

$\sqrt[a]{b}$ \sqrt[a]{b} \sqrt[3] {27}

积分

\int{ }^{ } \int{ }^{ }
$\int^5_1{f(x)}{\rm d}x$ \int^5_1{f(x)}{\rm d}x

正负无穷

\infty \infty
正无穷 $+\infty$ +\infty
负无穷 $-\infty$ -\infty

极限

左箭头 $\lim_{n\rightarrow+\infty} n$ \lim_{n\rightarrow+\infty} n

关系运算符

大于等于 $\geq$ \geq
小于等于 $\leq$ \leq
包含于 $\subset$ \subset
包含 $\supset$ \supset
属于 $\in$ \in

二元运算符

加减 $\pm$ \pm
点乘 $\cdot$ \cdot
$\times$ \times
$\div$ \div

否定关系运算符

不等于 $\not=$ \not=
不小于 $\not<$ \not<
不包含 $\not\supset$ \not\supset

对数运算符

$\log$ \log
$\log_2{18}$ \log_2{18}
$\ln$ \ln

三角运算符

垂直 $\bot$ \bot
$\angle$ \angle
30度角 $30^\circ$ 30^\circ
正弦 $\sin$ \sin
余弦 $\cos$ \cos
正切 $\tan$ \tan

箭头

左箭头 $\leftarrow$ \leftarrow
右箭头 $\rightarrow$ \rightarrow
长箭头 $\longrightarrow$ \longrightarrow
上箭头 $\uparrow$ \uparrow
下箭头$\downarrow$ \downarrow

累加

$\sum_{ }^{ }$ \sum_{ }^{ }
$\sum{3x^n}$ \sum{3x^n}
$\sum_{n=1}^N{3x^n}$ \sum_{n=1}^N{3x^n}

累乘

\prod_{a}^{b} \prod_{a}^{b}

累加号的上标下标的前后顺序可以互换

求和号

$\prod{3x^n}$ \prod{3x^n}
带范围求乘 $\prod_{n=1}^N{3x^n}$ \prod_{n=1}^N{3x^n}

其他

$nP = P + P + \cdots + P$
$a \equiv r(mod\ n)$
$n P = \underbrace{P + P + \cdots + P}_{n\ \text{times}}$

nP = P + P + \cdots + P
a \equiv r(mod\ n)
n P = \underbrace{P + P + \cdots + P}_{n\ \text{times}}


参考:

https://stackoverflow.com/questions/13208286/how-to-write-latex-in-ipython-notebook

http://liuchengxu.org/blog-cn/posts/quick-latex/
https://www.jianshu.com/p/bae90bf9e5d8
https://lixingcong.github.io/2016/04/04/LaTex-intro/
https://www.jianshu.com/p/ffe65adb2c12

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • $ \LaTeX{} $历史 $\LaTeX{}$(/ˈlɑːtɛx/,常被读作/ˈlɑːtɛk/或/ˈleɪtɛ...
    大只若于阅读 5,716评论 0 5
  • Cmd Markdown 公式指导手册 标签: Tutorial 2018-03-20 补档:收到很多小伙伴对本文...
    单程_min阅读 1,057评论 0 0
  • 行内与独行 行内公式:将公式插入到本行内,符号:$公式内容$,如:$xyz$ 独行公式:将公式插入到新的一行内,并...
    DanielGavin阅读 390,577评论 21 303
  • 在C语言中,五种基本数据类型存储空间长度的排列顺序是: A)char B)char=int<=float C)ch...
    夏天再来阅读 3,450评论 0 2
  • 不学礼无以立 不学礼,无以立。出自《论语·季氏篇第十六》 释义:学礼则品节详明,而德性坚定,故能立。[1]礼教恭俭...
    丶横竖丿捺阅读 2,302评论 0 2