Math Engine

Showcase

Line Breaks

They must appear inside certain environments.

$1\\2$

$\displaylines{1\\2}$

$\begin{aligned} 1\\2 \end{aligned}$

Defining Macros

When the characters { and # appear together, all following content will be discarded due to a Hexo bug

1
2
$\newcommand{\water}{H_2O} \def\wate{H_2O}\def\liminfty#1{\lim_{ #1\to\infty}}$
$\water,\wate,\liminfty n$

Equation Labeling

Configuration: mathjax.tags=ams

1
2
3
4
$\ref{a},\ref{c}$
$\begin{equation}1\end{equation}$
$\begin{equation}1\label{a}\end{equation}$
$$2\tag{b}\label{b}$$

The hyper link for labeled equation is {postURL}#mjx-eqn%3A{label} — where spaces inside label are replaced with underscores — according to the MathJax3.2 Documentation

the physics pack

\eval:

$$\int_0^1x\dd{x}=\eval{\dfrac{x^2}{2}}_0^1=\dfrac{1}{2}$$