美文网首页
简书Markdown支持Latex公式了

简书Markdown支持Latex公式了

作者: 已不再更新_转移到qiita | 来源:发表于2018-09-23 18:39 被阅读136次

如何写

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

这玩意能搞出人命啊

矩阵

$$
        \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

化学

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}}


参考:

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

相关文章

  • 2018-03-02

    简书能用Markdown 简书的Markdown支持code风格化,但是不支持数学公式(LaTeX/MathJax...

  • 简书Markdown支持Latex公式了

    如何写 只要在公式的前后加入$$符号,将需要输入的公式放到$$中间,即 $各种公式$就中了。 这玩意能搞出人命啊 ...

  • 【LeetCode】4. Median of Two Sorte

    简书只支持Markdown,但不支持LaTeX,一些公式只能以图片的形式显示,太麻烦了。所以我把文章发布在了csd...

  • [实用] 简书中如何编辑Latex数学公式

    Tags: LaTex MathJax 简书Markdown暂时不能直接支持使用$$标签来显示Latex语法,可以...

  • LaTex 公式语法示例

    不求 LaTex 玩得炉火纯青,只求写公式时有个工具。 博客写公式头疼死了,这才发现了 LaTex(简书终于支持公...

  • 简书支持latex

    简书Markdown编辑器支持数学公式啦

  • 线性回归,加权回归

    服了,简书又不支持latex公式了。本文内容看博客:http://blog.csdn.net/longgb123/...

  • CapsNet学习笔记

    本文有一些公式,由于简书不支持LaTeX公式渲染,公式完整版请移步个人博客欢迎转载,转载请注明出处(简书地址和个人...

  • 【笔记】《统计学习方法》

      本来因为在CSDN里上传图片很麻烦,所以转到简书了。结果简书居然还不支持Latex和目录TOC、、、公式比较多...

  • 周志华《机器学习》笔记-聚类

    这是我看西瓜书时做的笔记,由于公式很多并且简书不支持LaTeX公式,所以只能传PDF截图了,可以在这里获得完整PDF。

网友评论

      本文标题:简书Markdown支持Latex公式了

      本文链接:https://www.haomeiwen.com/subject/pzrqoftx.html