测试pelican插件render_math对公式的支持能力(需配置参数为MATH_JAX)。
Inlined Math
- Relevant inline math:
$e=mc^2$
-
Will not render as inline math:
$40 vs $50
-
质能方程 : \(e=mc^2\)
Displayed Math
Math between $$
..$$
, for example, $$
x^2$$
, will be rendered centered in a new paragraph.
简单示例
$$x^2$$
Latex Macros
Latex macros are supported, and are automatically treated like displayed math
(i.e. it is wrapped in div
tag). For example, begin{equation}
x^2 \end{equation}
,
will be rendered in its own block with a right justified equation number
at the top of the block. This equation number can be referenced in the document.
To do this, use a label
inside of the equation format and then refer to that label
using ref
. For example: begin{equation}
\label{eq}
X^2 \end{equation}
. Now
refer to that equation number by $
\ref{eq}$
.
\begin{equation}
\label{eq}
X^2
\end{equation}
参见公式\(\ref{eq}\)...
$$A_\text{c} = (\pi/4) d^2$$
$$α_t(i) = P(O_1, O_2, … O_t, q_t = S_i λ)$$
comments powered by Disqus