Tex/LaTex with Markdown

Writing Mathematical Equations in Markdown Tex Format Setting up partials We will use the functionality of partial templates. https://gohugo.io/templates/partials/ Create a folder named partials under the layouts directory. \layouts\partials Place two files in this directory. mathjax.html <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"> </script> <script type="text/x-mathjax-config"> MathJax.Hub.Config({ tex2jax: { inlineMath: [['$', '$'] ], displayMath: [ ['$$','$$'], ["\\[","\\]"] ] } }); </script> footer.html <footer> {{ partial "mathjax.html" . }} </footer> Example of Mathematical Equations Simply surround the tex notation with $. Formula for solving quadratic equations $ x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} $ ...

December 30, 2024 · 1 min · 146 words · 0xuki