--- loncom/homework/randomlabel.pm 2005/04/12 11:03:08 1.70 +++ loncom/homework/randomlabel.pm 2005/04/12 21:41:28 1.71 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # random labelling tool # -# $Id: randomlabel.pm,v 1.70 2005/04/12 11:03:08 foxr Exp $ +# $Id: randomlabel.pm,v 1.71 2005/04/12 21:41:28 foxr Exp $ # # Copyright Michigan State University Board of Trustees # @@ -307,7 +307,10 @@ sub end_labelgroup { $result.= $TeXsize.' \bf '.$label."}\n"; &add_vars($gname,$i,$label,$idx_arr[$i],$value,'',$safeeval); } elsif ( $type eq 'image') { - $result .= '\includegraphics{'.$label."}}\n"; + my ($path,$file) = &Apache::londefdef::get_eps_image($label); + my $image_name = $path.$file; + $result .= '\includegraphics{' + .$image_name."}}\n"; &add_vars($gname,$i, $Apache::randomlabel::description[$idx_arr[$i]], $idx_arr[$i],$value,$label,$safeeval);