-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add ability to support user-added LaTeX Macros #16
Comments
Full message from user:
|
Another user has requested the ability to add extensions, like those used for Chemistry (i.e. https://github.com/mhchem/MathJax-mhchem/) |
This has been requested by another network manager (link for PB Support staff) |
Advanced math users would like the ability to define TeX macros and have them be added to their MathJax configuration. See http://docs.mathjax.org/en/latest/tex.html#defining-tex-macros and http://docs.mathjax.org/en/latest/configuration.html#local-config-files. From an advanced user: “LaTeX is impossibly complicated to use unless one has access to its macro definition feature, and MathJax allows that through the Javascript loading with the additional macro file.”
Proposal: Add a text input field to the MathJax settings page that allows users to define macros Pressbooks would create a standard local config .js file with an empty macro section. User-entered macros (once sanitized -- checking for unbalanced curly braces, etc.) would be added to this section of the config file and appended to the MathJax configuration file used for that book. I.e.:
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js,https://generic.pressbooks.pub/customMacros.js
The text was updated successfully, but these errors were encountered: