Using SVG with Chrome Windows

202 views
Skip to first unread message

The Yak

unread,
Feb 21, 2013, 6:17:03 PM2/21/13
to mathja...@googlegroups.com
Hello,

As noted in other topics, rendering in Chrome on Windows is not all that great. I have found that using SVG in Chrome works great. Is there a way to default SVG for Windows Chrome users, MathML for those that support it (e.g., Firefox), and HTML-CSS for others? 

Frédéric WANG

unread,
Feb 22, 2013, 4:39:38 AM2/22/13
to mathja...@googlegroups.com
Hello Yak. You can try something like

<script type="text/x-mathjax-config">
if (MathJax.Hub.Browser.isFirefox) {
MathJax.Hub.Config({
jax: ["input/TeX", "output/NativeMML"]
});
} else if (MathJax.Hub.Browser.isChrome) {
MathJax.Hub.Config({
jax: ["input/TeX", "output/SVG"]
});
} else {
MathJax.Hub.Config({
jax: ["input/TeX", "output/HTML-CSS"]
});
}
</script>

perhaps with some modifications, depending on which default
configuration you are using and what options you want exactly. But you
got the idea.

--
Fr�d�ric Wang
maths-informatique-jeux.com/blog/frederic

The Yak

unread,
Mar 18, 2013, 2:54:31 PM3/18/13
to mathja...@googlegroups.com
Is there a specific config I should use for this? Will SVG still work if the config is TeX-AMS-MML_HTMLorMML-full?
Fr�d�ric Wang
maths-informatique-jeux.com/blog/frederic

Davide P. Cervone

unread,
Mar 19, 2013, 11:25:23 AM3/19/13
to mathja...@googlegroups.com
> Is there a specific config I should use for this? Will SVG still work if the config is TeX-AMS-MML_HTMLorMML-full?

This configuration will not select SVG automatically. Users can still selected it via the MathJax menu if they wish.

Currently, there is no combined configuration file that selects among all three output formats. For that, you have to use something like what Fred suggested.

Davide
Reply all
Reply to author
Forward
Message has been deleted
0 new messages