为什么用MathJax,我只放一张图:
使用MathJax,公式就可以在页面中这样显示:
\(a^2 + b^2 = c^2\)
公式显示风格完全是可以订制的。具体安装配置见文末。
\[YOURFORMULA\]
或$$YOURFORMULA$$
。如:
\[MYFORMULA+-*/\]\(YOURFORMULA\)
。如 \(MYFORMULA+-*/\)\\(+\quad -\quad =\quad !\quad /\quad (\quad )\quad [\quad ]\quad <\quad >\quad |\quad '\quad :\quad [a..z]\quad [A..Z]\quad [0..9]\quad ,\quad .\\)
\(+\quad -\quad =\quad !\quad /\quad (\quad )\quad [\quad ]\quad <\quad >\quad |\quad '\quad :\quad [a..z]\quad [A..Z]\quad [0..9]\quad ,\quad .\)\\(\alpha\quad\beta\quad\gamma\quad\pi\quad\phi\quad\varphi\quad\theta\\)
\(\alpha\quad\beta\quad\gamma\quad\pi\quad\phi\quad\varphi\quad\theta\) \\(\Gamma\quad\Pi\quad\Phi\quad\Theta\\)
\(\Gamma\quad\Pi\quad\Phi\quad\Theta\)\\(\cos\quad\sin\quad\tan\quad\exp\quad\\)
\(\cos\quad\sin\quad\tan\quad\exp\quad\)\\(\lim\quad\bmod\quad\pmod x\quad\equiv\quad \times \quad \sqrt \quad \sum\_{i=1}^{10} xi \quad \displaystyle\sum\_{i=1}^{10} xi \quad \int\_0^\infty \quad \\)
\(\lim\quad\bmod\quad\pmod x\quad\equiv\quad \times \quad \sqrt \quad \sum_{i=1}^{10} xi \quad \displaystyle\sum_{i=1}^{10} xi \quad \int_0^\infty \quad \) \\(\oplus\quad \odot\quad \cup\\quad \cap\quad \vee\quad \wedge\quad \iiint\quad \oint\quad \prod\quad \int\limits\_a^b\quad \sum\_{\substack{0<i<m \\\\ 0<j<n}<!---->}P(i,j)\\)
\(\oplus\quad \odot\quad \cup\quad \cap\quad \vee\quad \wedge\quad \iiint\quad \oint\quad \prod\quad \int\limits_a^b\quad \sum_{\substack{0<i<m \\ 0<j<n}}P(i,j)\)\\(\in\quad \notin \quad \\)
\(\in\quad \notin \quad \)
\\(x\_i\quad x\_{i+1}\quad x^2\quad x^{i+1}\quad x\_{i+1}^{j*2}\quad x| \_{x=2}\\)
\(x_i\quad x_{i+1}\quad x^2\quad x^{i+1}\quad x_{i+1}^{j*2}\quad x| _{x=2}\)
\\((a)\quad [b]\quad \{c\}\quad \langle d \rangle \quad \lfloor e \rfloor \quad \lceil f \rceil \quad \left(\frac{a \over b}{c+d} \right) \quad (\big)\Big(\bigg)\Bigg()\quad \begin{cases}1\\\\2\\\\3\\\\ \end{cases} \\)
\((a)\quad [b]\quad {c}\quad \langle d \rangle \quad \lfloor e \rfloor \quad \lceil f \rceil \quad \left(\frac{a \over b}{c+d} \right) \quad (\big)\Big(\bigg)\Bigg()\quad \begin{cases}1\\2\\3\\ \end{cases} \)
\\(\frac{\frac{2a}{b^2}}{c+d}\quad {a \over b+c} \quad ^4/\_5 \quad \\)
\(\frac{\frac{2a}{b^2}}{c+d}\quad {a \over b+c} \quad ^4/_5 \quad \)
\\({n \choose k}\quad \binom{n}{k}\\)
\({n \choose k}\quad \binom{n}{k}\)
\\[\begin{matrix}1 & 2 \\\\ 3 & 4 \end{matrix} \times \begin{matrix}1 & 2 \\\\ 3 & 4 \end{matrix} = \begin{matrix}? & ? \\\\ ? & ? \end{matrix}\\]
\[\begin{matrix}1 & 2 \\ 3 & 4 \end{matrix} \times \begin{matrix}1 & 2 \\ 3 & 4 \end{matrix} = \begin{matrix}? & ? \\ ? & ? \end{matrix}\] \\(\begin{smallmatrix}1 & 2 \\\\ 3 & 4 \end{smallmatrix} \times \begin{smallmatrix}1 & 2 \\\\ 3 & 4 \end{smallmatrix} = \begin{smallmatrix}? & ? \\\\ ? & ? \end{smallmatrix}\\)
\(\begin{smallmatrix}1 & 2 \\ 3 & 4 \end{smallmatrix} \times \begin{smallmatrix}1 & 2 \\ 3 & 4 \end{smallmatrix} = \begin{smallmatrix}? & ? \\ ? & ? \end{smallmatrix}\)
\\(\pm\quad \mp\quad \dots \quad \infty \quad \boldsymbol{\alpha} \quad vs \quad \alpha \quad \color{red}{i'm\quad red}\\)
\(\pm\quad \mp\quad \dots \quad \infty \quad \boldsymbol{\alpha} \quad vs \quad \alpha \quad \color{red}{i'm\quad red}\)
这里的配置依照的是本博客的搭建需求,原理很简单,自取所需。
<script src='https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<script src='https://zhyack.github.io/mathjax-local/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
styles: { ".MathJax .merror": { color: "#FFFFFF", "font-style": "normal", "font-size": "100%" } }
<script type="text/x-mathjax-config"> MathJax.Hub.Config({ styles: { ".MathJax .merror": { color: "#FFFFFF", "font-style": "normal", "font-size": "100%" } } }); </script>
Copyright © 2015-2016 zhyack. All Rights Reserved.
如对文章有任何疑问,请移步问题聚集区一览~