--- loncom/interface/lonprintout.pm 2008/03/28 21:05:29 1.526
+++ loncom/interface/lonprintout.pm 2008/04/04 16:36:54 1.528
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.526 2008/03/28 21:05:29 www Exp $
+# $Id: lonprintout.pm,v 1.528 2008/04/04 16:36:54 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -150,7 +150,7 @@ sub ssi_with_retries {
$ssi_error = 1;
$ssi_last_error_resource = $resource;
$ssi_last_error = $response->code . " " . $response->message;
- $content='\section*{!!! An error occured !!!}';
+ $content='\section*{!!! An error occurred !!!}';
&Apache::lonnet::logthis("Error in SSI resource: $resource Error: $ssi_last_error");
}
@@ -166,7 +166,7 @@ sub get_student_view_with_retries {
$ssi_error = 1;
$ssi_last_error_resource = $curresline.' for user '.$username.':'.$userdomain;
$ssi_last_error = $response->code . " " . $response->message;
- $content='\section*{!!! An error occured !!!}';
+ $content='\section*{!!! An error occurred !!!}';
&Apache::lonnet::logthis("Error in SSI (student view) resource: $curresline Error: $ssi_last_error User: $username:$userdomain");
}
return $content;
@@ -1143,6 +1143,11 @@ sub print_latex_header {
'\usepackage{wrapfig}'.
'\usepackage{picins}\usepackage{calc}'."\n".
'\usepackage[utf8]{inputenc}'."\n".
+ '\usepackage{amsmath}'.
+ '\usepackage{amssymb}'.
+ '\usepackage{amsfonts}'.
+ '\usepackage{amsthm}'.
+ '\usepackage{amscd}'.
'\newenvironment{choicelist}{\begin{list}{}{\setlength{\rightmargin}{0in}'."\n".
'\setlength{\leftmargin}{0.13in}\setlength{\topsep}{0.05in}'."\n".
'\setlength{\itemsep}{0.022in}\setlength{\parsep}{0in}'."\n".
@@ -2180,26 +2185,26 @@ ENDPART
"cgi.$identifier.resources" => $resources_printed});
my $end_page = &Apache::loncommon::end_page();
+ my $continue_text = .&mt('Continue');
# If there's been an unrecoverable SSI error, report it to the user
if ($ssi_error) {
my $helpurl = &Apache::loncommon::top_nav_help('Helpdesk');
- my $end_page = &Apache::loncommon::end_page();
$r->print('
'.
&mt('At least one of the resources you chose to print could not be rendered due to an unrecoverable error when communicating with a server:').
'
'.$ssi_last_error_resource.'
'.$ssi_last_error.
'
'.&mt('You can continue using the link provided below, but make sure to carefully inspect your output file! The errors will be marked in the file.').'
'.
- &mt('You may be able to reprint the individual resources for which this error occured, as the issue may be temporary.').
+ &mt('You may be able to reprint the individual resources for which this error occurred, as the issue may be temporary.').
'
'.&mt('If the error persists, please contact the [_1] for assistance.',$helpurl).'
'. &mt('We apologize for the inconvenience.').'
'. - 'Continue'.$end_page); + ''.$continue_text.''.$end_page); } else { $r->print(<