Tex
Mr.Hope ... 2021-2-25 Less than 1 minute
Let the Markdown file in your VuePress site support the syntax.
# Configuration
module.exports = {
themeConfig: {
mdEnhance: {
tex: true,
},
},
};
1
2
3
4
5
6
7
2
3
4
5
6
7
# Grammar
# Inline syntax
Use $codes$
.
Euler’s identity $e^{i\pi}+1=0$ is a beautiful formula in $\mathbb{R}^2$.
1
Euler’s identity is a beautiful formula in .
# Block syntax
Use $$codes$$
.
$$
\frac {\partial^r} {\partial \omega^r} \left(\frac {y^{\omega}} {\omega}\right)
= \left(\frac {y^{\omega}} {\omega}\right) \left\{(\log y)^r + \sum_{i=1}^r \frac {(-1)^ Ir \cdots (r-i+1) (\log y)^{ri}} {\omega^i} \right\}
$$
1
2
3
4
2
3
4
# More
For specific Tex syntax, see Katex tutorial (opens new window)
# Playground
Here will be the render result