[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Mon, 14 Oct 2002 13:57:51 -0000


sakharuk		Mon Oct 14 09:57:51 2002 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
   Fixed a bug with gnuplot pictures (width parameter is added).
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.76 loncom/interface/lonprintout.pm:1.77
--- loncom/interface/lonprintout.pm:1.76	Mon Oct  7 13:58:47 2002
+++ loncom/interface/lonprintout.pm	Mon Oct 14 09:57:51 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.76 2002/10/07 17:58:47 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.77 2002/10/14 13:57:51 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -429,7 +429,8 @@
 		$result .= $texversion;         
 		$flag_latex_header_remove = 'YES';   
 	    }
-	}		
+	}
+	&Apache::lonnet::delenv('form.counter');
 	if ($flag_page_in_sequence eq 'YES') {$result =~ s/\\usepackage{calc}/\\usepackage{calc}\\usepackage{longtable}/;}	
 	$result .= '\end{document}';
     }  elsif ($choice eq 'Standard LaTeX output for the top level sequence') {
@@ -1119,7 +1120,7 @@
 
     my ($number_of_columns,$result) = @_;
 
-    $result =~ s/\\includegraphics{/\\includegraphics\[\\minipagewidth\]{/g;
+    $result =~ s/\\includegraphics{/\\includegraphics\[width=\\minipagewidth\]{/g;
     $result =~ s/\$number_of_columns/$number_of_columns/g;
     $result =~ s/(\\end{document})/\\newline\\noindent\\makebox\[\\textwidth\/$number_of_columns\]\[b\]{\\hrulefill}\\newline\\noindent\\tiny \\makebox\[1.5cm\]\[b\]{\\hfill}LON-CAPA\\copyright Michigan State University Board of Trustees $1/;
     $result =~ s/(\\end{longtable}\s*)(\\newline\\noindent\\makebox\[\\textwidth\/$number_of_columns\]\[b\]{\\hrulefill})/$2$1/g;