--- loncom/interface/lonprintout.pm 2006/06/19 21:40:29 1.443 +++ loncom/interface/lonprintout.pm 2006/06/26 21:53:36 1.445 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.443 2006/06/19 21:40:29 foxr Exp $ +# $Id: lonprintout.pm,v 1.445 2006/06/26 21:53:36 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -702,7 +702,8 @@ sub get_name { if (!defined($udom)) { $udom=$env{'user.domain'}; } my $plainname=&Apache::loncommon::plainname($uname,$udom); if ($plainname=~/^\s*$/) { $plainname=$uname.'@'.$udom; } - $plainname=&Apache::lonxml::latex_special_symbols($plainname,'header'); + # $plainname=&Apache::lonxml::latex_special_symbols($plainname,'header'); + $plainname = &escape_LaTeX($plainname); return $plainname; } @@ -1802,6 +1803,12 @@ sub print_resources { $namepostfix="\\\\Name: "; $fullname = "CODE - ".$moreenv->{'CODE'}; } + # Fullname may have special latex characters that need \ prefixing: + # + &Apache::lonnet::logthis("Prior to latex escape: $fullname"); +# $fullname = &escape_LaTeX($fullname); + &Apache::lonnet::logthis("After escape $fullname"); + my $i = 0; #goes through all resources, checks if they are available for #current student, and produces output