Return to algebra2tex.pl CVS log | Up to [LON-CAPA] / loncom / xml / algebra |
1.1 ! albertel 1: #!/usr/bin/perl ! 2: ! 3: use lib '.'; ! 4: use AlgParser; ! 5: ! 6: my $parser = new AlgParserWithImplicitExpand; ! 7: my $ret; ! 8: ! 9: $ret = $parser -> parse($ARGV[0]); ! 10: if ( ref($ret) ) { ! 11: $parser -> tostring(); ! 12: $parser -> normalize(); ! 13: print $parser -> tolatex(); ! 14: } else { ! 15: print $parser->{htmlerror}; ! 16: } ! 17: