[LON-CAPA-cvs] cvs: loncom /xml/algebra AlgParser.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 25 Feb 2005 06:31:00 -0000


albertel		Fri Feb 25 01:31:00 2005 EDT

  Modified files:              
    /loncom/xml/algebra	AlgParser.pm 
  Log:
  - \sin looks better that \mbox{sin}
  
  
Index: loncom/xml/algebra/AlgParser.pm
diff -u loncom/xml/algebra/AlgParser.pm:1.10 loncom/xml/algebra/AlgParser.pm:1.11
--- loncom/xml/algebra/AlgParser.pm:1.10	Thu Feb 24 04:37:05 2005
+++ loncom/xml/algebra/AlgParser.pm	Fri Feb 25 01:31:00 2005
@@ -603,10 +603,10 @@
 
       if ($args[0] =~ /$specialfunc/) {
 	  if (defined($1)) {
-	      return ('\mbox{log}_{10}'. $p1 . $args[1]->tolatex() . $p2);
+	      return ('\log_{10}'. $p1 . $args[1]->tolatex() . $p2);
 	  }
 	  elsif (defined($2)) {
-	      return ('\mbox{' . $2.$3 .'}^{-1}'. $p1 . $args[1]->tolatex() . $p2);
+	      return ('\\' . $2.$3 .'^{-1}'. $p1 . $args[1]->tolatex() . $p2);
 	  }
 	  elsif (defined($4)) {
 	      return ('|' . $args[1]->tolatex() . '|');