--- loncom/xml/scripttag.pm 2001/02/22 00:49:03 1.34 +++ loncom/xml/scripttag.pm 2001/03/27 16:56:56 1.35 @@ -131,7 +131,9 @@ sub start_window { my $result = ''; if ($target eq 'web') { &Apache::lonxml::startredirection; - } + } elsif ($target eq 'tex') { + $result = '\footnote{'; + } return $result; } @@ -141,9 +143,11 @@ sub end_window { if ($target eq 'web') { my $output=&Apache::lonxml::endredirection; $output =~ s/\"/\"\;/g; - $result = "newwindow $output \');newWindow.document.close();void(0);\">*"; + $result = "newwindow $output \');newWindow.document.close();void(0);\">*"; + } elsif ($target eq 'tex') { + $result = '}'; } else { - $result = ''; + $result = ''; } return $result; }