We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Does the template currently support Math Typesetting?
Thanks, Alexis
The text was updated successfully, but these errors were encountered:
I added MathJaX support using Shortcode.
In layouts/shortcodes/MathJaX.html:
layouts/shortcodes/MathJaX.html
{{ .Inner }}
In forty/layouts/partials/header.html:
forty/layouts/partials/header.html
... {{ with .Site.Params.favicon }} <link rel="shortcut icon" type="image/x-icon" href="{{ . | absURL }}"> <link rel="icon" type="image/x-icon" href="{{ . | absURL }}"> {{ end }} {{ if .Page.Params.enableMathJaX }} {{ partial "MathJaX.html" . }} {{ end }} ...
In layouts/partials/MathJax.html:
layouts/partials/MathJax.html
<script type="text/x-mathjax-config"> MathJax.Hub.Config({ extensions: ["tex2jax.js"], jax: ["input/TeX", "output/HTML-CSS"], tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], displayMath: [ ['$$','$$'], ["\\[","\\]"] ], processEscapes: true }, "HTML-CSS": { fonts: ["TeX"] } }); </script> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS_CHTML"> </script>
In the markdown file:
{{< MathJaX >}} $$ \begin{vmatrix}a & b\\ c & d \end{vmatrix} $$ {{< /MathJaX >}}
Sorry, something went wrong.
No branches or pull requests
Hi,
Does the template currently support Math Typesetting?
Thanks,
Alexis
The text was updated successfully, but these errors were encountered: