From: jj v. a. <we...@ma...> - 2005-08-26 04:18:01
|
Log Message: ----------- When making on-the-fly image names, replace periods in the student login name to avoid problems with pdflatex. Changed the replacement in set names to use the same new trick (the old way had an infintesimal chance of collision). The new scheme is first double all instances of "Q". Then replace periods with "-Q-". Modified Files: -------------- pg/macros: PGgraphmacros.pl Revision Data ------------- Index: PGgraphmacros.pl =================================================================== RCS file: /webwork/cvs/system/pg/macros/PGgraphmacros.pl,v retrieving revision 1.5 retrieving revision 1.6 diff -Lmacros/PGgraphmacros.pl -Lmacros/PGgraphmacros.pl -u -r1.5 -r1.6 --- macros/PGgraphmacros.pl +++ macros/PGgraphmacros.pl @@ -107,8 +107,12 @@ # select a name for this graph based on the user, the psvn and the problem my $setName = $main::setNumber; # replace dots in set name to keep latex happy - $setName =~ s/\./d0T/g; - my $imageName = "$main::studentLogin-$main::problemSeed-set${setName}prob${main::probNum}"; + $setName =~ s/Q/QQ/g; + $setName =~ s/\./-Q-/g; + my $studentLogin = $main::studentLogin; + $studentLogin =~ s/Q/QQ/g; + $studentLogin =~ s/\./-Q-/g; + my $imageName = "$studentLogin-$main::problemSeed-set${setName}prob${main::probNum}"; # $imageNum counts the number of graphs with this name which have been created since PGgraphmacros.pl was initiated. my $imageNum = ++$main::images_created{$imageName}; # this provides a unique name for the graph -- it does not include an extension. |