Skip to content

Commit

Permalink
Fix problem with Context not being called as a function, and make sur…
Browse files Browse the repository at this point in the history
…e MathObjects are loaded. Fixs bugzilla 3060, and Geoff's issue from pull #101.
  • Loading branch information
dpvc committed Mar 6, 2014
1 parent 3deb82c commit e89fa07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion macros/PGML.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,8 @@ sub Format2 {
package main;

sub _PGML_init {
my $context = Context; # prevent Typeset context from becoming active
loadMacros("MathObjects.pl");
my $context = Context(); # prevent Typeset context from becoming active
loadMacros("contextTypeset.pl");
Context($context);
$problemPreamble->{TeX} .= $PGML::preamble unless $problemPreamble->{TeX} =~ m/definitions for PGML/;
Expand Down

0 comments on commit e89fa07

Please sign in to comment.