--- loncom/homework/outputtags.pm 2002/07/22 18:43:37 1.16 +++ loncom/homework/outputtags.pm 2002/08/19 19:06:02 1.19 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # tags that create controlled output # -# $Id: outputtags.pm,v 1.16 2002/07/22 18:43:37 sakharuk Exp $ +# $Id: outputtags.pm,v 1.19 2002/08/19 19:06:02 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -82,7 +82,9 @@ sub start_displaytitle { $result.=''; $result.=&Apache::edit::end_table(); } elsif ($target eq 'tex') { - $result='\textbf{'.$Apache::lonhomework::name.'}'; + $Apache::lonhomework::name=~s/%/\%/g; + $Apache::lonhomework::name=~s/&/\&/g; + $result='\vskip 0 mm\noindent\textbf{'.$Apache::lonhomework::name.'}\vskip 0 mm'; } return $result; }