Render LaTeX math expressions in Hugo with MathJax 3
This is juast a simple test:
$$ \newcommand{\abs}[1]{\left\vert#1\right\vert} \newcommand{\br}[1]{\left ( #1 \right )} $$
$$ \begin{eqnarray} (f_1 * f_2)(t) &=& \int_{\mathbb{R}} f_1(t-\tau) \cdot f_2(\tau) ~d\tau \newline \end{eqnarray} $$
Things to mention:
- In this hugo theme (m10c) the header is defined in themes/m10c/layouts/_default/baseof.html.
- The css stuff has to be added to assets/_extras.scss.
- Mathjax3 seems to not support \\\. Use \newline instead ;-)