[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /interface lonprintout.pm
foxr
foxr@source.lon-capa.org
Tue, 30 Mar 2010 10:40:36 -0000
foxr Tue Mar 30 10:40:36 2010 EDT
Modified files: (Branch: version_2_9_X)
/loncom/interface lonprintout.pm
Log:
BZ 6240
Add quoting so that a4 papersize doesn't output crap like
specialpapersize=210mm,297mm rather than
\special{papersize=210mm,297mm} as was intended.
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.568.2.2 loncom/interface/lonprintout.pm:1.568.2.3
--- loncom/interface/lonprintout.pm:1.568.2.2 Fri Mar 26 20:01:36 2010
+++ loncom/interface/lonprintout.pm Tue Mar 30 10:40:35 2010
@@ -2,7 +2,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.568.2.2 2010/03/26 20:01:36 raeburn Exp $
+# $Id: lonprintout.pm,v 1.568.2.3 2010/03/30 10:40:35 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1309,7 +1309,7 @@
$text =~ s/\\pagestyle{fancy}\\rhead{}\\chead{}\s*\\begin{document}/\\textheight = $textheight\\oddsidemargin = $evenoffset\n\\evensidemargin = $evenoffset $topmargintoinsert\\textwidth= $textwidth\\newlength{\\minipagewidth}\n\\setlength{\\minipagewidth}{\\textwidth\/\$number_of_columns-0\.2cm}\\renewcommand{\\ref}{\\keephidden\}\\pagestyle{fancy}\\rhead{}\\chead{}\\usepackage{booktabs}\\begin{document}\\voffset=-0\.8cm\n\\setcounter{page}{1} \\vskip 5 mm\n /;
}
if ($papersize eq 'a4') {
- $text =~ s/(\\begin{document})/$1\\special{papersize=210mm,297mm}/;
+ $text =~ s/(\\begin{document})/$1\\\\special\{papersize=210mm,297mm\}/;
}
}
if ($tableofcontents eq 'yes') {$text=~s/(\\setcounter\{page\}\{1\})/$1 \\tableofcontents\\newpage /;}