[LON-CAPA-cvs] cvs: rat / lonpage.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Thu, 27 Jun 2002 18:48:30 -0000


sakharuk		Thu Jun 27 14:48:30 2002 EDT

  Modified files:              
    /rat	lonpage.pm 
  Log:
  See comments for structuretags.pm
  
  
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.41 rat/lonpage.pm:1.42
--- rat/lonpage.pm:1.41	Wed Jun 26 16:28:30 2002
+++ rat/lonpage.pm	Thu Jun 27 14:48:30 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Page Handler
 #
-# $Id: lonpage.pm,v 1.41 2002/06/26 20:28:30 www Exp $
+# $Id: lonpage.pm,v 1.42 2002/06/27 18:48:30 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -374,11 +374,12 @@
                                  \usepackage[dvips]{graphicx}
                                  \usepackage{epsfig}
                                  \usepackage{calc}
+                                 \usepackage{longtable}
                                  \begin{document}');
 		      }
 # ----------------------------------------------------------------- Start table
 		      if ($target eq 'tex') {
-			  $r->print('\begin{tabular}INSERT');
+			  $r->print('\begin{longtable}INSERTTHEHEADOFLONGTABLE\endfirsthead\endhead ');
 		      } else {
 			  $r->print('<table cols="'.$lcm.'" border="0">');
 		      }
@@ -478,14 +479,14 @@
 				  $r->print('</tr>');
 			      } else {
 				  $number_of_columns = 1;
-				  $r->print('REMOVE\\\\');
+				  $r->print('REMOVETHEHEADOFLONGTABLE\\\\');
 			      }
 		        }
                       }
 		      unless ($target eq 'tex') {
 			  $r->print("\n</table>");
 		      } else {
-			  $r->print('\end{tabular}');
+			  $r->print('\end{longtable}');
 		      }
 # ---------------------------------------------------------------- Submit, etc.
                       if ($nforms) {