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

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

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

Revision 3615 Revision 3616
1076 # 1076 #
1077 # Add the strings to the context 1077 # Add the strings to the context
1078 # 1078 #
1079 if ($num_params{strings}) { 1079 if ($num_params{strings}) {
1080 foreach my $string (@{$num_params{strings}}) { 1080 foreach my $string (@{$num_params{strings}}) {
1081 my %tex = ($string =~ m/(-?)inf(inity)?/i)? (TeX => "$1\\infty"): (); 1081 my %tex = ($string =~ m/^(-?)inf(inity)?$/i)? (TeX => "$1\\infty"): ();
1082 %tex = (TeX => "-\\infty") if uc($string) eq "MINF";
1082 $context->strings->add(uc($string) => {%tex}); 1083 $context->strings->add(uc($string) => {%tex});
1083 } 1084 }
1084 } 1085 }
1085 1086
1086 # 1087 #

Legend:
Removed from v.3615  
changed lines
  Added in v.3616

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9