之前输入数学公式的一直用截图 自觉用户体验很差,最近发现用的这个主题带了好用的数学函数辅助,便一发不可收拾。顺便推荐一下我用的主题是maupassant-hexo github ,这里记录一下数学符的用法。
maupassant-hexo的数学函数开启方式 其他的主题可能方式不一样 具体需要对照文档
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Math Equation Add mathjax: true in Hexo's _config.yml. In the post which you would like to use math equation, add mathjax: true in the front-matter. For example: title: Test Math date: 2016-04-05 14:16:00 categories: math mathjax: true --- The default math delimiters are $$...$$ and \\[...\\] for displayed mathematics, and $...$ and \\(...\\) for in-line mathematics. However, if your post contains dollar signs ($), and they appear often in non-mathematical parts, in other words, you want to use $ as dollar sign not inline math delimiter, please add mathjax2: true in Hexo' s _config.yml instead of mathjax: true . Correspondingly, add mathjax2: true to the front-matter of the post in which you would like to use math equation.See the example.
效果如下: $ \beta \alpha $
或者这样以居中显示:
\[\beta \alpha\]
数学符 上面演示的 $\beta$ 之类的数学符号列表如下:
运算符
Symbol
Script
$\cos$
\cos
$\sin$
\sin
$\lim$
\lim
$\exp$
\exp
$\to$
\to
$\infty$
\infty
$\equiv$
\equiv
$\bmod$
\bmod
$\times$
\times
幂与指数
Symbol
Script
$k_{n+1}$
k_{n+1}
$n^2$
n^2
$k_n^2$
k_n^2
分数与二项式
Symbol
Script
$\frac{n!}{k!(n-k)!}$
\frac{n!}{k!(n-k)!}
$\binom{n}{k}$
\binom{n}{k}
$\frac{\frac{x}{1}}{x - y}$
\frac{\frac{x}{1}}{x - y}
$^3/_7$
^3/_7
根
Symbol
Script
$\sqrt{k}$
\sqrt{k}
$\sqrt[n]{k}$
\sqrt[n]{k}
运算必须符
Symbol
Script
$\sum_{i=1}^{10} t_i$
\sum_{i=1}^{10} t_i
$\int_0^\infty \mathrm{e}^{-x},\mathrm{d}x$
\int_0^\infty \mathrm{e}^{-x},\mathrm{d}x
$\sum$
\sum
$\prod$
\prod
$\coprod$
\coprod
$\bigoplus$
\bigoplus
$\bigotimes$
\bigotimes
$\bigodot$
\bigodot
$\bigcup$
\bigcup
$\bigcap$
\bigcap
$\biguplus$
\biguplus
$\bigsqcup$
\bigsqcup
$\bigvee$
\bigvee
$\bigwedge$
\bigwedge
$\int$
\int
$\oint$
\oint
$\iint$
\iint
$\iiint$
\iiint
$\idotsint$
\idotsint
$\sum_{\substack{0<i<m\0<j<n}} P(i, j)$
\sum_{\substack{0<i<m\0<j<n}} P(i, j)
$\int\limits_a^b$
\int\limits_a^b
$a’$ $a^{\prime}$
a` a^{\prime}
$a’’$
a’’
$\hat{a}$
hat{a}
$\bar{a}$
\bar{a}
$\grave{a}$
\grave{a}
$\acute{a}$
\acute{a}
$\dot{a}$
\dot{a}
$\ddot{a}$
\ddot{a}
$\not{a}$
\not{a}
$\mathring{a}$
\mathring{a}
$\overrightarrow{AB}$
\overrightarrow{AB}
$\overleftarrow{AB}$
\overleftarrow{AB}
$a’’’$
a’’’
$\overline{aaa}$
\overline{aaa}
$\check{a}$
\check{a}
$\vec{a}$
\vec{a}
$\underline{a}$
\underline{a}
$\color{red}x$
\color{red}x
$\pm$
\pm
$\mp$
\mp
$\int y \mathrm{d}x$
\int y \mathrm{d}x
$,$
,
$:$
:
$;$
;
$!$
!
$\int y, \mathrm{d}x$
\int y, \mathrm{d}x
$\dots$
\dots
$\ldots$
\ldots
$\cdots$
\cdots
$\vdots$
\vdots
$\ddots$
\ddots
括弧
Symbol
Script
$(a) $
(a)
$[a] $
[a]
$a $
{a}
$\langle f \rangle $
\langle f \rangle
$\lfloor f \rfloor $
\lfloor f \rfloor
$\lceil f \rceil$
\lceil f \rceil
$\ulcorner f \urcorner$
\ulcorner f \urcorner
🔗 Writing Mathematic Fomulars in Markdown – Archer Reilly
🔗 Markdown Table Formatter