WeBWorK Problems

Can't get images to display correctly on pdf

Can't get images to display correctly on pdf

by Bentley Garrett -
Number of replies: 0
Hi:

I am using the following example code in problem files to display an image:

$PAR
\{image("PracProb17a.png",width=>150,height=>100,tex_size=>300) \}
$PAR

In a HW set, the image is left-justified, and looks fine.

However, when I generate a pdf of a HW set with this problem file, the image is not next to the left margin, but indented to the point where it spills over into the second column (if the problem is in the first column of the pdf)  - or ever worse, if the problem is in the second column of the pdf, the image is indented so far that part of the image is cut off on the right side of the page. 

Also, on the pdf, part of the path name of the image is shown just under the image.

Does anyone know what might be causing this, and how it might be fixed?

Thanks!

-Bentley