Skip to content
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

using a third party MathJax extension #2356

Open
Alex-Jordan opened this issue Mar 12, 2024 · 3 comments
Open

using a third party MathJax extension #2356

Alex-Jordan opened this issue Mar 12, 2024 · 3 comments

Comments

@Alex-Jordan
Copy link
Contributor

I'd like to use a third party MathJax extension js file. I know how to alter mathjax-config.js so that it wants to load the extension. The problem is I don't know where to put the actual extension js file. If I put it in htdocs/js/SomeFolder then npm ci creates a minimized, tagged, js file for it, and serves that minimized file. But MathJax is looking for the unminimized, untagged js file because that's what I put in mathjax-config.js. Of course I do not know the tag ahead of npm ci, so I can't (and wouldn't want to) declare the minimized, tagged js file in mathjax-config.js. Do we have a way to do this?

@drgrice1
Copy link
Sponsor Member

Is the extension file available via npm by chance?

There isn't a mechanism at this point to do what you are asking with a file in htdocs/js.

@Alex-Jordan
Copy link
Contributor Author

It is not. Here is the project I am trying to test out. It is by one of our chemistry faculty and has had some collaboration with Davide.

https://github.com/limefrogyank/siunitx-pcc/

@drgrice1
Copy link
Sponsor Member

Since this is on Github and has a compiled file in the distribution, you do the same thing that we do with MathQuill. From the htdocs directory run npm install github:limefrogyank/siunitx-pcc. Then the file will be at node_modules/siunitx/siunitx.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants