Diff for /loncom/interface/lonpreferences.pm between versions 1.56 and 1.57

version 1.56, 2005/02/26 05:37:23 version 1.57, 2005/02/28 19:08:11
Line 192  sub texenginechanger { Line 192  sub texenginechanger {
      'tth' => 'TeX to HTML',       'tth' => 'TeX to HTML',
      'ttm' => 'TeX to MathML',       'ttm' => 'TeX to MathML',
      'jsMath' => 'jsMath',       'jsMath' => 'jsMath',
      #'mimetex' => 'Convert to Images'       'mimetex' => 'Convert to Images'
                      );                       );
     my $selectionbox=&Apache::loncommon::select_form($texengine,'texengine',      my $selectionbox=&Apache::loncommon::select_form($texengine,'texengine',
      %mathchoices);       %mathchoices);
Line 200  sub texenginechanger { Line 200  sub texenginechanger {
     my $jsMath_example=&Apache::lontexconvert::jsMath_converted(\$mathexample);      my $jsMath_example=&Apache::lontexconvert::jsMath_converted(\$mathexample);
     $mathexample='$$\int\left(\frac{a+b}{c^6*d}\right)$$';      $mathexample='$$\int\left(\frac{a+b}{c^6*d}\right)$$';
     my $tth_example=&Apache::lontexconvert::tth_converted(\$mathexample);      my $tth_example=&Apache::lontexconvert::tth_converted(\$mathexample);
       $mathexample='$$\int\left(\frac{a+b}{c^6*d}\right)$$';
       my $mimetex_example=&Apache::lontexconvert::mimetex_converted(\$mathexample);
     my $change=&mt('Change');      my $change=&mt('Change');
     $r->print(<<ENDLSCREEN);      $r->print(<<ENDLSCREEN);
 <form name="server" action="/adm/preferences" method="post">  <form name="server" action="/adm/preferences" method="post">
Line 209  sub texenginechanger { Line 211  sub texenginechanger {
 </form>  </form>
 Examples:  Examples:
 <p> TeX to HTML <br /> $tth_example</p>  <p> TeX to HTML <br /> $tth_example</p>
 <script type"text/javascript">function NoFontMessage () { }</script>  <script type="text/javascript">function NoFontMessage () { }</script>
 <script src="/adm/jsMath/jsMath.js"></script>  <script src="/adm/jsMath/jsMath.js"></script>
 <p>jsMath <br />   <p>jsMath <br /> 
   
 <script type"text/javascript">  <script type="text/javascript">
 if (jsMath.nofonts == 1) {  if (jsMath.nofonts == 1) {
     document.writeln      document.writeln
         ('<center><div style="padding: 10; border-style: solid; border-width:3;'          ('<center><div style="padding: 10; border-style: solid; border-width:3;'
Line 231  if (jsMath.nofonts == 1) { Line 233  if (jsMath.nofonts == 1) {
 </script>  </script>
   
 $jsMath_example</p>  $jsMath_example</p>
   <p> Convert to Images <br /> $mimetex_example</p>
 ENDLSCREEN  ENDLSCREEN
     if ($ENV{'environment.texengine'} ne 'jsMath') {      if ($ENV{'environment.texengine'} ne 'jsMath') {
  $r->print('<script type="text/javascript">jsMath.Process()</script>');   $r->print('<script type="text/javascript">jsMath.Process()</script>');

Removed from v.1.56  
changed lines
  Added in v.1.57


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>