From: jj v. a. <we...@ma...> - 2005-08-23 23:58:28
|
Log Message: ----------- Fixed problem with display_matrix_mm so its behaviour matches its documentation. This may break problems which relied on its previous incorrect behavior. Modified Files: -------------- pg/macros: PGmatrixmacros.pl Revision Data ------------- Index: PGmatrixmacros.pl =================================================================== RCS file: /webwork/cvs/system/pg/macros/PGmatrixmacros.pl,v retrieving revision 1.12 retrieving revision 1.13 diff -Lmacros/PGmatrixmacros.pl -Lmacros/PGmatrixmacros.pl -u -r1.12 -r1.13 --- macros/PGmatrixmacros.pl +++ macros/PGmatrixmacros.pl @@ -519,8 +519,12 @@ if(ref($element) eq 'Fraction') { $element= $element->print_inline(); } - $out .= '\\mbox{'."$element".'}'; - $out .= '}' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]); + if($opts{'force_tex'}) { + $out .= "$element"; + } else { + $out .= '\\mbox{'."$element".'}'; + } + $out .= '}' if ($colcount == $opts{'box'}->[1] and $opts{'cnt'} == $opts{'box'}->[0]); $out .= " &"; } chop($out); # remove last & |