--- loncom/homework/structuretags.pm 2000/10/11 21:03:27 1.9 +++ loncom/homework/structuretags.pm 2000/11/21 18:40:59 1.11 @@ -6,7 +6,25 @@ 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 { @@ -16,11 +34,12 @@ sub start_problem { $args=$$parstack[$#$parstack]; } my $name = &Apache::run::run("{$args;".'return $name}',$safeeval); - return "