version 1.152, 2012/04/11 11:40:14
|
version 1.153, 2013/01/31 15:09:23
|
Line 553 foreach $texfile (@texfile) {
|
Line 553 foreach $texfile (@texfile) {
|
my @garb = ($texlog,$texaux,$texdvi,$texps); |
my @garb = ($texlog,$texaux,$texdvi,$texps); |
# unlink @garb; |
# unlink @garb; |
unlink($duefile); |
unlink($duefile); |
print "<a href=\"/prtspool/$pdf_file\">$link_text - click here to download pdf</a>"; |
print |
print "\n"; |
'<p>' |
|
.&mt('[_1] - [_2]Your PDF file[_3] is ready for download.', |
|
$link_text,'<a href="/prtspool/'.$pdf_file.'">','</a>') |
|
.'</p>'."\n"; |
} |
} |
unlink($missfonts_file); |
unlink($missfonts_file); |
|
|
} |
} |
} else { |
} else { |
print "LaTeX file $texfile was not created successfully"; |
print |
|
'<p class="LC_error">' |
|
.&mt('The LaTeX file [_1] was not created successfully.', |
|
'<span class="LC_filename">'.$texfile.'</span>') |
|
.'</p>'; |
} |
} |
} |
} |
print "<br />"; |
print "<br />"; |
Line 572 if ($number_of_files>1) {
|
Line 579 if ($number_of_files>1) {
|
$file=~s/\.tex/.\pdf/; |
$file=~s/\.tex/.\pdf/; |
$statement.=' '.$file; |
$statement.=' '.$file; |
} |
} |
print("<pre>Zip Output:\n"); |
print('<p>'.&mt('Zip Output:')."\n<pre>\n"); |
system($statement); |
system($statement); |
print("</pre>"); |
print("</pre></p>\n"); |
$zipfile=~s{^\Q$perlvar{'lonPrtDir'}\E}{/prtspool}; |
$zipfile=~s{^\Q$perlvar{'lonPrtDir'}\E}{/prtspool}; |
print "<br /> A <a href=\"$zipfile\">ZIP file</a> of all the PDFs."; |
print |
|
'<p>' |
|
.&mt('A [_1]ZIP file[_2] of all the PDF files is ready for download.', |
|
'<a href="'.$zipfile.'">','</a>') |
|
.'</p>'; |
} |
} |
if ($advanced_role) { &Apache::lonhtmlcommon::Close_PrgWin('',\%prog_state); } |
if ($advanced_role) { &Apache::lonhtmlcommon::Close_PrgWin('',\%prog_state); } |
print(&Apache::loncommon::end_page()); |
print(&Apache::loncommon::end_page()); |