--- loncom/xml/londefdef.pm 2000/07/18 21:27:10 1.3 +++ loncom/xml/londefdef.pm 2000/10/12 13:51:50 1.5 @@ -13,12 +13,17 @@ sub BEGIN { } #===================================================================== TAG SUBROUTINES -#----------------------------------------------------------------------------- tag +#-- tag sub start_m { - my ($target,$token) = @_; + my ($target,$token,$parstack,$parser) = @_; my $currentstring = ''; if ($target eq 'web') { - $currentstring = lontexconvert::converted('hi'); + my $inside = &Apache::lonxml::get_all_text("/m",$$parser[$#$parser]); + $inside ='\\documentstyle{article}'.$inside; +# &Apache::lonxml::debug($inside); + $currentstring = &Apache::lontexconvert::converted(\$inside); +# &Apache::lonxml::debug($currentstring); + } elsif ($target eq 'tex') { $currentstring = "\$"; } @@ -28,7 +33,6 @@ sub BEGIN { my ($target,$token) = @_; my $currentstring = ''; if ($target eq 'web') { - $currentstring = "\".'\$') "; } elsif ($target eq 'tex') { $currentstring = "\$"; }