公式书写注意
- 下标要用转义字符,\_,因为在markdown里面被两个_包围起来的字符会最终被编译成<em>xxx<\/em>
举例
1 | $$\frac{\partial u}{\partial t} |
$$\frac{\partial u}{\partial t}
= h^2 \left( \frac{\partial^2 u}{\partial x^2} +
\frac{\partial^2 u}{\partial y^2} +
\frac{\partial^2 u}{\partial z^2}\right)$$
1 | $$ |
$$
\mathcal{L}(x,\beta) = \sum_{i=1}^{m} \mathcal{L}_i(x_i, \beta) = \sum_{i=1}^{m} \left(f_i(x_i) + \beta^T A_i x_i - \frac{1}{N} \beta^T b \right)
\qquad(1.7)
$$
1 | $$ |
$$
\begin{align}
& \min_{x} \quad f(x) \\
& s.t. \; Ax=b
\end{align} \qquad(1.1)
$$
1 | $$ |
$$
\mathcal{L}(x,\beta) = f(x) + \beta^T (Ax-b) \qquad(1.2)
$$