[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm
wenzelju
wenzelju@source.lon-capa.org
Wed, 31 Mar 2010 14:37:36 -0000
wenzelju Wed Mar 31 14:37:36 2010 EDT
Modified files:
/loncom/interface lonprintout.pm
Log:
- Corrected dopple backslashes before "special" (correction of correction in 1.573, also see Bug #6240). That causes an LaTEX-error when printing "Selected Problems from folder ... for selected people" in paper type a4.
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.573 loncom/interface/lonprintout.pm:1.574
--- loncom/interface/lonprintout.pm:1.573 Tue Mar 30 10:48:42 2010
+++ loncom/interface/lonprintout.pm Wed Mar 31 14:37:36 2010
@@ -2,7 +2,7 @@
# The LearningOnline Network
# Printout
#
-# $Id: lonprintout.pm,v 1.573 2010/03/30 10:48:42 foxr Exp $
+# $Id: lonprintout.pm,v 1.574 2010/03/31 14:37:36 wenzelju 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 /;}