--- loncom/interface/lonprintout.pm 2002/10/07 17:58:47 1.76 +++ loncom/interface/lonprintout.pm 2002/10/14 13:57:51 1.77 @@ -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 @@ ENDPART $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 @@ sub latex_corrections { 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;