Closed tautologico closed 7 years ago
Cannot reproduce. Make sure…
mathjax
tag to your postnikola serve
or an otherwise real web server and not file://
Nikola supports math input via MathJax. It is activated via the math roles and directives of reStructuredText and the usual LaTeX delimiters (backslash-parentheses, backslash-brackets) for other input formats.
To use mathematics in a post, you must add the
mathjax
tag.
(From the docs) The tag name does not depend on the renderer selected; I’ll add a note about it.
@tautologico, please do not delete comments, especially because it’s absolutely fine to ask questions like this, for example if docs are not entirely clear or you otherwise have doubts.
Sorry, I realized I was talking nonsense because the comment (to use the mathjax tag) is right there in the documentation and I hadn't seen it.
The math support mentioned in the Nikola Handbook does not work when using the lanyon theme. The LaTeX code is just wrapped in an equation* environment, and not rendered. I checked the templates and it seems the code to include the mathjax (or katex) code is not present in the theme templates.