Diff for /loncom/homework/randomlabel.pm between versions 1.32 and 1.33

version 1.32, 2002/07/30 16:12:38 version 1.33, 2002/08/02 18:20:48
Line 116  sub start_randomlabel { Line 116  sub start_randomlabel {
     }      }
     $bgimg=~s/\/$//;      $bgimg=~s/\/$//;
     if ($texwidth==90) {      if ($texwidth==90) {
  $result.='\vspace*{2mm}  \noindent \epsfxsize='.$texwidth.' mm \epsffile{'.   $result.='\vspace*{2mm} \parbox{\textwidth}{  \noindent \epsfxsize='.$texwidth.' mm \epsffile{'.
     $bgimg.'}\setlength{\unitlength}{1mm}  \begin{picture}('.$texwidth.','.$texwidth*$h/$w.')';      $bgimg.'}\setlength{\unitlength}{1mm}  \begin{picture}('.$texwidth.','.$texwidth*$h/$w.')';
     } else {      } else {
  $result.='\vspace*{2mm}  \noindent \epsfxsize='.$texwidth.' mm \epsffile{'.   $result.='\vspace*{2mm} \parbox{\textwidth}{  \noindent \epsfxsize='.$texwidth.' mm \epsffile{'.
     $bgimg.'}\setlength{\unitlength}{1mm}  \begin{picture}('.$texwidth.','.$texwidth*$h/$w.')('.(100-$texwidth).','.(100-$texwidth)*$h/$w.')';      $bgimg.'}\setlength{\unitlength}{1mm}  \begin{picture}('.$texwidth.','.$texwidth*$h/$w.')('.(100-$texwidth).','.(100-$texwidth)*$h/$w.')';
     }      }
   } elsif ($target eq 'edit') {    } elsif ($target eq 'edit') {
Line 155  sub end_randomlabel { Line 155  sub end_randomlabel {
     if( $count != 0) { $result.= "<param name=\"ICOUNT\" value=\"$count\">\n"; }      if( $count != 0) { $result.= "<param name=\"ICOUNT\" value=\"$count\">\n"; }
     $result .= "</applet>\n<BR />";      $result .= "</applet>\n<BR />";
   } elsif ($target eq 'tex') {    } elsif ($target eq 'tex') {
       $result='\end{picture}\\\\';        $result='\end{picture}\\\\}';
       if (@$parstack[-1]=~/\$texwidth\s*=\s*?"90/) { #"        if (@$parstack[-1]=~/\$texwidth\s*=\s*?"90/) { #"
   @$parstack[-1]=~/\$height\s*=\s*?"(.+)?"/;    @$parstack[-1]=~/\$height\s*=\s*?"(.+)?"/;
   my $howtoskipback = $1/48;    my $howtoskipback = $1/48;

Removed from v.1.32  
changed lines
  Added in v.1.33


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