File:  [LON-CAPA] / loncom / xml / algebra / algebra2tex.pl
Revision 1.1: download - view: text, annotated - select for diffs
Thu Feb 24 01:21:51 2005 UTC (19 years, 5 months ago) by albertel
Branches: MAIN
CVS tags: HEAD
- adding in <algebra>

    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: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>