[LON-CAPA-users] jsMath configuration

lon-capa-users@mail.lon-capa.org lon-capa-users@mail.lon-capa.org
Sun, 21 May 2006 09:43:04 -0400


<font size=3D"2">I am trying to use jsMath to represent equations properly =
on web pages.<br>
<br>
In a problem, I use the &lt;algebra&gt;y=3D3333/4444&lt;/algebra&gt; syntax=
.<br>
<br>
By default, I see just the usual y=3D3333/4444 in the output.<br>
<br>
However, if I set Preferences for Displaying Math Equations to jsMath, then=
 the equation displays correctly:<br>
<br>
y =3D <span style=3D"text-decoration: underline;">3333</span><br>
&nbsp;&nbsp;&nbsp;&nbsp; 4444<br>
<br>
My minor problem: it looks crummy, because the font size used is too small.=
<br>
<br>
The jsMath site indicates this is common, and recommends using the followin=
g construct to scale up the font size:<br>
<br>
&nbsp;&nbsp;&nbsp; &lt;script type=3D"loncapa/jsMath"&gt; jsMath =3D {Contr=
ols: {cookie: {scale: 133}}} &lt;/script&gt;<br>
<br>
The question is: where do I put this? Apparently it needs to go before the =
jsMath.jar command is issued.<br>
<br>
I tried it after the perlscript in the problem file, no results.<br>
I tried it in the style file, no results.<br>
<br>
Any thoughts on how to issue this?<br>
<br>
Thanks<br>
brew<br>
</font>=