之前输入数学公式的一直用截图 自觉用户体验很差,最近发现用的这个主题带了好用的数学函数辅助,便一发不可收拾。顺便推荐一下我用的主题是maupassant-hexo github ,这里记录一下数学符的用法。
其他的主题可能方式不一样 具体需要对照文档
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\\]
βα��
上面演示的 β� 之类的数学符号列表如下:
Symbol | Script |
---|---|
coscos | \cos |
sinsin | \sin |
limlim | \lim |
expexp | \exp |
→→ | \to |
∞∞ | \infty |
≡≡ | \equiv |
modmod | \bmod |
×× | \times |
Symbol | Script |
---|---|
kn+1��+1 | k_{n+1} |
n2�2 | n^2 |
k2n��2 | k_n^2 |
Symbol | Script |
---|---|
n!k!(n−k)!�!�!(�−�)! | \frac{n!}{k!(n-k)!} |
(nk)(��) | \binom{n}{k} |
x1x−y�1�−� | \frac{\frac{x}{1}}{x - y} |
3/73/7 | ^3/_7 |
Symbol | Script |
---|---|
√k� | \sqrt{k} |
n√k�� | \sqrt[n]{k} |
Symbol | Script |
---|---|
∑10i=1ti∑�=110�� | \sum_{i=1}^{10} t_i |
∫∞0e−x,dx∫0∞e−�,d� | \int_0^\infty \mathrm{e}^{-x},\mathrm{d}x |
∑∑ | \sum |
∏∏ | \prod |
∐∐ | \coprod |
⨁⨁ | \bigoplus |
⨂⨂ | \bigotimes |
⨀⨀ | \bigodot |
⋃⋃ | \bigcup |
⋂⋂ | \bigcap |
⨄⨄ | \biguplus |
⨆⨆ | \bigsqcup |
⋁⋁ | \bigvee |
⋀⋀ | \bigwedge |
∫∫ | \int |
∮∮ | \oint |
∬∬ | \iint |
∭∭ | \iiint |
∫⋯∫∫⋯∫ | \idotsint |
∑0<i<m\0<j<nP(i,j)∑0<�<�\0<�<��(�,�) | \sum_{\substack{0<i<m\0<j<n}} P(i, j) |
b∫a∫�� | \int\limits_a^b |
a′�′ a′�′ | a` a^{\prime} |
a′′�″ | a’’ |
^a�^ | hat{a} |
¯a�¯ | \bar{a} |
`a�` | \grave{a} |
´a�´ | \acute{a} |
˙a�˙ | \dot{a} |
¨a�¨ | \ddot{a} |
/a⧸� | \not{a} |
˚a�˚ | \mathring{a} |
−−→AB��→ | \overrightarrow{AB} |
←−−AB��← | \overleftarrow{AB} |
a′′′�‴ | a’’’ |
¯¯¯¯¯¯¯¯¯aaa���¯ | \overline{aaa} |
ˇa�ˇ | \check{a} |
⃗a�→ | \vec{a} |
a−�_ | \underline{a} |
x� | \color{red}x |
±± | \pm |
∓∓ | \mp |
∫ydx∫�d� | \int y \mathrm{d}x |
,, | , |
:: | : |
;; | ; |
!! | ! |
∫y,dx∫�,d� | \int y, \mathrm{d}x |
…… | \dots |
…… | \ldots |
⋯⋯ | \cdots |
⋮⋮ | \vdots |
⋱⋱ | \ddots |
Symbol | Script |
---|---|
(a)(�) | (a) |
[a][�] | [a] |
a� | {a} |
⟨f⟩⟨�⟩ | \langle f \rangle |
⌊f⌋⌊�⌋ | \lfloor f \rfloor |
⌈f⌉⌈�⌉ | \lceil f \rceil |
┌f┐⌜�⌝ | \ulcorner f \urcorner |