解决了!微信公众号数学公式排版

2019-10-14

本文总阅读量:

解决了!微信公众号数学公式排版难的问题被 Markdown Nice 解决了!全网第一个解决的!怎么还没人知道呢!

https://mdnice.com/ 给你最完美的解决方案!

行间公式

我是清晰的行间公式~

$$ \begin {aligned} c (\theta{1}) C (\theta{2}) =&(\cos \theta{1}+i \sin \theta{1})\left (\cos \theta{2}+i \sin \theta{2}\right) \ =&\left{\left (\cos \theta{1} \cos \theta{2}-\sin \theta{1} \sin \theta{2}\right)\right.\ &i\left (\cos \theta{1} \sin \theta{2}+\cos \theta{2} \sin \theta{1}\right)} \ =&\cos \left (\theta{1}+\theta{2}\right)+i \sin \left (\theta{1}+\theta{2}\right) \ =&c\left (\theta{1}+\theta{2}\right) \end {aligned}$$

我是清晰的行间公式~

$$ \left|z{1}+z{2}+\cdots+z{n}\right| \leqslant\left|z{1}\right|+\left|z{2}\right|+\cdots+\left|z{n}\right|.$$

我是清晰的行间公式~

$$ \begin{pmatrix} 1 & a1 & a1^2 & \cdots & a1^n \ 1 & a2 & a2^2 & \cdots & a2^n \ \vdots & \vdots & \vdots & \ddots & \vdots \ 1 & am & am^2 & \cdots & a_m^n \ \end{pmatrix} $$

我是清晰的行间公式~

行内公式

我是整齐的行内公式~

设 $A’$,$B’$ 二点联线段的中点为 $M$, 作 $PP’$,$A^{\prime} A^{\prime \prime}, B^{\prime} B^{\prime \prime}, M A^{\prime}$ 垂直于 $A,B$ 二点的联线 $l$ 由于 $M$ 是梯形 $A^{\prime} A^{\prime \prime} B^{\prime \prime} B^{\prime}$ 一个腰的 $A’$ 中点,故 $M’$ 必是另一腰 $A”B”$ 的中点。

我是整齐的行内公式~

由于 $M’$ 是 $A^{\prime \prime}B^{\prime \prime}$ 的中点,而 $\overline {A A^{\prime \prime}}=\overline {B B^{\prime \prime}}\left (=P P^{\prime}\right)$, 故 $M’$ 必定同时也是 $AB$ 的中点。

我是整齐的行内公式~

使用方法

忘记那把公式转成图片插入公众号的解决方案吧!

使用 Markdown Nice 结合 LaTeX 语法编写数学公式,一键复制到公众号中,给你飞一般的体验!

Markdown Nice 预览图

在左边的编辑框写入 Markdown 的内容,数学公式采用 LaTeX 语法嵌入其中:

1、行内公式:将公式前后各加 1 个 $ 符号,中间插入 LaTeX 语法。

一般情况下 $a+b$ 的结果

2、行间公式:将公式前后各加 2 个 $ 符号,中间插入 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}
$$

编辑器是实时渲染的,在右边可以实时看到效果。编辑完文章后点击上方工具栏的蓝色复制按钮,等出现下图提示:

复制成功提示

就可以直接在微信公众号后台编辑器直接 Ctrl + v 粘贴内容了。

微信编辑器效果

如果对 LaTeX 语法不熟悉,可参考知乎问题:知乎上的公式是怎么打出来的?。为了优化微信公众号显示,LaTeX 公式书写建议:

  1. \tag{xxx} 改为 \qquad (xxx)(避免公式被缩小)
  2. 长的行内公式改为行间公式(优化断行),并适当换行。不要直接使用 \\ 来换行,要使用 aligned 等对其环境。(避免公式被缩小)

需要注意的是:本工具排版的公式在公众号后台二次编辑的时候很容易丢失,所以尽量避免该操作。

哇

这么整齐的公式!这么细致的提示!是不是已经被感动到了!还不快来试一下!

访问 https://mdnice.com/ 极速体验!

感谢@Phoebe(创始人)@idx(公式终结者)@云影(图床和组件化大佬)这几位主要开发者提供的技术支持,在开源世界中始终以提升用户体验为目标而努力。

感谢所有主题设计者为用户提供优质选择。

感谢所有用户为开发者提供了诸多宝贵意见。

关注公众号回复「排版」加入用户群 觉得公式直击灵魂,欢迎点击在看转发