[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 15 Jan 2007 11:53:51 -0000


foxr		Mon Jan 15 06:53:51 2007 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  Bug 4652  - add a bunch of math escapes to print mode.
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.494 loncom/interface/lonprintout.pm:1.495
--- loncom/interface/lonprintout.pm:1.494	Mon Jan  8 14:07:58 2007
+++ loncom/interface/lonprintout.pm	Mon Jan 15 06:53:50 2007
@@ -2,7 +2,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.494 2007/01/08 19:07:58 albertel Exp $
+# $Id: lonprintout.pm,v 1.495 2007/01/15 11:53:50 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -697,6 +697,20 @@
     $result =~ s/&(clubs|\#9827);/\\ensuremath\{\\clubsuit\}/g;
     $result =~ s/&(hearts|\#9829);/\\ensuremath\{\\heartsuit\}/g;
     $result =~ s/&(diams|\#9830);/\\ensuremath\{\\diamondsuit\}/g;
+#   Chemically useful 'things' contributed by Hon Kie (bug 4652).
+    $result =~ s/&\#8636;/\\ensuremath\{\\leftharpoonup\}/g;
+    $result =~ s/&\#8637;/\\ensuremath\{\\leftharpoondown\}/g;
+    $result =~ s/&\#8640;/\\ensuremath\{\\rightharpoonup\}/g;
+    $result =~ s/&\#8641;/\\ensuremath\{\\rightharpoondown\}/g;
+    $result =~ s/&\#8652;/\\ensuremath\{\\rightleftharpoons\}/g;
+    $result =~ s/&\#8605;/\\ensuremath\{\\leadsto\}/g;
+    $result =~ s/&\#8617;/\\ensuremath\{\\hookleftarrow\}/g;
+    $result =~ s/&\#8618;/\\ensuremath\{\\hookrightarrow\}/g;
+    $result =~ s/&\#8614;/\\ensuremath\{\\mapsto\}/g;
+    $result =~ s/&\#8599;/\\ensuremath\{\\nearrow\}/g;
+    $result =~ s/&\#8600;/\\ensuremath\{\\searrow\}/g;
+    $result =~ s/&\#8601;/\\ensuremath\{\\swarrow\}/g;
+    $result =~ s/&\#8598;/\\ensuremath\{\\nwarrow\}/g;
     return $result;
 }