I think you only need to have the MathJax.js file, I don’t think you need node or internet. At least in most browsers, let’s test on the scdoc qt window.
MathML shows mathematical expression also in teletype, while LaTeX via MathJac does not. However, I do not exactly know when teletype is needed. If you think supporting mathematical expression in teletype is not needed, I can completely remove MathML.
Currently, I am using Web Integration. With this kind of integration, there seems to be no need to ship MathJax with SC, I believe. However, we also should think about the use case without an internet connection, and then MathJax should be included in SC. Also, it would be better to include SC because the script does not need to be changed when MathJax releases a new version of the script.
Thanks for letting me know it! However, if I understand correctly, the link you provided is related to the mathematical expression on GitHub. Unfortunately, I could not find how to integrate it in SC-Doc.
If anyone reading this post thinks it would be useful to implement some of these features in sclang, please reply to the appropriate PR. Thanks for reading!
When I tried to implement the current version of MathMax using \( ... \) and \[ ...\], I never had any problems.
I suspect that implementing the math:: tag might cause such problems again… However, unless someone tests it after implementing the math:: tag, there is no way of knowing if the same problem from 2013 will reappear in 2024.
@scztt
Sorry for the delay in responding to your comment.
A couple of years ago, when there was a suggestion on Git-Hub to create new Supercollider documentation, I considered it, but stopped because I believed using GitHub Doc only makes sense if SC developers have agreed to use it and abandon SCDoc.
So I think further implementation of the MathJax implementation depends on the meaning of @scztt’s following mention:
What you have mentioned here is new to me and I do not understand it.
Sorry, this was the main reason for the delayed reply to your comment, I also do not know how to mark to skip \( ... \) and \[ ... \].
Can you tell me which `.sc’ file I need to change? I would have a look to see if I could do that.
GitHub’s math rendering capability uses MathJax; an open-source, JavaScript-based display engine.
MathJax is managed by the American Mathematical Society and the Russian Academy of Sciences… It’s as good as it gets https://www.ams.orgMath-Net.Ru
Syntax is just plain old latex. It’s modular, we just really need a few components. It’s not a big deal. It’s lightweight and a safe option. @prko talked to a dev. We got all the information we would ever need. It just needs a reviewer to respectfully work with him, it’s not much work at all.
JavaScript is a moving target, so it depends upon whether the QT component used in SCDocs provides sufficient JavaScript support for MathJax, and what the performance is like.
It’s probably fine, but you can’t assume that it will be. You need to test it.
All it took was for someone to blow the dust off the code, and everything started working again. The bison fix was so easy that I think nobody ever even tried to fix it
There is a lesson there. Some people were spreading on GitHub that the bison/flex and all that code were “a mess” and totally “broken.” It took me one command, bison SCDoc.y --update, and I compiled everything with GCC. @prko did the same and put the math:: code, and it’s all fine.