[Using Sakai] MathML in Tests & Quizzes

Horst Hohberger horst at sjtu.edu.cn
Fri Sep 19 00:43:16 PDT 2014


I have a problem with using MathML in the Tests & Quizzes tool. Here is a "minimal" example:

1) I want to enter the LaTeX code "The following space $U$ is a vector subspace of $\mathbb{R}^n$:" for a multiple choice question.

2) I convert it to MathML at http://www.mathtowebonline.com/ and obtain:

The following space <!-- begin MathToWeb -->
<!-- (your LaTeX) $U$ -->
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
	<mi>U</mi>
</mrow>
</math>
<!-- end MathToWeb --> is a vector subspace of <!-- begin MathToWeb -->
<!-- (your LaTeX) $\mathbb{R}^n$ -->
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
	<msup>
		<mi>&Ropf;</mi>
		<mi>n</mi>
	</msup>
</mrow>
</math>
<!-- end MathToWeb -->:

3) I paste this code into the "Question" field by first selecting "show/hide rich text editor", then clicking on the "source" button , pasting, clicking on the button again. The formula displays perfectly in my up-to-date version of Firefox.

4) I save the quiz and take the student preview. The formula looks bad. I edit the question, click on "source" once more and see the following:

<p>
	The following space U is a vector subspace of ℝ n :</p>

So my question is: why did all the beautiful MathML disappear when saving the quiz?

Horst


- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Dr. Horst Hohberger
Associate Teaching Professor for Mathematics
University of Michigan - Shanghai Jiaotong University Joint Institute
上海交通大学密西根学院



More information about the sakai-user mailing list