mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Working version of algebra filter for Unix and Windows
This commit is contained in:
parent
3ce906d64d
commit
1a1de46ae2
7 changed files with 941 additions and 0 deletions
17
filter/algebra/algebra2tex.pl
Executable file
17
filter/algebra/algebra2tex.pl
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/perl
|
||||
|
||||
use lib '.';
|
||||
use AlgParser;
|
||||
|
||||
my $parser = new AlgParserWithImplicitExpand;
|
||||
my $ret;
|
||||
|
||||
$ret = $parser -> parse($ARGV[0]);
|
||||
if ( ref($ret) ) {
|
||||
$parser -> tostring();
|
||||
$parser -> normalize();
|
||||
print $parser -> tolatex();
|
||||
} else {
|
||||
print $parser->{htmlerror};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue