--- loncom/interface/lonprintout.pm 2011/06/16 11:59:16 1.592 +++ loncom/interface/lonprintout.pm 2011/06/19 13:34:46 1.593 @@ -2,7 +2,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.592 2011/06/16 11:59:16 foxr Exp $ +# $Id: lonprintout.pm,v 1.593 2011/06/19 13:34:46 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3354,11 +3354,16 @@ sub print_resources { # that so we're going to generate a stub that says there are no # incomplete resources for the person. # - if ($actually_printed == 0) { + &Apache::lonnet::logthis("Number printed: $actually_printed"); + if ($actually_printed == 0) { + &Apache::lonnet::logthis("Remove? $remove_latex_header"); $current_output = &encapsulate_minipage("\\vskip -10mm \nNo incomplete resources\n \\vskip 100 mm { }\n"); - $current_output = &print_latex_header() . $current_output; - + if ($remove_latex_header eq "NO") { + $current_output = &print_latex_header() . $current_output; + } else { + $current_output = &latex_header_footer_remove($current_output); + } } if ($syllabus_first) {