From: Michael G. <ga...@ma...> - 2006-10-16 22:57:54
|
Begin forwarded message: > From: ch...@io... > Date: October 11, 2006 12:51:16 PM EDT (CA) > To: ap...@ma..., ga...@ma... > Cc: we...@ps... > Subject: match_questions_list in PGchoicemacros.pl > > I ran across a function in PGchoicemacros that wasn't compatible > with jsMath. It needed a > similiar fix to the table patch I made earlier to generate jsMath > tags. Maybe you've already > fixed this in the latest CVS but in case you haven't and want the > fix, here's what I did. > > In /home/pg/macros/PGchoicemacros.pl, at the end of sub > match_questions_list {}, where it says: > > } > $out; > } > > > I inserted an extra if clause to replace the \( and \) with > appropriate SPAN tags for jsMath, as > follows: > > } > if($main::displayMode =~ 'jsMath') { > $out =~ s/\\\(/<SPAN CLASS=\"math\">/g; > $out =~ s/\\\)/<\/SPAN>/g; > } > $out; > } > > > Chad > webwork at uci |