Picture of Kok Han Yeow
Can't get math content to appear
by Kok Han Yeow - Monday, 4 July 2016, 5:45 AM
 

Hi,

I have loaded MathJax into the authoring tool. Then I tried putting the following into a text component:

\\(x^n + y^n = z^n\\)

\\( x^2 \\)

$$\frac{{7GMm}}{{8{{(3.5R)}^2}}}$$

Then I saved and clicked Preview.  The above math expressions didn't get displayed as math but exactly as shown above.

Does anyone know how I can include math content and display correctly?

 

Picture of Tom Taylor
Re: Can't get math content to appear
by Tom Taylor - Tuesday, 5 July 2016, 9:42 AM
 

Hello :)

How did you load up the library? If you haven't already, you may want to try out this extension: https://github.com/cgkineo/adapt-mathJax

 

Picture of Kok Han Yeow
Re: Can't get math content to appear
by Kok Han Yeow - Tuesday, 5 July 2016, 12:15 PM
 

Hello Tom,

I downloaded the 'adapt-mathJax-master' winzip file from the link you mentioned and uploaded through the plugin manager.

Is that right?

Picture of Tom Greenfield
Re: Can't get math content to appear
by Tom Greenfield - Tuesday, 5 July 2016, 1:47 PM
 

Hi there,

It looks as though that your backslashes are being escaped when they don't need to be. You only need to use double backslashes \\ when directly editing JSON. The following works fine for me in the authoring tool:

\(x^n + y^n = z^n\)
\( x^2 \)
$$\frac{{7GMm}}{{8{{(3.5R)}^2}}}$$
Picture of Kok Han Yeow
Re: Can't get math content to appear
by Kok Han Yeow - Thursday, 7 July 2016, 7:10 AM
 

Hi Tom,

Thanks for your suggestion. I tried removing one slash just like what you showed but the preview still didn't show the math expressions.

Is there some json file I need to modify?

 

Picture of Tom Greenfield
Re: Can't get math content to appear
by Tom Greenfield - Thursday, 7 July 2016, 9:32 AM
 

There's no extra configuration required in the authoring tool. I would just make sure that you're on version 0.1.2 of MathJax and that it's definitely enabled in the course's Manage extensions section:

Picture of Kok Han Yeow
Re: Can't get math content to appear
by Kok Han Yeow - Thursday, 7 July 2016, 4:01 PM
 

My Plugin Management screen shows:

Inside the course, the manage extensions section shows:

What I put inside a text component:

Anything else I missed?

Picture of Kok Han Yeow
Re: Can't get math content to appear
by Kok Han Yeow - Thursday, 18 August 2016, 8:16 AM
 

My original Authoring Tool was a vagrant install. After doing a 'developer's install' and adding MathJax extension, I finally can see math being displayed.

Picture of Tom Greenfield
Re: Can't get math content to appear
by Tom Greenfield - Friday, 19 August 2016, 4:18 PM
 

Thanks for checking back in, I'm glad you managed to sort it.