--- loncom/homework/structuretags.pm 2000/10/11 21:03:27 1.9 +++ loncom/homework/structuretags.pm 2000/11/28 20:11:25 1.15 @@ -6,21 +6,47 @@ use strict; use Apache::lonnet; sub BEGIN { - &Apache::lonxml::register('Apache::structuretags',('block','while','randomlist','problem')); + &Apache::lonxml::register('Apache::structuretags',('block','while','randomlist','problem','web','tex','part')); +} + +sub start_web { + my ($target,$token,$parstack,$parser,$safeeval)=@_; + my $bodytext=&Apache::lonxml::get_all_text("/web",$$parser[$#$parser]); + return $bodytext; +} + +sub end_web { +} + +sub start_tex { + my ($target,$token,$parstack,$parser,$safeeval)=@_; + my $bodytext=&Apache::lonxml::get_all_text("/tex",$$parser[$#$parser]); + return ''; +} + +sub end_tex { } sub start_problem { my ($target,$token,$parstack,$parser,$safeeval)=@_; + unless ($target eq 'meta') { my $args =''; if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } my $name = &Apache::run::run("{$args;".'return $name}',$safeeval); - return "