Using external package

27 views
Skip to first unread message

Charles-Christophe Thomart

unread,
Jul 28, 2025, 5:02:32 AMJul 28
to MathJax Users
Hello,

I am using MathJax to write maths on my website for my students.
I'd like to use a package that can be found here :

Unfortunately, I've read that using packages is difficult because MathJax "is not TeX but simulating TeX". And package that have not been translated in javascript can't be used.

I've also found this :
window.MathJax = { loader: {load: ['[tex]/color']}, tex: {packages: {'[+]': ['color']}} };
to load extension. Does extension and package refer to the same thing?

I'd like to try loading the above package, but am a bit lost of where to install the package in order to let Mathjax find it.

Can you please give me some directions?
Thanks

dp...@mathjax.org

unread,
Aug 1, 2025, 1:17:59 PMAug 1
to mathja...@googlegroups.com
Charles-Christophe:

> I've read that using packages is difficult because MathJax "is not TeX but simulating TeX". And package that have not been translated in javascript can't be used.

Yes, that is correct. MathJax is not TeX, it is a javascript library that implements a TeX-like syntax, but the underlying code is completely different, and it doesn't implement the low-level macros needed by most LaTeX packages, so it is not a straight-forward process to migrate a TeX package to MathJax. It would have to be converted to javascript by hand.

> Does extension and package refer to the same thing?

Yes.

> I'd like to try loading the above package, but am a bit lost of where to install the package in order to let Mathjax find it.

You will not be able to use the LaTeX package. I am not familiar with the package, but looking at the documentation, it seems to be a pretty complex one, so converting to a form that MathJax could use might not be easy. If someone is interested in trying to do it, we could give them some pointers, but it is not something that the MathJax team is able to pursue at this time.

Davide P. Cervone
MathJax lead developer
dp...@mathjax.org

Charles-Christophe Thomart

unread,
Aug 1, 2025, 1:21:44 PMAug 1
to mathja...@googlegroups.com
Thank you for your time and your answer.

--
You received this message because you are subscribed to a topic in the Google Groups "MathJax Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mathjax-users/c93vtjfWQAc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mathjax-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mathjax-users/ADE75B15-22A1-41F5-B402-EF8865C9339C%40mathjax.org.
Reply all
Reply to author
Forward
0 new messages