Mathjax version 3. Any update regarding font support other than MathJax TeX font?
Work is progressing on this, but it is a complicated project. Yesterday, I pushed a stix2
branch that includes an SVG version of the STIX2 fonts. There is a stix2
subdirectory in that branch that includes an example HTML file that shows some stretchy characters, and an interactive file that you can use to type in your own TeX or MathML expressions for testing. There is a cli
directory that includes tex2svg
and mml2svg
commands that you can use to convert individual expressions to SVG files using the STIX2 fonts (and can use as templates for your own custom versions of these). You can compare to the originals from the direct
subdirectory of the MathJax node demos repository to see what modifications are needed.
Finally, there is a tables
directory that includes font tables for the STIX2 fonts as I've mapped them to the various mathvariant
values for MathJax (variants starting with -
are internal use to access things like the larger sizes of stretchy delimiters, calligraphic characters, and so on).
This branch currently is intended for server-side pre-processing only, as the data for the STIX2 fonts is very large, and needs to be broken in to pieces that can be loaded dynamically as needed in order to be used effectively in a browser. Then CommonHTML support will follow relatively quickly.
The tools for producing the files needed by MathJax are coming along well, and were used to produce the files in this branch, but are not yet ready for public use.
So while much work has been happening behind the scenes, it is not quite ready yet for prime time. Work is going to slow down as I begin teaching again this fall, so a formal release will probably need to wait until early next year.
Thank you very much for your reply.
Are there any news? (Since it is 'early next year' now...)
We are actively working on it. There is a stix2 branch that includes an SVG version of the STIX2 fonts for server-side use (not yet for in-browser use) as an illustration of the effort. We expect to include more fonts in a public release during the summer.
@BrackXs just a thought: if @le-tex actually supported mathjax, development might just be faster.
High on my font wish list are sans serif fonts, such as newtxsf which plays nicely with the popular Fira Sans font.
@kno10 I think you mean sans-serif? I wondered if these changes would make it possible to make use of Fira Math in the future?
Yes, sans serif obviously. Fira Sans is pretty popular, and I'd like math typography consistent with Fira Sans.
Fira Math seems to be work in progress. newtxsf supposedly is quite complete and similar enough for most use cases.
Most helpful comment
Yes, sans serif obviously. Fira Sans is pretty popular, and I'd like math typography consistent with Fira Sans.
Fira Math seems to be work in progress. newtxsf supposedly is quite complete and similar enough for most use cases.