Installation on Windows

246 views
Skip to first unread message

Dirk

unread,
May 30, 2013, 6:33:47 AM5/30/13
to mathja...@googlegroups.com
 
I ran into problems when installing  MathJax.  I use the following code.


++START CODE


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
      processEscapes: true
            }
                    });
</script>
<script type="text/javascript" src="file///d:/MathJax/MathJax.js?config=default"></script>
</head>
<body>
$a = b$ and $c = d$.
</body>
</html>

++END CODE


My MathJax.js  is indeed at d:\Mathjax\MathJax.js (Windows notation).

The testing of the installation went also fine.  I tested all there was to be tested according the
documentation (index.html etc.).

The URL "file///d:/MathJax/MathJax.js?config=default" is also correct.
I tested it in my browser by putting that URL in the URL bar.  It is going fine also.
But I still do not succeed.

By the way.  If I use the URL of the server of MathJax, then everything runs fine.

I am running windows 7 with the browser Firefox 21.0.

I tested this code also in TopStyle which uses IE as testing browser.  It still does not work.

Frédéric WANG

unread,
May 30, 2013, 7:46:46 AM5/30/13
to mathja...@googlegroups.com
On 30/05/2013 12:33, Dirk wrote:
>
> I ran into problems when installing MathJax. I use the following code.
>
>
> ++START CODE
>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; " />
Your test case seems to work for me. Note that Firefox has issues with
Web fonts when used locally, but here the problem is elsewhere. Did you
download the whole MathJax zip or only the MathJax.js file? Do you get
any error in the Javascript console?

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

Dirk

unread,
May 30, 2013, 9:55:01 AM5/30/13
to mathja...@googlegroups.com
Yes, I downloaded & installed the complete .zip file.

Davide P. Cervone

unread,
May 30, 2013, 4:52:24 PM5/30/13
to mathja...@googlegroups.com
The HTML document looks fine, so that does suggest it is an installation issue.  Check your browser's error console to see if there are any useful messages there.  You can also enter

MathJax.Message.Log()

in the javascript console and see whether that lists anything failing to load.  Fred has already pointed out that Firefox has issues with web fonts when they come from file:// URL's, so that may be part of the issue.  You can avoid that by installing the STIX fonts, for example.

If you can't find anything in the logs, then send your default.js file, since there may be some issue there.  Other than that, we don't have the much to go on.

Davide


On May 30, 2013, at 9:55 AM, Dirk wrote:

Yes, I downloaded & installed the complete .zip file.

--
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.
 
 

Dirk

unread,
May 31, 2013, 2:26:35 AM5/31/13
to mathja...@googlegroups.com

There was indeed an error in the url.  file///d:/MathJax/MathJax.js?config=default.  I forgot the following file///d:/MathJax/MathJax.js?config=default
 must be file:///d:/MathJax/MathJax.js?config=default.

Note the missing ":"  after the file in the url.
It took me one night to find this out.

Thx for all  people trying to help me.


Reply all
Reply to author
Forward
0 new messages