Davide
OK, glad that worked for you.
> I just installed 2.0 and during that process came up with another
> (dirty?) solution approach that works more or less.
> In the config file we use TeX-AMS_HTML.js I changed the following
> settings to the MathJax.OutputJax["HTML-CSS"] line:
> ... availableFonts:
> [],preferredFont:"TeX",webFont:"",imageFont:"",undefinedFamily:"'Arial
> Unicode MS',serif", ...
>
> I´ll have to test it with proper font sizes, but I think it get me as
> close as I can get.
> What do you think, is this a viable solution?
You should not edit the config file directly. That will make it
harder to upgrade in the future. Rather, you should use in-line
configuration to adjust the parameters:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
"HTML-CSS": {
availableFonts: [],
preferredFonts: "TeX",
webFont:"",
imageFont:"",
undefinedFamily:"'Arial Unicode MS',serif"
}
});
</script>
Put this BEFORE the script that loads MathJax.
What you have done here is disable all of MathJax's fonts and forced
everything to be undefined. That means you will get no stretchy
characters, square roots probably won't work properly, and all the
letters will be considered to be .8em tall and .2em deep, so
superscripts and subscripts are likely to be misplaced. So while
MathJax will render the math as best it can under these conditions,
the results will not be very pleasing. It will also be less
efficient, since MathJax will try to measure every character (since it
doesn't have any data about the font in use). It also means that you
are relying on the user having the Arial Unicode MS font (otherwise it
falls back on the default serif font -- don't you want the sans-serif
font instead?).
I don't recommend this approach.
Although this may work OK in some simple cases, the results will not
be very good in more complicated ones. I think the substitution of
the MathJax sans-serif font is a better solution.
Davide
The mathjax display symbols of square root or vectors with a bending line problem.--as shown belowIt happens in Chrome ,and sometimes happens in Firefox.
How do i fix it?
Ronald
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.