[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
raeburn
raeburn@source.lon-capa.org
Mon, 24 May 2010 21:56:00 -0000
raeburn Mon May 24 21:56:00 2010 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
- Eliminate duplicate headers when printing sequence containing more than one PDF to avoid LaTeX errors when geenerating dvi file.
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.579 loncom/interface/lonprintout.pm:1.580
--- loncom/interface/lonprintout.pm:1.579 Mon May 24 09:36:26 2010
+++ loncom/interface/lonprintout.pm Mon May 24 21:56:00 2010
@@ -2,7 +2,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.579 2010/05/24 09:36:26 foxr Exp $
+# $Id: lonprintout.pm,v 1.580 2010/05/24 21:56:00 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -2457,7 +2457,11 @@
if ($i > 0) {
$result .= '\cleardoublepage';
}
- $result .= &include_pdf($urlp);
+ my $texfrompdf = &include_pdf($urlp);
+ if ($flag_latex_header_remove ne 'NO') {
+ $texfrompdf = &latex_header_footer_remove($texfrompdf);
+ }
+ $result .= $texfrompdf;
if ($i != $#master_seq) {
if ($numberofcolumns eq '1') {
$result .= '\newpage';