--- loncom/homework/randomlabel.pm 2005/07/14 04:08:55 1.79 +++ loncom/homework/randomlabel.pm 2005/07/14 04:17:44 1.80 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # random labelling tool # -# $Id: randomlabel.pm,v 1.79 2005/07/14 04:08:55 albertel Exp $ +# $Id: randomlabel.pm,v 1.80 2005/07/14 04:17:44 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -451,8 +451,11 @@ sub end_labelgroup { for(my $i=0;$i <= $#Apache::randomlabel::label_arr; $i++) { my $label = "$Apache::randomlabel::label_arr[ $idx_arr[$i] ]"; my $x = $Apache::randomlabel::xcoord[$i]; - # FIXME the 3.5 here is the 'height' of the letter in TeX - my $y = $Apache::randomlabel::ycoord[$i]-3.5; + my $y = $Apache::randomlabel::ycoord[$i]; + if ( $type eq 'text' ) { + # FIXME the 3.5 here is the 'height' of the letter in TeX + $y=$y-3.5; + } &Apache::lonxml::debug("initially: x= $x y= $y"); my $value = $Apache::randomlabel::value[$i]; #x latex coordinate