Diff for /loncom/xml/lontexconvert.pm between versions 1.59 and 1.61

version 1.59, 2005/02/25 05:54:01 version 1.61, 2005/02/27 17:28:56
Line 149  sub jsMath_converted { Line 149  sub jsMath_converted {
  #has a $$ in it, guessinng it's display mode   #has a $$ in it, guessinng it's display mode
  $tag='div';   $tag='div';
     }      }
     &Apache::lonnet::logthis($$texstring);  
     $$texstring=~s/(?!\\)\$//g;      $$texstring=~s/(?!\\)\$//g;
     $$texstring=~s/\\ensuremath//g      $$texstring=~s/\\ensuremath//g;
     &Apache::lonnet::logthis($$texstring);  
     return '<'.$tag.' class="math">'.$$texstring.'</'.$tag.'>';      return '<'.$tag.' class="math">'.$$texstring.'</'.$tag.'>';
 }  }
   
Line 253  sub algebra { Line 251  sub algebra {
  if ($style eq 'display') {   if ($style eq 'display') {
     $latex='$$'.$latex.'$$x';      $latex='$$'.$latex.'$$x';
  } else {   } else {
       # style is 'inline'
     $latex='\\ensuremath{'.$latex.'}';      $latex='\\ensuremath{'.$latex.'}';
  }   }
  if ($target eq 'web' || $target eq 'analyze') {   if ($target eq 'web' || $target eq 'analyze') {
Line 304  sub postprocess_algebra { Line 303  sub postprocess_algebra {
   
     #       # 
     $string =~s/\\lim\\left\((.+?),(.+?),(.+?)\\right\)/\\lim_{$2\\to $3}$1/gs;      $string =~s/\\lim\\left\((.+?),(.+?),(.+?)\\right\)/\\lim_{$2\\to $3}$1/gs;
     &Apache::lonnet::logthis($string);  
     return $string;      return $string;
 }  }
 1;  1;

Removed from v.1.59  
changed lines
  Added in v.1.61


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