--- loncom/xml/londefdef.pm 2003/09/26 18:59:59 1.174 +++ loncom/xml/londefdef.pm 2003/09/30 19:39:00 1.175 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.174 2003/09/26 18:59:59 sakharuk Exp $ +# $Id: londefdef.pm,v 1.175 2003/09/30 19:39:00 sakharuk Exp $ # # # Copyright Michigan State University Board of Trustees @@ -2202,7 +2202,11 @@ sub start_applet { $currentstring='[APPLET: '.$alttag.']'; } } elsif ($target eq 'tex') { - $currentstring = " \\begin{figure} "; + my $code=&Apache::lonxml::get_param('code',$parstack,$safeeval, + undef,1); + if ($code=~/TrueFalse\.class/) { + $currentstring.='\begin{center} $\bigcirc$ True \hskip 10 mm $\bigcirc$ False\end{center}'; + } } return $currentstring; } @@ -2213,7 +2217,6 @@ sub end_applet { if ($target eq 'web') { $currentstring = $token->[2]; } elsif ($target eq 'tex') { - $currentstring = " \\end{figure}"; } return $currentstring; } @@ -2236,7 +2239,6 @@ sub start_embed { $currentstring='[EMBED: '.$alttag.']'; } } elsif ($target eq 'tex') { - $currentstring = " \\begin{figure} "; } return $currentstring; } @@ -2246,8 +2248,7 @@ sub end_embed { my $currentstring = ''; if ($target eq 'web') { $currentstring = $token->[2]; - } elsif ($target eq 'tex') { - $currentstring = " \\end{figure}"; + } elsif ($target eq 'tex') { } return $currentstring; } @@ -2266,7 +2267,6 @@ sub start_param { if ($target eq 'web') { $currentstring = $token->[4]; } elsif ($target eq 'tex') { - $currentstring = " \\begin{figure} "; } return $currentstring; } @@ -2277,7 +2277,6 @@ sub end_param { if ($target eq 'web') { $currentstring = $token->[2]; } elsif ($target eq 'tex') { - $currentstring = " \\end{figure}"; } return $currentstring; }