1. What browser are you using, and what version?
2. Is MathJax coming from a server, or being loaded locally from the
hard disk?
3. What version of the STIX fonts are you using?
For number 3, you need to use the actual distribution copy of SITX
fonts, not one of the earlier beta versions. There were a lot of
changes made from the beta versions to the final release, and most of
the earlier versions would not work properly with MathJax.
Davide
Here are some questions that might help us address your issue:
1. What browser are you using, and what version?
2. Is MathJax coming from a server, or being loaded locally from the hard disk?
3. What version of the STIX fonts are you using?
For number 3, you need to use the actual distribution copy of SITX fonts, not one of the earlier beta versions. There were a lot of changes made from the beta versions to the final release, and most of the earlier versions would not work properly with MathJax.
Well, I don't see why these browsers would be giving you any trouble. They work fine for me. I assume you restarted them after installing the fonts? And that there are no older versions of the fonts also installed anywhere else on the system?
You can use the About MathJax entry in the MathJax contextual menu (ctrl-click or right-click on an equation typeset by MathJax) to find out what font set it is using.
I see the math rendered with local STIX fonts, as would be expected for your configuration. This is in Safari 5.0.3.
You might try removing the MathJax menu cookie for your site, to see if there is anything there that is forcing it to chose the wrong fonts.
I'm stumped at the moment about that. I really don't know what to
look at, as I am not able to reproduce the problem.
I may be able to give you some diagnostic code to print out more data
about what is going on, and perhaps that will help me understand what
the issue is. The font-detection code is delicate, and there may be
an interaction with your setup that is causing the problem.
> One thing I've noticed in using Safari's Web Inspector is that the
> font-family for the equations is
>
> font-family: MathJax_Main, MathJax_Size1, MathJax_AMS;
>
> which, after I installed the TeX fonts, are the names of fonts on my
> system. Before I installed the TeX fonts, they were available only
> as web fonts.
>
> But shouldn't it be asking for fonts with names like "STIXGeneral"
> if it's going to use the STIX fonts? Did I miss some essential step?
The styles set on the equations is dependent on what fonts MathJax
detects as being available. It would only put out STIXgeneral if it
had determined that those fonts were present, and it doesn't think
they are. When it uses the web-based TeX fonts, it will use the names
that you refer to above.
Davide
I think I understand what you did for 2 through 5, as these are
described in your message below. Can you tell me exactly what 1 and 2
mean? I will see if I can reproduce. If not, then at least it seems
you have come up with a way to get them installed so that they do
work, and we can tell people how to do it if they are having
problems. It also accounts for why I was seeing the STIX fonts, since
I usually install by hand rather than through Font Book.
Davide
OK, thanks for the update.
I think I understand what you did for 2 through 5, as these are described in your message below. Can you tell me exactly what 1 and 2 mean? I will see if I can reproduce. If not, then at least it seems you have come up with a way to get them installed so that they do work, and we can tell people how to do it if they are having problems. It also accounts for why I was seeing the STIX fonts, since I usually install by hand rather than through Font Book.
OK, the first thing to try is seeing whether the STIX fonts show up in
other applications, like TextEdit.
If they don't show up, then it is some sort of system-level problem,
and there probably is nothing I can do about it from MathJax's side of
things. If they do show up, then it may be a problem of MathJax
detecting the fonts rather than their availability. In that case, I
will send an HTML file that will help test if the browser has access
to the fonts, but MathJax isn't picking that up.
Davide
OK, the first thing to try is seeing whether the STIX fonts show up in other applications, like TextEdit.Finally, I realized this morning that I *can* try running any debugging code you come up. The STIX fonts are detected on only one of my two computers. My iMac, which has the STIX fonts installed in ~/Library/Fonts via Font Book, is still showing equations in the TeX fonts. I'd be happy to run any tests you can think of to learn why the local STIX fonts aren't being detected.
If they don't show up, then it is some sort of system-level problem, and there probably is nothing I can do about it from MathJax's side of things. If they do show up, then it may be a problem of MathJax detecting the fonts rather than their availability. In that case, I will send an HTML file that will help test if the browser has access to the fonts, but MathJax isn't picking that up.
<STIX-test.html><STIX-test.png>