--- loncom/xml/londefdef.pm 2006/09/25 10:41:15 1.339 +++ loncom/xml/londefdef.pm 2006/10/16 11:05:20 1.340 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.339 2006/09/25 10:41:15 foxr Exp $ +# $Id: londefdef.pm,v 1.340 2006/10/16 11:05:20 foxr Exp $ # # # Copyright Michigan State University Board of Trustees @@ -1991,7 +1991,13 @@ sub start_table { $Apache::londefdef::table[-1]{'minlen'}=[]; $Apache::londefdef::table[-1]{'content'}=[]; $Apache::londefdef::table[-1]{'align'}=[]; - $currentstring.='\keephidden{NEW TABLE ENTRY}'; + if (&is_inside_of($tagstack, 'sup')) { + $currentstring .= '}} \\\\ \ensuremath{^{ '; + } + if (&is_inside_of($tagstack, 'sub')) { + $currentstring .= '}} \\\\ \ensuremath{_{ '; + } + $currentstring.=' \keephidden{NEW TABLE ENTRY}'; }