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

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

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

Revision 5457 Revision 5545
738# 738#
739sub TeX { 739sub TeX {
740 my $self = shift; my @cases = (); 740 my $self = shift; my @cases = ();
741 foreach my $If (@{$self->{data}}) { 741 foreach my $If (@{$self->{data}}) {
742 my ($I,$f) = @{$If}; 742 my ($I,$f) = @{$If};
743 push(@cases,'\displaystyle{'.$f->TeX."}&\\text{if \$".$I->TeX."\$}"); 743 push(@cases,'\displaystyle{'.$f->TeX."}&\\text{if}\\ ".$I->TeX);
744 } 744 }
745 if (scalar(@cases)) { 745 if (scalar(@cases)) {
746 push(@cases,'\displaystyle{'.$self->{otherwise}->TeX.'}&\text{otherwise}') if defined $self->{otherwise}; 746 push(@cases,'\displaystyle{'.$self->{otherwise}->TeX.'}&\text{otherwise}') if defined $self->{otherwise};
747 return '\begin{cases}'.join('\cr'."\n",@cases).'\end{cases}'; 747 return '\begin{cases}'.join('\cr'."\n",@cases).'\end{cases}';
748 } else { 748 } else {

Legend:
Removed from v.5457  
changed lines
  Added in v.5545

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9