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

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

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

Revision 1504 Revision 1505
544 $colcount++; 544 $colcount++;
545 $out .= '\fbox{' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]); 545 $out .= '\fbox{' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]);
546 $element= shift(@elements); 546 $element= shift(@elements);
547 if (ref($element) eq 'Fraction') { 547 if (ref($element) eq 'Fraction') {
548 $element= $element->print_inline(); 548 $element= $element->print_inline();
549 }elsif( $element =~ /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/ and $element != sprintf($opts{'num_format'},$element) and $element - sprintf($opts{'num_format'},$element) < $main::functZeroLevelTolDefault){ 549 #}elsif( $element =~ /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/ and $element != sprintf($opts{'num_format'},$element) and $element - sprintf($opts{'num_format'},$element) < $main::functZeroLevelTolDefault){
550 $element = sprintf($opts{'num_format'},$element); 550 # $element = sprintf($opts{'num_format'},$element);
551 $element = 0 if abs($element) < $main::functZeroLevelTolDefault; 551 # $element = 0 if abs($element) < $main::functZeroLevelTolDefault;
552 } 552 }
553 $out .= "$brh<TD nowrap=\"nowrap\" align=\"$myalign\">$erh"; 553 $out .= "$brh<TD nowrap=\"nowrap\" align=\"$myalign\">$erh";
554 $out .= '<table border="1"><tr><td>' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]); 554 $out .= '<table border="1"><tr><td>' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]);
555 $out .= $element; 555 $out .= $element;
556 $out .= '</td></tr></table>' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]); 556 $out .= '</td></tr></table>' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]);

Legend:
Removed from v.1504  
changed lines
  Added in v.1505

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9