--- loncom/homework/outputtags.pm 2004/10/26 15:03:08 1.35 +++ loncom/homework/outputtags.pm 2004/11/12 21:15:05 1.36 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # tags that create controlled output # -# $Id: outputtags.pm,v 1.35 2004/10/26 15:03:08 albertel Exp $ +# $Id: outputtags.pm,v 1.36 2004/11/12 21:15:05 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -194,6 +194,8 @@ sub start_displaystudentphoto { if ($width) { $args.=" width=\"$width\" "; } my $height=&Apache::lonxml::get_param('heigth',$parstack,$safeeval); if ($height) { $args.=" height=\"$height\" "; } + my $align=&Apache::lonxml::get_param('align',$parstack,$safeeval); + if ($align) { $args.=" align=\"$align\" "; } $result.=" \"$user\@$domain\""; } if ($target eq 'tex' && $ENV{'request.role'} =~ /^cc/) { @@ -211,6 +213,8 @@ sub start_displaystudentphoto { my $width_param=&Apache::londefdef::image_size($Apache::lonnet::perlvar{'lonPrtDir'}."/$file",'0.3',$parstack,$safeeval); $result.=' \graphicspath{{'.$Apache::lonnet::perlvar{'lonPrtDir'}. '}}\includegraphics[width='.$width_param.' mm]{'.$file.'} '; + } else { + $result="$user\@$domain"; } } return $result;