--- loncom/homework/structuretags.pm 2002/03/06 20:22:12 1.84 +++ loncom/homework/structuretags.pm 2002/03/20 22:13:19 1.85 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.84 2002/03/06 20:22:12 matthew Exp $ +# $Id: structuretags.pm,v 1.85 2002/03/20 22:13:19 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -297,7 +297,7 @@ sub start_problem { $result=$token->[4]; $result.=&Apache::edit::handle_insert(); } elsif ($target eq 'tex') { - $result .= '\begin{document}\noindent\textbf{Problem.}\newline'; + $result .= '\begin{document} '; } else { # page_start returned a starting result, delete it if we don't need it $result = ''; @@ -341,7 +341,7 @@ sub end_problem { &Apache::lonxml::debug("in end_problem with $target, edit"); $result='
'; } elsif ($target eq 'tex') { - $result .= '\end{document}'; + $result .= '\noindent\makebox[9.0cm][b]{\hrulefill}\end{document}'; } return $result; } @@ -617,6 +617,9 @@ sub end_startouttext { $text=&Apache::lonxml::get_all_text("endouttext",$$parser['-1']); $result=''.&Apache::edit::modifiedfield(); } + if ($target eq 'tex') { + $result .= '\noindent '; + } return $result; } sub start_endouttext {