--- loncom/xml/londefdef.pm 2003/07/08 18:12:28 1.151 +++ loncom/xml/londefdef.pm 2003/07/14 14:29:26 1.153 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.151 2003/07/08 18:12:28 sakharuk Exp $ +# $Id: londefdef.pm,v 1.153 2003/07/14 14:29:26 sakharuk Exp $ # # # Copyright Michigan State University Board of Trustees @@ -157,9 +157,9 @@ sub start_html { &Apache::lonxml::fontsettings(); } elsif ($target eq 'tex') { @Apache::londefdef::table = (); - $currentstring .= '\documentclass[letterpaper]{article}'. - #'\batchmode'. - '\newcommand{\keephidden}[1]{} + $currentstring .= '\documentclass[letterpaper]{article}'; + if ($ENV{'form.latex_type'}=~'batchmode') {$currentstring .='\batchmode';} + $currentstring .= '\newcommand{\keephidden}[1]{} \renewcommand{\deg}{$^{\circ}$} \usepackage{longtable} \usepackage{textcomp} @@ -1625,6 +1625,8 @@ sub start_dd { } elsif ($target eq 'tex') { if ($$tagstack[-2] eq 'dl') { $currentstring = ' \item [] '; + } elsif ($$tagstack[-2] eq 'dt') { + $currentstring = ']'; } } return $currentstring;