--- loncom/xml/londefdef.pm 2003/06/11 01:22:32 1.138 +++ loncom/xml/londefdef.pm 2003/06/19 15:30:58 1.140 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.138 2003/06/11 01:22:32 www Exp $ +# $Id: londefdef.pm,v 1.140 2003/06/19 15:30:58 sakharuk Exp $ # # # Copyright Michigan State University Board of Trustees @@ -158,6 +158,7 @@ sub start_html { } elsif ($target eq 'tex') { @Apache::londefdef::table = (); $currentstring .= '\documentclass[letterpaper]{article} + \batchmode \newcommand{\keephidden}[1]{} \renewcommand{\deg}{$^{\circ}$} \usepackage{textcomp} @@ -1703,8 +1704,8 @@ sub start_table { my $textwidth; if (not defined @Apache::londefdef::table) { $textwidth=&recalc($ENV{'form.textwidth'}); - $textwidth=~/(\d+)/; - $textwidth=$1; + $textwidth=~/(\d+\.?\d*)/; + $textwidth=0.95*$1; } else { $textwidth=&Apache::lonxml::get_param('TeXwidth',$parstack,$safeeval,undef,0); }