How to use MathJax in Hexo?
This blog is going to write down how to use MathJax in Hexo and I finished all the configs mentioned in Tutorial. Just because there are some difference between LaTex with MathJax.
First, we can use following two ways to express the expression in text. Like:
1 | `$\pi$` |
If I want to write
Second, We can use following two ways to express the expression to express the expressions in center.
If I want to show a matrix like:1
2
3
4
5
6
7
8
9
10
11
12
13
14
15$$
A = \begin{bmatrix}
a_{11} & a_{12} & ... & a_{1n}\\
a_{21} & a_{22} & ... & a_{2n}\\
a_{31} & a_{22} & ... & a_{3n}\\
\vdots & \vdots & \ddots & \vdots\\
a_{n1} & a_{n2} & ... & a_{nn}\\
\end{bmatrix} , b = \begin{bmatrix}
b_{1} \\
b_{2} \\
b_{3} \\
\vdots \\
b_{n} \\
\end{bmatrix}
$$
If I want to show some equations like:1
2
3
4
5
6
7
8
9\\[
\begin{equation}
sign(x)=\begin{cases}
-1 & \text{if $x<0$},\\
0 & \text{if $x=0$},\\
1 & \text{if $x>0$}.
\end{cases}
\end{equation}
\\]
More information: Rice Latex Symbols