纳兰音韵 e1a2109a68
i18n: Add some zh-cn translation of exampleSite(docs) (#12)
---------

Co-authored-by: Xin <xin@imfing.com>
2023-08-30 21:21:31 +01:00

1.2 KiB

title weight math
LaTeX 4 true

\KaTeX 用于呈现 LaTeX 数学表达式. 可在 front mattermath 设置为 true 来启用.

---
title: "My Page with LaTeX"
math: true
---

启用后, KaTeX 中的脚本, 样式表和字体将自动包含在你的网站中. 这样就可以在 Markdown 内容中使用 LaTeX 数学表达式.

Markdown 内容中支持内联和单独的 LaTeX 数学表达式.

内联

This $\sigma(z) = \frac{1}{1 + e^{-z}}$ is inline.

This \sigma(z) = \frac{1}{1 + e^{-z}} is inline.

单独的

$$F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt$$

will be rendered as:

F(\omega) = \int_{-\infty}^{\infty} f(t) e^{-j\omega t} \, dt

支持的功能

有关支持的函数列表, 转至 KaTeX supported functions.

化学表达式

通过 mhchem 支持化学表达式。

内联: \ce{H2O} is water.

单独的:

$$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$$
\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}