## WeBWorK Main Forum

### MathJax error after update

by Lars Jensen -
Number of replies: 6
Hi everyone,

After updating svn to the latest revision (6814) we get the MathJax error on every page with math rendering:

MathJax no longer loads a default configuration file; you must specify such files explicitly. This page seems to use the older default config/MathJax.js file, and so needs to be updated. This is explained further at http://www.mathjax.org/help/configuration

I noticed that this line in global.conf

$webworkURLs{MathJax}="$webworkURLs{htdocs}/mathjax/MathJax.js?config=TeX-AMS_HTML-full";

had changed to this in revision 6814:

$webworkURLs{MathJax}="$webworkURLs{htdocs}/mathjax/MathJax.js";

When I edited it back to the first line, the error message went away.

Does the first line represent the correct setting, or should it be something else?

Thanks,
Lars.

### Re: MathJax error after update

by Jason Aubrey -
Hi Lars,

It looks to me like the head version of global.conf.dist is correct:

http://webwork.maa.org/viewvc/system/trunk/webwork2/conf/global.conf.dist?view=markup

This line is indeed the correct line, and is what I get in global.conf.dist when I check out the current version of webwork2

$webworkURLs{MathJax}="$webworkURLs{htdocs}/mathjax/MathJax.js?config=TeX-AMS_HTML-full";

Jason

### Re: MathJax error after update

by Nandor Sieben -
I did a fresh install yesterday. The first version
came in the global.conf but it did not work. I changed
it to the second version and it works now.

### Re: MathJax error after update

by Jason Aubrey -
Hmm...are you getting the head version from trunk with

svn co http://svn.webwork.maa.org/system/trunk/webwork2/

as the command, or did you install rel-2-4-9-1 from tags?

(I do see that the MathJax url should be updated there also:

http://webwork.maa.org/viewvc/system/tags/rel-2-4-9-1/webwork2/conf/global.conf.dist?view=markup)

### Re: MathJax error after update

by Nandor Sieben -
I followed

Installation Manual for 2.4 on Ubuntu 10.04

It told me to do

$svn co http://svn.webwork.maa.org/system/trunk/webwork2$ svn co
http://svn.webwork.maa.org/system/trunk/pg
$svn co http://svn.webwork.maa.org/npl/trunk/NationalProblemLibrary Should I be doing something else? I wanted to have an up to date system on which I can test problems before I add them to the NPL. In reply to Nandor Sieben ### Re: MathJax error after update by Jason Aubrey - Hi Nandor, That's the correct code. If you do 'svn info global.conf.dist' from inside of the webwork2/conf directory, do you get the following output? jason@goedel:~/webwork2/conf$ svn info global.conf.dist
Path: global.conf.dist
Name: global.conf.dist
URL: http://svn.webwork.maa.org/system/trunk/webwork2/conf/global.conf.dist
Repository Root: http://svn.webwork.maa.org/system
Repository UUID: c0722133-6baf-4dd8-8699-98d999cd4f06
Revision: 6814
Node Kind: file
Schedule: normal
Last Changed Author: aubreyja
Last Changed Rev: 6804
Last Changed Date: 2011-04-28 10:32:27 -0500 (Thu, 28 Apr 2011)
Text Last Updated: 2011-05-18 15:31:22 -0500 (Wed, 18 May 2011)

This is the output I get from a fresh checkout, and in it lines 287 and 288 of global.conf.dist read:

# Location of MathJax script, used for the MathJax display mode.
$webworkURLs{MathJax} = "$webworkURLs{htdocs}/mathjax/MathJax.js?config=TeX-AMS_HTML-full";

Is it not the same on your system?
Thanks,
Jason
$svn info global.conf.dist Path: global.conf.dist Name: global.conf.dist URL: http://svn.webwork.maa.org/system/trunk/webwork2/conf/global.conf.dist Repository Root: http://svn.webwork.maa.org/system Repository UUID: c0722133-6baf-4dd8-8699-98d999cd4f06 Revision: 6814 Node Kind: file Schedule: normal Last Changed Author: aubreyja Last Changed Rev: 6804 Last Changed Date: 2011-04-28 08:32:27 -0700 (Thu, 28 Apr 2011) Text Last Updated: 2011-05-16 15:39:50 -0700 (Mon, 16 May 2011) > # Location of MathJax script, used for the MathJax display mode. >$webworkURLs{MathJax} = "$webworkURLs{htdocs}/mathjax/MathJax.js?config=TeX-AMS_HTML-full"; > Is it not the same on your system? Yes, this is what I have in global.conf.dist but this did not work after installation. I had to change it to the one below and now it works.$webworkURLs{MathJax} = "\$webworkURLs{htdocs}/mathjax/MathJax.js";