a post with math
This theme supports rendering beautiful math in inline and display modes using MathJax 3 engine. You just need to surround your math expression with $$
, like $$ E = mc^2 $$
. If you leave it inside a paragraph, it will produce an inline expression, just like \(E = mc^2\).
To use display mode, again surround your expression with $$
and place it as a separate paragraph. Here is an example:
You can also use \begin{equation}...\end{equation}
instead of $$
for display mode math. MathJax will automatically number equations:
and by adding \label{...}
inside the equation environment, we can now refer to the equation \eqref{eq:cauchy-schwarz} using \eqref
.
Note that MathJax 3 is a major re-write of MathJax that brought a significant improvement to the loading and rendering speed, which is now on par with KaTeX.