--- loncom/xml/londefdef.pm 2005/12/26 19:01:25 1.306 +++ loncom/xml/londefdef.pm 2006/01/04 22:30:50 1.308 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.306 2005/12/26 19:01:25 foxr Exp $ +# $Id: londefdef.pm,v 1.308 2006/01/04 22:30:50 albertel Exp $ # # # Copyright Michigan State University Board of Trustees @@ -173,7 +173,7 @@ sub start_html { if ($target eq 'web' || $target eq 'edit' || $target eq 'webgrade' ) { $currentstring = &Apache::lonxml::xmlbegin(); } elsif ($target eq 'tex') { - $currentstring .= '\documentclass[letterpaper]{article}'; + $currentstring .= '\documentclass[letterpaper,twoside]{article}'; if (($env{'form.latex_type'}=~'batchmode') || (!$env{'request.role.adv'})) {$currentstring .='\batchmode';} $currentstring .= '\newcommand{\keephidden}[1]{}'. @@ -1946,9 +1946,9 @@ sub start_table { # in either case it can be a percentage or absolute width. my $TeXwidth = &Apache::lonxml::get_param('TeXwidth',$parstack,$safeeval,undef,0); - if (not defined $TeXwidth) { + if (!defined($TeXwidth)) { $TeXwidth = &Apache::lonxml::get_param('width',$parstack,$safeeval,undef,1); - + if (!defined($TeXwidth)) { $TeXwidth = $textwidth; } } else { $Apache::londefdef::table[-1]{'forcedtablewidth'} = 1; }