[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 14 May 2003 18:02:56 -0000


sakharuk		Wed May 14 14:02:56 2003 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  Small but usefull addition - I now mark the end of problem's body. It is usefull because it allows more easily add answer to the problem (looks far better on the paper). In addition this is a usefull hook for the future use (it is completely hidden for all the users). 
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.173 loncom/homework/structuretags.pm:1.174
--- loncom/homework/structuretags.pm:1.173	Wed May 14 12:49:13 2003
+++ loncom/homework/structuretags.pm	Wed May 14 14:02:56 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.173 2003/05/14 16:49:13 albertel Exp $
+# $Id: structuretags.pm,v 1.174 2003/05/14 18:02:56 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -493,7 +493,7 @@
 	    if ($target eq 'web') {
 		$result.=&Apache::lonxml::xmlend();
 	    } elsif ($target eq 'tex') {
-		$result .= '\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}';
+		$result .= '\keephidden{ENDOFPROBLEM}\vskip 0.5mm\noindent\makebox[\textwidth/$number_of_columns][b]{\hrulefill}';
 		if (not $ENV{'request.symb'} =~ m/\.page_/) {
 		    $result .= '\end{minipage}\end{document} ';
 		} else {