--- loncom/xml/algebra/algebra2tex.pl 2005/02/24 01:21:51 1.1 +++ loncom/xml/algebra/algebra2tex.pl 2005/06/09 02:13:07 1.3 @@ -6,12 +6,15 @@ use AlgParser; my $parser = new AlgParserWithImplicitExpand; my $ret; -$ret = $parser -> parse($ARGV[0]); +foreach $str (@ARGV) { +$ret = $parser -> parse($str); if ( ref($ret) ) { - $parser -> tostring(); - $parser -> normalize(); - print $parser -> tolatex(); + print $parser -> tostring().$/; + print $parser -> normalize().$/; + print $parser -> tolatex().$/; } else { print $parser->{htmlerror}; } +print "\n"; +}