--- loncom/xml/londefdef.pm 2003/08/20 15:22:03 1.162 +++ loncom/xml/londefdef.pm 2003/09/25 16:09:14 1.173 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.162 2003/08/20 15:22:03 sakharuk Exp $ +# $Id: londefdef.pm,v 1.173 2003/09/25 16:09:14 sakharuk Exp $ # # # Copyright Michigan State University Board of Trustees @@ -323,7 +323,7 @@ sub start_title { if ($target eq 'web') { $currentstring = $token->[4]; } elsif ($target eq 'tex') { - $currentstring .= '\keephidden{' + $currentstring .= '\keephidden{Title of the document: ' } if ($target eq 'meta') { $currentstring='
sub start_pre { my ($target,$token,$tagstack,$parstack,$parser,$safeeval) = @_; @@ -3105,7 +3133,7 @@ sub end_tbody { return $currentstring; } -#-- tag +#-- tag (end tag optional) sub start_tfoot { my ($target,$token) = @_; my $currentstring = ''; @@ -3124,7 +3152,7 @@ sub end_tfoot { return $currentstring; } -#-- tag +#-- tag (end tag optional) sub start_thead { my ($target,$token) = @_; my $currentstring = ''; @@ -3149,7 +3177,9 @@ sub start_var { my $currentstring = ''; if ($target eq 'web') { $currentstring = $token->[4]; - } + } elsif ($target eq 'tex') { + $currentstring = '\textit{'; + } return $currentstring; } @@ -3157,12 +3187,14 @@ sub end_var { my ($target,$token) = @_; my $currentstring = ''; if ($target eq 'web') { - $currentstring = $token->[2]; + $currentstring = $token->[2]; + } elsif ($target eq 'tex') { + $currentstring = '}'; } return $currentstring; } -#--tag +#-- tag (end tag forbidden) sub start_wbr { my ($target,$token) = @_; my $currentstring = '';