| … | |
… | |
| 507 | $out .= '\fbox{' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]); |
507 | $out .= '\fbox{' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]); |
| 508 | $element= shift(@elements); |
508 | $element= shift(@elements); |
| 509 | if(ref($element) eq 'Fraction') { |
509 | if(ref($element) eq 'Fraction') { |
| 510 | $element= $element->print_inline(); |
510 | $element= $element->print_inline(); |
| 511 | } |
511 | } |
| 512 | $out .= "$element"; |
512 | $out .= '\\mbox{'."$element".'}'; |
| 513 | $out .= '}' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]); |
513 | $out .= '}' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]); |
| 514 | $out .= " &"; |
514 | $out .= " &"; |
| 515 | } |
515 | } |
| 516 | chop($out); # remove last & |
516 | chop($out); # remove last & |
| 517 | $out .= "\\cr \n"; |
517 | $out .= "\\cr \n"; |