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

albertel lon-capa-cvs@mail.lon-capa.org
Sun, 27 Feb 2005 17:26:09 -0000


albertel		Sun Feb 27 12:26:09 2005 EDT

  Modified files:              
    /loncom/xml	scripttag.pm 
  Log:
  - allow a choice of display style or not
  
  
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.124 loncom/xml/scripttag.pm:1.125
--- loncom/xml/scripttag.pm:1.124	Sat Feb 26 01:14:01 2005
+++ loncom/xml/scripttag.pm	Sun Feb 27 12:26:09 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # <script> definiton
 #
-# $Id: scripttag.pm,v 1.124 2005/02/26 06:14:01 albertel Exp $
+# $Id: scripttag.pm,v 1.125 2005/02/27 17:26:09 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -563,7 +563,8 @@
 	my $inside = &Apache::lonxml::get_all_text_unbalanced("/algebra",$parser);
 	$inside = &Apache::run::evaluate($inside,$safeeval,$$parstack[-1]);
 	if ($target eq 'web' || $target eq 'tex' || $target eq 'analyze') {
-	    $result=&Apache::lontexconvert::algebra($inside,$target);
+	    my $style=&Apache::lonxml::get_param('style',$parstack,$safeeval);
+	    $result=&Apache::lontexconvert::algebra($inside,$target,$style);
 	}
 	$Apache::lonxml::post_evaluate=0;
     }