-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
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
MathJax.startup.getComponents() does not remove macros in Mathjax 3 #2301
Comments
Thanks for the report. The startup module is not really intended to be used in this way (modifying the configuration after the fact), but I'll look into it to see if it can be made to work. |
Thanks! For my application, I would like to either modify settings on fly, or create a multiple number of MathJax instances each configured with different settings. Would the second be possible? |
OK, I found the problem, and it was a bit subtle. In fact, there are two separate issues involved. The first is that the I have made a PR that fixes both problems. Once that is merged, your original
Yes, either as you did, by using
and you can add whatever the configuration you want to the object used to configure the TeX input jax, and could make Note, however, that the errors that I describe will cause the same problems as you have reported here, so this will not help until the next release of MathJax. |
when macros are added or modified in Mathjax.config.tex.macros, then MathJax.startup.getComponents() will update MathJax to use these new macros or new definitions, however, if macros are removed from Mathjax.config.tex.macros, getComponents() will remove them from internal state and they are still applied
The text was updated successfully, but these errors were encountered: