hugo

Einbindung MathJax in hugo

See https://stackoverflow.com/questions/64050359/how-to-use-markdown-syntax-to-write-math-in-hugo or here : https://bwaycer.github.io/hugo_tutorial.hugo/tutorials/mathjax/ Add these line <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script> <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> To the layout file of your hugo template. I use theme mainroad, and added the lines in themes/mainroad/layouts/_default/baseof.html, in head-section of html. Tests $$f_{res} = \frac{1}{2\pi\sqrt{LC}}$$ This shows as Mathjax \(a \ne b\), but this doesn’t (a \ne b) Likewise, this shows as Mathjax \[a \ne b\] but this doesn’t: [a \ne b] $\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$