MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

Download source version 4 on our own hard drive

Open saraOrkide opened this issue 2 years ago • 3 comments

I downloaded the source for version 4 to give a reference from our hard server, but it still reads from your cdn to get the fonts, I need to do something special. I will also include the example of the font address: https://cdn.jsdelivr.net/npm/mathjax-modern-font/chtml/woff/mjx-mm-zero.woff

saraOrkide avatar Jan 29 '24 07:01 saraOrkide

You do not say how you downloaded the source (e.g., via npm, or git clone, or downloading the .zip file from GitHub, or what). Also, you don't mention how you are calling MathJax, or what your configuration is.

Please do fill out the full issue report when filing issues, as that asks for additional information that you haven't supplied.

Assuming you have done

npm install [email protected]
npm install [email protected]

you should move the node_modules/mathjax and node_modules/mathjax-modern-font directories to a place that is accessible to your server. Then include

MathJax = {
  loader: {
    paths: {
      'mathjax-modern': '<path-to-mathjax-modern-font>'
    }
  }
};

as part of your MathJax configuration, where <path-to-mathjax-modern-font> is the URL on your server for the mathjax-modern-font directory.

dpvc avatar Jan 29 '24 18:01 dpvc

downloading the .zip file from GitHub

saraOrkide avatar Jan 30 '24 06:01 saraOrkide

I assume that is the zip from mathjax/MathJax not mathjax/MathJax-full. You will also need the mathjax-modern-font files on your server as well, which are currently only available through npm via npm install [email protected]. You then need to move node_modules/mathjax-modern-font to your server and make the configuration that I describe above using the URL for the mathjax-modern-font directory on your server.

dpvc avatar Jan 30 '24 17:01 dpvc