openwebwork/pg-dev — pull request #20 by dpvc (2012-11-02 22:32:24+00:00)
Title: Prevent loading PGML from setting the context to Typeset context

The PGML.pl file loads contextTypeset.pl, and that causes the Context to be set to Typeset. This changes the current Context, and makes Context("Numieric") not be the default when PGML is used (and worse, the Typeset context is a bad one to be using in general, since it defines a LOT of things that is not appropriate for student answers).

This patch saves the old Content before loading contextTypeset.pl and puts it back afterword.

(Many macros/context* files set the Context, and that turns out to have been a bad idea. This should be changed, but it could affect existing problems, so might want to be done in connection with an update of the library to accommodate that.)