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

sakharuk lon-capa-cvs@mail.lon-capa.org
Mon, 30 Sep 2002 15:10:12 -0000


sakharuk		Mon Sep 30 11:10:12 2002 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  Changes to print exams for numericalresponse problems.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.118 loncom/homework/structuretags.pm:1.119
--- loncom/homework/structuretags.pm:1.118	Thu Sep 26 16:45:00 2002
+++ loncom/homework/structuretags.pm	Mon Sep 30 11:10:11 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.118 2002/09/26 20:45:00 albertel Exp $
+# $Id: structuretags.pm,v 1.119 2002/09/30 15:10:11 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -347,7 +347,7 @@
 	    print $temp_file "$duedate\n";	    
 	    if (not $ENV{'request.symb'} =~ m/\.page_/) {
 		if(not $duedate=~m/1969/) {
-		    $result .= '\begin{document} \noindent\textit{Due date: '.$duedate.'} \vskip 1 mm \begin{minipage}{\textwidth}';	
+		    $result .= '\begin{document} \noindent\textit{Due date: '.$duedate.'} \vskip 1 mm\noindent \begin{minipage}{\textwidth}';	
 		} else {
 		    $result .= '\begin{document} \noindent \vskip 1 mm \begin{minipage}{\textwidth}';
 		}
@@ -356,7 +356,7 @@
 	    } 
 	} else {
 	    if (not $ENV{'request.symb'} =~ m/\.page_/) {
-		$result .= '\begin{document} \noindent \vskip 1 mm\begin{minipage}{\textwidth}';	
+		$result .= '\begin{document} \noindent \vskip 1 mm\noindent\begin{minipage}{\textwidth}';	
 	    } else {
 		$result .= '\vskip 1mm \\\\\\\\';
 	    } 
@@ -392,7 +392,7 @@
       my $gradestatus = &Apache::inputtags::gradestatus($Apache::inputtags::part);
       #FIXME this is ugly we should just generate tex in inputtags
       if ($target eq 'tex') { $gradestatus=&html_to_tex($gradestatus); }
-      $result.= $gradestatus;
+      if ($Apache::lonhomework::type ne 'exam') {$result.= $gradestatus;}
     }
     if (
 	(($target eq 'web') && ($ENV{'request.state'} ne 'construct')) ||