--- loncom/homework/structuretags.pm 2000/10/11 21:03:27 1.9 +++ loncom/homework/structuretags.pm 2000/10/12 20:36:05 1.10 @@ -6,7 +6,31 @@ 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','outtext','web','tex')); +} + +sub start_outtext { +} + +sub end_outtext { +} + +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 {