WeBWorK Main Forum

mathIMG ?

mathIMG ?

by Zak Zarychta -
Number of replies: 1
I'm trying to convert the orientation files for use with the $WW system that we presently have.

I have stripped out parserOrientation.pl and all the relevant bits and pieces I however get the following error

Undefined subroutine &main::MathIMG called at line 54 of [TMPL]/tmpEdit/setFYO-00053_set_0_intro/orient_5.1.pg.zak.tmp


for the following


$IMGA = MathIMG("prob05-a.gif","1/x+1","1/x+1");
$IMGB = MathIMG("prob05-b.gif","1/(x+1)","\frac{1}{x+1}");
$IMGC = MathIMG("prob05-c.gif","(1/x)+1","\frac{1}{x} + 1");


Is there anyway i can replace the above in problem 5 of the orientation set for use in an old version?

Zak
In reply to Zak Zarychta

Re: mathIMG ?

by Jason Aubrey -
Hi Zak,

Maybe I don't understand the purpose of MathIMG, but I don't see any reason why you can't just replace, for example,

...you might write $IMGA on your paper when you meant $IMGB,
but that is actually incorrect.

with

... you might write \( 1/x +1 \) on your paper when you meant \( \frac{1}{x+1}\), but that is actually incorrect.

Also, out of curiosity, why don't you want to use parserOrientation.pl?

Thanks,
Jason