--- loncom/interface/lonprintout.pm 2005/12/15 21:10:30 1.408 +++ loncom/interface/lonprintout.pm 2005/12/23 08:02:24 1.411 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.408 2005/12/15 21:10:30 albertel Exp $ +# $Id: lonprintout.pm,v 1.411 2005/12/23 08:02:24 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -816,11 +816,12 @@ sub IndexCreation { sub print_latex_header { my $mode=shift; - my $output='\documentclass[letterpaper]{article}'; + my $output='\documentclass[letterpaper,twoside]{article}'; if (($mode eq 'batchmode') || (!$perm{'pav'})) { $output.='\batchmode'; } $output.='\newcommand{\keephidden}[1]{}\renewcommand{\deg}{$^{\circ}$}'."\n". + '\usepackage{multirow}'."\n". '\usepackage{longtable}\usepackage{textcomp}\usepackage{makeidx}'."\n". '\usepackage[dvips]{graphicx}\usepackage{epsfig}'."\n". '\usepackage{wrapfig}'. @@ -2175,11 +2176,9 @@ CHOOSE_STUDENTS } - my %all_codes = &Apache::lonnet::get('CODEs', - \@names, $cdom,$cnum); my %code_values; my %codes_to_print; - foreach my $key (keys(%all_codes)) { + foreach my $key (@names) { %code_values = &Apache::grades::get_codes($key, $cdom, $cnum); foreach my $key (keys(%code_values)) { $codes_to_print{$key} = 1; @@ -2238,12 +2237,6 @@ CHOOSE_STUDENTS - Choose single code from list - - - $code_selection - - Names to store the CODEs under for later: @@ -2333,12 +2326,6 @@ CHOOSE_STUDENTS1 - Choose single code from list - - - $code_selection - - Names to store the CODEs under for later: