Forum archive 2000-2006

Gavin LaRose - hints and solutions in webwork 2

Gavin LaRose - hints and solutions in webwork 2

by Arnold Pizer -
Number of replies: 0
inactiveTopichints and solutions in webwork 2 topic started 10/28/2004; 9:49:35 AM
last post 10/29/2004; 10:03:57 AM
userGavin LaRose - hints and solutions in webwork 2  blueArrow
10/28/2004; 9:49:35 AM (reads: 1187, responses: 4)
Do hints and solutions work in webwork 2? I've been playing with a test case, and while I can get a "Show Hints" checkbox to appear I can't get any hints to appear.

Similar comments apply to getting solutions to appear, but I haven't spent as much time on that.

Caveat: this playing is currently in branch rel-2-1-a, not the main one. So if something got fixed in the main branch I may not have it in the version I'm working with.

Thanks,
Gavin

<| Post or View Comments |>


userMichael Gage - Re: hints and solutions in webwork 2  blueArrow
10/28/2004; 7:26:17 PM (reads: 1481, responses: 0)
Using the version of webwork currently being used at Rochester I I can't reproduce this behavior.

Hints do appear using the following construction in a problem:

 

HINT(EV2(<<END_TEXT));



HINT: This is a hint.



END_TEXT

produces

 

HINT: This is a hint. 

once the "show hint" button is pressed.

<| Post or View Comments |>


userGavin LaRose - Re: hints and solutions in webwork 2  blueArrow
10/29/2004; 8:33:17 AM (reads: 1437, responses: 0)
Hmm. Is there a difference between hint() and HINT()? I think I was trying the former. I'll go back and look again.

Gavin

<| Post or View Comments |>


userMichael Gage - Re: hints and solutions in webwork 2  blueArrow
10/29/2004; 8:58:03 AM (reads: 1351, responses: 0)
There is a difference. HINT is self printing, hint() returns text which can be manipulated.

 



sub HINT {
TEXT("$BR" . hint(@_) . "$BR") if hint(@_);
}



a similar convention is used with solution() and SOLUTION().

These macros are in PGbasicmacros.pl.

<| Post or View Comments |>


userGavin LaRose - Re: hints and solutions in webwork 2  blueArrow
10/29/2004; 10:03:57 AM (reads: 1375, responses: 0)
Ah. Then what we really have here is another case of a poor reading of the documentation. Sorry about that.

Thanks!
Gavin

<| Post or View Comments |>