MathJax icon indicating copy to clipboard operation
MathJax copied to clipboard

v4beta4: console warnings about svg fira font

Open cebola2 opened this issue 2 years ago • 4 comments

Trying out v4beta4 I get warnings about the version of the svg Fira font: Component [mathjax-fira]/svg uses 4.0.0-beta.3 of MathJax; version in use is 4.0.0-beta.4 tex-mml-svg.js:1:30706 Component [mathjax-fira]/svg/dynamic/double-struck uses 4.0.0-beta.3 of MathJax; version in use is 4.0.0-beta.4 tex-mml-svg.js:1:30706

See https://cdi2.palhoto.pt/texto/1

Thanks for MathJax!

cebola2 avatar Oct 04 '23 19:10 cebola2

Since the updates were just made to the NPM packages, the newest versions of the fonts may not have made it to all the CDN edge nodes yet. It sometimes takes a day or so for a new version to migrate to all the servers.

Also, you may have a cached version of the old file in your browser cache, and it may not even be requesting the new version. So the first thing to try is to clear the browser cache and restart it (some browsers need a restart to completely clear things).

If that doesn't work, then you can add

MathJax = {
  loader: {
    paths: {
      'mathjax-fira': 'https://cdn.jsdelivr.net/npm/[email protected]'}
    }
  }
}

to force the version to be the new one.

See if one of those does it for you.

dpvc avatar Oct 04 '23 19:10 dpvc

PS, the warning should not be a problem in this case, as the format hasn't changed, so the old font version should work fine with the new MathJax beta.

dpvc avatar Oct 04 '23 19:10 dpvc

I do not use a cdn and cleared the cache. I unpack and host locally after downloading from https://github.com/mathjax/MathJax/archive/refs/tags/4.0.0-beta.4.tar.gz

cebola2 avatar Oct 04 '23 20:10 cebola2

OK, sorry.

It looks like I forgot to update the version of the mathjax-modern-font in the package.json file. Argh!

You should use npm install [email protected] or a similar command (depending on what package manager you are using). I will need to fix the package.json file.

dpvc avatar Oct 04 '23 21:10 dpvc