Fortunately, it is still possible to access the STIXGeneral font via
"font-family:STIXGeneral-Regular" and the italic version by "font-
family:STIXGeneral-Italic" (without the "font-style:italic"). It is
also possible to tell MathJax to set up its references that way. To
do so, include the following before loading MathJax.js:
<script type="text/x-mathjax-config">
MathJax.Hub.Register.LoadHook("[MathJax]/jax/output/HTML-CSS/fonts/
STIX/fontdata.js", function () {
var HTMLCSS = MathJax.OutputJax["HTML-CSS"];
MathJax.Hub.Browser.Select({
Safari: function (browser) {
browser.STIXfontBug = browser.versionAtLeast("5.1") &&
browser.isMac;
},
Chrome: function (browser) {
var match = navigator.appVersion.match(/AppleWebKit\/(\d+)/);
if (match && parseInt(match[1]) > 534) {browser.STIXfontBug =
true}
}
});
if (MathJax.Hub.Browser.STIXfontBug) {
HTMLCSS.FONTDATA.FONTS["STIXGeneral"].family = "STIXGeneral-
Regular";
HTMLCSS.FONTDATA.FONTS["STIXGeneral-italic"].family =
"STIXGeneral-Italic";
delete HTMLCSS.FONTDATA.FONTS["STIXGeneral-italic"].style;
}
});
</script>
This will be included in MathJax v2.0. This should allow the STIX
fonts to be used correctly with MathJax, without having your users
disable STIX, or disabling STIX fonts for non-WebKit browsers.
Hope that helps.
Davide
Would be it possible to achieve the same effect by changing default.js
(presuming that MJ is loaded from the web server, not from cloud)?
Victor
--
========================
Victor Ivrii, Professor, Department of Mathematics, University of Toronto
http://www.math.toronto.edu/ivrii
Davide
Thanks -- it works !
https://sites.google.com/site/mathjaxproject/development-process/hotfix-release-process
and involves several days of lead time. This is one of the things
that Robert was handling, and I don't have access to all the pieces
necessary to carry out the process. I will have to work it out for
the v2.0 release, but don't really think it is necessary to do it
before then. If it looks like 2.0 will be longer than two weeks, I
would reconsider, but things seem to be on schedule for that at the
moment.
Davide