Diff for /loncom/homework/randomlabel.pm between versions 1.83 and 1.84

version 1.83, 2006/08/29 10:42:59 version 1.84, 2006/11/06 23:44:42
Line 302  sub make_eps_image { Line 302  sub make_eps_image {
     #  for latex included filenames.  Therefore:      #  for latex included filenames.  Therefore:
     #      #
     my $safe_path = $path;      my $safe_path = $path;
     $safe_path =~ s/ /\_/g;  
     my $safe_file = $file;      my $safe_file = $file;
     $safe_file =~ s/ /\_/g;  
   
     my $result ="\n".'\vspace*{2mm}\noindent'."\n".      my $result ="\n".'\vspace*{2mm}\noindent'."\n".
  '\parbox{'.$dirtywidth.   '\parbox{'.$dirtywidth.
Line 496  sub end_labelgroup { Line 494  sub end_labelgroup {
  #  Note that spaces in e.. \includegraphics cause problems for Latex   #  Note that spaces in e.. \includegraphics cause problems for Latex
  # so they get replaced by _'s by lonprintout/printout and us:   # so they get replaced by _'s by lonprintout/printout and us:
  #   #
  $image_name =~ s/ /\_/g;  
  my $label_width = &get_label_width($label);   my $label_width = &get_label_width($label);
   
  $result .=  '\includegraphics[width='.$label_width.'mm]{'   $result .=  '\includegraphics[width='.$label_width.'mm]{'

Removed from v.1.83  
changed lines
  Added in v.1.84


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>