Return to AlgParser.pm CVS log | Up to [LON-CAPA] / loncom / xml / algebra |
version 1.6, 2005/02/24 08:28:43 | version 1.7, 2005/02/24 08:32:11 |
---|---|
Line 607 sub tolatex { | Line 607 sub tolatex { |
} | } |
}; | }; |
/special/ && do { | /special/ && do { |
if ($args[0] eq 'pi') {return '\pi';} else {return $args[0];} | if ($args[0] =~/($greek|$escape)/) {return '\\'.$1;} |
elsif ($args[0] =~/$delete/) {return '';} | |
else { return $args[0]; } | |
}; | }; |
/varname|(:?number$)/ && return $args[0]; | /varname|(:?number$)/ && return $args[0]; |
/numberE/ && do { | /numberE/ && do { |