--- loncom/xml/londefdef.pm 2000/07/18 21:27:10 1.3 +++ loncom/xml/londefdef.pm 2000/10/26 14:01:40 1.6 @@ -13,12 +13,21 @@ sub BEGIN { } #===================================================================== TAG SUBROUTINES -#----------------------------------------------------------------------------- tag +#-- tag sub start_m { - my ($target,$token) = @_; + my ($target,$token,$parstack,$parser) = @_; my $currentstring = ''; + if ($target eq 'meta') { + my $inside = &Apache::lonxml::get_all_text("/m",$$parser[$#$parser]); + $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,9 +37,9 @@ sub BEGIN { my ($target,$token) = @_; my $currentstring = ''; if ($target eq 'web') { - $currentstring = "\".'\$') "; } elsif ($target eq 'tex') { $currentstring = "\$"; + } elsif ($target eq 'meta') { } return $currentstring; } @@ -824,6 +833,15 @@ sub BEGIN { } return $currentstring; } + sub end_hr { + my ($target,$token) = @_; + my $currentstring = ''; + if ($target eq 'web') { + $currentstring .= $token->[2]; + } elsif ($target eq 'tex') { + } + return $currentstring; + } #----------------------------------------------------------------------------- tag sub start_a { my ($target,$token) = @_;