[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
sakharuk
lon-capa-cvs@mail.lon-capa.org
Mon, 14 Jun 2004 20:48:26 -0000
sakharuk Mon Jun 14 16:48:26 2004 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
All packages have to be declared in all possible cases for all resources to avoid unpredictable behavior of LaTeX.
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.307 loncom/interface/lonprintout.pm:1.308
--- loncom/interface/lonprintout.pm:1.307 Tue Jun 8 10:55:22 2004
+++ loncom/interface/lonprintout.pm Mon Jun 14 16:48:26 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.307 2004/06/08 14:55:22 sakharuk Exp $
+# $Id: lonprintout.pm,v 1.308 2004/06/14 20:48:26 sakharuk Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -676,7 +676,7 @@
sub unsupported {
my ($currentURL,$mode)=@_;
if ($mode ne '') {$mode='\\'.$mode}
- my $result.='\documentclass[letterpaper]{article}'.$mode.'\usepackage{calc}\begin{document}Printout of this type of document is currently not supported: ';
+ my $result.= &print_latex_header($mode);
if ($currentURL=~/\/ext\//) {
$result.=' \strut \\\\ THIS IS EXTERNAL RESOURCE WITH URL \strut \\\\ '.$currentURL.' ';
} else {