<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [LON-CAPA-users] Increasing the math font in the XML style sheet</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>It does, but it forces it on a new line and centres it.  The amsmath Tex package has a \dfrac which will have a \displaystyle fraction but keep it inline.  However I don't know if that can translate on the web or how to incorporate it in my preferences.<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: lon-capa-users-bounces@mail.lon-capa.org on behalf of Gerd Kortemeyer<BR>
Sent: Sat 1/28/2012 8:35 AM<BR>
To: Discussion list for LON-CAPA users<BR>
Subject: Re: [LON-CAPA-users] Increasing the math font in the XML style sheet<BR>
<BR>
Hi,<BR>
<BR>
Try adding "\displaystyle" to the expression and please see if jsMath respects that.<BR>
<BR>
- Gerd.<BR>
<BR>
On Jan 28, 2012, at 11:25 AM, Seema Ali wrote:<BR>
<BR>
> 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?<BR>
><BR>
> 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.<BR>
><BR>
><BR>
><BR>
><BR>
> -----Original Message-----<BR>
> From: lon-capa-users-bounces@mail.lon-capa.org on behalf of Gerd Kortemeyer<BR>
> Sent: Fri 1/27/2012 4:36 PM<BR>
> To: Discussion list for LON-CAPA users<BR>
> Subject: Re: [LON-CAPA-users] Increasing the math font in the XML style sheet<BR>
><BR>
> Hi,<BR>
><BR>
> You might want to try the other math display modes, for example MimeTeX or jsMath. You can set those in your course preferences.<BR>
><BR>
> Main Menu -> Modify Course Configuration -> Display of Resources -> Force use of a specific math rendering engine<BR>
><BR>
> Needs course reinitialization to kick in.<BR>
><BR>
> - Gerd.<BR>
><BR>
> On Jan 27, 2012, at 6:09 PM, Seema Ali wrote:<BR>
><BR>
> > 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.<BR>
> ><BR>
> > Below is an example of the problem.<BR>
> ><BR>
> > Thanks.<BR>
> ><BR>
> ><BR>
> > <problem><BR>
> > <script type="loncapa/perl">$exponent = &random(10,12,1);<BR>
> > $term     = &random(5, $exponent-2,1);<BR>
> ><BR>
> > $index= &random(1,2,1);<BR>
> > $numerator  = &choose($index, 3,5);<BR>
> ><BR>
> > $index= &random(1,2,1);<BR>
> > $denom = &choose($index, 2,4);<BR>
> ><BR>
> > $termnumerator = $numerator^$term * &factorial($exponent) / (&factorial($term) * &factorial($exponent-$term));<BR>
> > $termdenominator = $denom^$term;<BR>
> ><BR>
> > #$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 /><BR>
> > <br /><BR>
> ><BR>
> > Answer:<endouttext /><BR>
> > <formularesponse samples="x@0" answer="$numerator/$denom" id="11"><BR>
> >     <responseparam name="tol" type="tolerance" default="0.000000001" description="Numerical Tolerance" /><BR>
> >     <textline readonly="no" size="25" /><BR>
> >     <hintgroup showoncorrect="no"><BR>
> >     <startouttext /><endouttext /><BR>
> >     </hintgroup><BR>
> > </formularesponse><BR>
> > </problem><BR>
> ><BR>
> > _______________________________________________<BR>
> > LON-CAPA-users mailing list<BR>
> > LON-CAPA-users@mail.lon-capa.org<BR>
> > <A HREF="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</A><BR>
><BR>
> _______________________________________________<BR>
> LON-CAPA-users mailing list<BR>
> LON-CAPA-users@mail.lon-capa.org<BR>
> <A HREF="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</A><BR>
><BR>
><BR>
> _______________________________________________<BR>
> LON-CAPA-users mailing list<BR>
> LON-CAPA-users@mail.lon-capa.org<BR>
> <A HREF="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</A><BR>
<BR>
_______________________________________________<BR>
LON-CAPA-users mailing list<BR>
LON-CAPA-users@mail.lon-capa.org<BR>
<A HREF="http://mail.lon-capa.org/mailman/listinfo/lon-capa-users">http://mail.lon-capa.org/mailman/listinfo/lon-capa-users</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>