--- loncom/homework/structuretags.pm 2001/12/04 15:17:56 1.74
+++ loncom/homework/structuretags.pm 2002/01/23 14:36:19 1.77
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.74 2001/12/04 15:17:56 albertel Exp $
+# $Id: structuretags.pm,v 1.77 2002/01/23 14:36:19 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -273,6 +273,8 @@ sub start_problem {
} elsif ($target eq 'modified') {
$result=$token->[4];
$result.=&Apache::edit::handle_insert();
+ } elsif ($target eq 'tex') {
+ $result .= '\begin{document}\noindent\textbf{Problem.}\newline';
} else {
# page_start returned a starting result, delete it if we don't need it
$result = '';
@@ -316,6 +318,8 @@ sub end_problem {
} elsif ($target eq 'edit') {
&Apache::lonxml::debug("in end_problem with $target, edit");
$result='
';
+ } elsif ($target eq 'tex') {
+ $result .= '\end{document}';
}
return $result;
}