[system] / trunk / pg / macros / PG.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PG.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2166 Revision 2199
171 # end unpacking of environment variables. 171 # end unpacking of environment variables.
172# $main::QUIZ_PREFIX = '' unless defined($main::QUIZ_PREFIX) 172# $main::QUIZ_PREFIX = '' unless defined($main::QUIZ_PREFIX)
173 173
174 $STRINGforOUTPUT = '<SCRIPT SRC="'.$main::envir{jsMathURL}.'"></SCRIPT>' . "\n" . $STRINGforOUTPUT 174 $STRINGforOUTPUT = '<SCRIPT SRC="'.$main::envir{jsMathURL}.'"></SCRIPT>' . "\n" . $STRINGforOUTPUT
175 if ($main::envir{displayMode} eq 'HTML_jsMath'); 175 if ($main::envir{displayMode} eq 'HTML_jsMath');
176
177 $STRINGforOUTPUT = '<SCRIPT SRC="'.$main::envir{asciimathURL}.'"></SCRIPT>' . "\n" .
178 '<SCRIPT>mathcolor = "black"</SCRIPT>' . $STRINGforOUTPUT
179 if ($main::envir{displayMode} eq 'HTML_asciimath');
176 180
177} 181}
178 182
179sub inc_ans_rule_count { 183sub inc_ans_rule_count {
180 eval(q!++$main::ans_rule_count!); # evalute at runtime to get correct main:: 184 eval(q!++$main::ans_rule_count!); # evalute at runtime to get correct main::
425 # return results 429 # return results
426 }; 430 };
427 431
428 $STRINGforOUTPUT .= '<SCRIPT> jsMath.ProcessBeforeShowing() </SCRIPT>' 432 $STRINGforOUTPUT .= '<SCRIPT> jsMath.ProcessBeforeShowing() </SCRIPT>'
429 if ($main::envir{displayMode} eq 'HTML_jsMath'); 433 if ($main::envir{displayMode} eq 'HTML_jsMath');
434
435 $STRINGforOUTPUT .= '<SCRIPT> translate() </SCRIPT>'
436 if ($main::envir{displayMode} eq 'HTML_asciimath');
430 437
431 (\$STRINGforOUTPUT, \$STRINGforHEADER_TEXT,\%PG_ANSWERS_HASH,eval(q!\%main::PG_FLAGS!)); 438 (\$STRINGforOUTPUT, \$STRINGforHEADER_TEXT,\%PG_ANSWERS_HASH,eval(q!\%main::PG_FLAGS!));
432} 439}
433 440
434 441

Legend:
Removed from v.2166  
changed lines
  Added in v.2199

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9