--- loncom/xml/lonplot.pm 2003/05/16 14:50:13 1.83 +++ loncom/xml/lonplot.pm 2003/05/16 15:12:49 1.84 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Dynamic plot # -# $Id: lonplot.pm,v 1.83 2003/05/16 14:50:13 sakharuk Exp $ +# $Id: lonplot.pm,v 1.84 2003/05/16 15:12:49 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -515,7 +515,7 @@ ENDIMAGE } elsif ($target eq 'tex') { &Apache::lonnet::ssi("/cgi-bin/plot.gif?file=$filename.data&output=eps"); - $result = '\graphicspath{{/home/httpd/perl/tmp/}}\includegraphics[width=93 mm]{'.&Apache::lonnet::unescape($filename).'.eps}'; + $result = '\graphicspath{{/home/httpd/perl/tmp/}}\includegraphics[width='.$plot{'texwidth'}.' mm]{'.&Apache::lonnet::unescape($filename).'.eps}'; } } elsif ($target eq 'edit') { $result.=&Apache::edit::tag_end($target,$token);