HomeCurrent UR
|
A long list of predefined PG environment variables useful for writing problems is given at webhost.math.rochester.edu/webworkdocs/docs/pglanguage/reference/environmentvariables However there is an undocumented feature of WeBWorK which I found very useful: you can define your own PG environment variables in the course configuration file webworkCourse.ph The way I use it is by inserting lines like $PG_environment{'termYear'} = 'Winter 2001'; into webworkCourse.ph. Then I use $termYear in paperHeader.pg files for all my problem sets. That way I don't have to hard code this information into the header files, saving me the trouble of reediting all those files at the beginning of each academic term. I just need to edit one line in webworkCourse.ph I would suggest that this feature be explicitly documented and that the WeBWorK problem library header files incorporate this mechanism. Zig Fiedorowicz
|
||
Last update: Wednesday, January 10, 2007 at 10:10:48 PM.
This site maintained using Manila and Frontier software. |
|||