Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Write theorem in MathJax?

Tags:

mathjax

Is there way to create something like the amsthm theorem-environment in MathJax? I believe that package is not supported.

I added amsthm.js in default.html and nothing happens.

<script type="text/x-mathjax-config">
    MathJax.Hub.Config({ 
      TeX: { 
        extensions: ["amsthm.js", "AMSmath.js","AMSsymbols.js", "autobold.js"],
      }
    });
</script>
like image 257
horaceT Avatar asked Oct 28 '25 23:10

horaceT


1 Answers

No. Well, technically, you could write an extension that does this but it's not what MathJax is for.

To quote the mathjax documentation

Note that the TeX input processor implements only the math-mode macros of TeX and LaTeX, not the text-mode macros. MathJax expects that you will use standard HTML tags to handle formatting the text of your page; it only handles the mathematics. So, for example, MathJax does not implement \emph or \begin{enumerate}...\end{enumerate} or other text-mode macros or environments. You must use HTML to handle such formatting tasks. If you need a LaTeX-to-HTML converter, you should consider other options.

like image 174
Peter Krautzberger Avatar answered Nov 01 '25 12:11

Peter Krautzberger



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!