[LON-CAPA-users] Increasing the math font in the XML style sheet

Seema Ali sali at vsb.bc.ca
Sat Jan 28 11:25:01 EST 2012


I'm using jsMath.  I really like it except the expressions/numbers in the fractions are too small.  Is there a way to modify the math class and increase the font size to +1 or +2 of whatever font the user is using?

I tried to define m and /m in the xml style sheet to increase the font size but that didn't work, it ended up not processing the math environment stuff and printed it out on the web.




-----Original Message-----
From: lon-capa-users-bounces at mail.lon-capa.org on behalf of Gerd Kortemeyer
Sent: Fri 1/27/2012 4:36 PM
To: Discussion list for LON-CAPA users
Subject: Re: [LON-CAPA-users] Increasing the math font in the XML style sheet
 
Hi,

You might want to try the other math display modes, for example MimeTeX or jsMath. You can set those in your course preferences.

Main Menu -> Modify Course Configuration -> Display of Resources -> Force use of a specific math rendering engine

Needs course reinitialization to kick in.

- Gerd.

On Jan 27, 2012, at 6:09 PM, Seema Ali wrote:

> I'd like to be able increase the math font so that the fractions are easier to read.  If I use display math it ends up on a new line and centred.  I know that the span tag's math class affects the math formulas, but I can't figure out how to increase the size by 1 or 2.
> 
> Below is an example of the problem.
> 
> Thanks.
> 
> 
> <problem>
> <script type="loncapa/perl">$exponent = &random(10,12,1);
> $term     = &random(5, $exponent-2,1);
> 
> $index= &random(1,2,1);
> $numerator  = &choose($index, 3,5);
> 
> $index= &random(1,2,1);
> $denom = &choose($index, 2,4);
> 
> $termnumerator = $numerator^$term * &factorial($exponent) / (&factorial($term) * &factorial($exponent-$term));
> $termdenominator = $denom^$term;
> 
> #$ANSWER = $numerator/$denom;</script><startouttext />One of the terms in the expansion of <m eval="on">$(x + b)^{$exponent}$</m>, where <m>$b > 0$</m>is <m eval="on">$\frac{$termnumerator}{$termdenominator}x^{$term}$</m>.  Find the value of <m>$b$</m>.  Do not approximate your answer.
> <br />
> <br />
> 
> Answer:<endouttext />
> <formularesponse samples="x at 0" answer="$numerator/$denom" id="11">
>     <responseparam name="tol" type="tolerance" default="0.000000001" description="Numerical Tolerance" />
>     <textline readonly="no" size="25" />
>     <hintgroup showoncorrect="no">
>     <startouttext /><endouttext />
>     </hintgroup>
> </formularesponse>
> </problem>
> 
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users

_______________________________________________
LON-CAPA-users mailing list
LON-CAPA-users at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-users/attachments/20120128/bad26c7b/attachment.html>


More information about the LON-CAPA-users mailing list