Math Rendering

Align
2022-03-12
1 min

信息

This feature is disabled by default.

提示

Code related to the disabled features will not be included in your site's bundle files.

Configuration

Enable KaTeX to render mathematical formulas in articles (supported by plugin-katex):

theme: gungnirTheme({
  themePlugins: {
    katex: true
  }
})

Syntax

Inline math: $E = mc^2$

Display math:

$$ i\hbar\frac{\partial \psi}{\partial t} = \frac{-\hbar^2}{2m} ( \frac{\partial^2}{\partial x^2} + \frac{\partial^2}{\partial y^2} + \frac{\partial^2}{\partial z^2} ) \psi + V \psi. $$

Code
Inline math: $E = mc^2$

Display math:

$$
i\hbar\frac{\partial \psi}{\partial t} = \frac{-\hbar^2}{2m} ( \frac{\partial^2}{\partial x^2} + \frac{\partial^2}{\partial y^2} + \frac{\partial^2}{\partial z^2} ) \psi + V \psi.
$$

Here is a list of TeX functions supported by KaTeX.