--- loncom/xml/lontexconvert.pm 2007/08/14 19:32:35 1.84
+++ loncom/xml/lontexconvert.pm 2008/11/18 10:02:56 1.90
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# TeX Conversion Module
#
-# $Id: lontexconvert.pm,v 1.84 2007/08/14 19:32:35 albertel Exp $
+# $Id: lontexconvert.pm,v 1.90 2008/11/18 10:02:56 hauer Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -108,6 +108,14 @@ sub convert_real {
$xmlstring=~s/^\s*\
';
+ my $result='';
if ($displaystyle) {
$result='
'.$result.'';
}
@@ -343,7 +353,7 @@ sub msgtexconverted {
sub algebra {
use AlgParser;
- my ($string,$target,$style)=@_;
+ my ($string,$target,$style,$parstack,$safeeval)=@_;
my $parser = new AlgParserWithImplicitExpand;
$string=&prepare_algebra($string);
my $ret = $parser->parse($string);
@@ -360,7 +370,9 @@ sub algebra {
$latex='\\ensuremath{'.$latex.'}';
}
if ($target eq 'web' || $target eq 'analyze') {
- $result = &converted(\$latex);
+ my $display=&Apache::lonxml::get_param('display',$parstack,$safeeval);
+ $result = &converted(\$latex,$display);
+# $result = &converted(\$latex);
} else {
$result = $latex;
}