## Forum archive 2000-2006

### Kevin Leonard - Errors creating hard copies

by Arnold Pizer -
Number of replies: 0
 Errors creating hard copies topic started 7/7/2004; 11:03:36 AMlast post 7/8/2004; 3:42:14 PM
 Kevin Leonard - Errors creating hard copies  7/7/2004; 11:03:36 AM (reads: 1058, responses: 2) I have just created a democourse and have built a problem set. When I try to get a hardcopy in PDF format, I get the following error message: PG error while compiling problem numbers 2, 4, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 25, 26, 27 in problem set Algebra16FunctionGraphs for professor. Then it displays the Tex source file. Below is part of the file for problem 2. Problem2 137 ERROR caught by PGtranslator while processing problem file:setAlgebra16FunctionGraphs/c4s2p5_7/c4s2p5_7.pg 138 * 139 Unable to create eps file: 140 |/usr/local/webwork/system/courses/democourse/html/tmp/eps/professor-861975-setAlgebra16FunctionGraphs-prob2-c4s2p5a.eps| from file 141 |/usr/local/webwork/system/courses/democourse/templates/setAlgebra16FunctionGraphs/c4s2p5_7/c4s2p5a.gif| 142 in problem 2 using the system dependent script 143 |/usr/local/webwork/system/scripts/gif2eps| 144 at /usr/local/webwork/system/courseScripts/dangerousMacros.pl line 1027. 145 146 * <| Post or View Comments |>

 Thomas Hagedorn - Re: Errors creating hard copies  7/7/2004; 3:37:50 PM (reads: 1330, responses: 0) I've had similar messages in the past when there was an error in one of the problems. For the problem set you had, are there any problems not listed in the error list that were assigned. For example, did you assign problem 1? If so, see if you can get PDF output with a problem set consisting of just problem #1. In which case, the error is being created by some routine or code specific to problems 2, 4, 6, 7, ... Editing the problem will let you determine where the error is. We were able to do this with a linear algebra problem several months ago. But I don't remember any more details. Once we found the problem part that caused the error, I think we just deleted that part. -Tom <| Post or View Comments |>

 Arnold K. Pizer - Re: Errors creating hard copies  7/8/2004; 3:42:14 PM (reads: 1364, responses: 0) Hi Kevin, I'm sure this is not caused by an error in the problems but rather by a problem in converting the gif images. I'm assuming this is a new installation of WeBWorK. First check that the path to giftopnm, etc. in /usr/local/webwork/system/scripts/gif2eps is correct. This is system dependent and often has to be changed. Similarly make sure the paths, e.g. $externalLatexPath = "/usr/bin/latex";$externalDvipsPath = "/usr/bin/dvips"; $externalGsPath = "/usr/bin/gs"; in Global.pm are correct. If this doesn't fix the problem, set$imageDebugMode = 1; in Global.pm and then look at the output, error logs, etc which are saved. Arnie <| Post or View Comments |>