--- loncom/homework/outputtags.pm 2002/01/11 16:32:29 1.14 +++ loncom/homework/outputtags.pm 2002/08/07 17:39:42 1.18 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # tags that create controlled output # -# $Id: outputtags.pm,v 1.14 2002/01/11 16:32:29 matthew Exp $ +# $Id: outputtags.pm,v 1.18 2002/08/07 17:39:42 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -32,7 +32,7 @@ use strict; use Apache::lonnet; use POSIX qw(strftime); -sub BEGIN { +BEGIN { &Apache::lonxml::register('Apache::outputtags',('displayduedate','displaytitle')); } @@ -81,6 +81,9 @@ sub start_displaytitle { $result=&Apache::edit::tag_start($target,$token); $result.=''; $result.=&Apache::edit::end_table(); + } elsif ($target eq 'tex') { + $Apache::lonhomework::name=~s/&/\&/g; + $result='\vskip 0 mm\noindent\textbf{'.$Apache::lonhomework::name.'}\vskip 0 mm'; } return $result; }