Index: mttroot/mtt/bin/trans/latex_tidy ================================================================== --- mttroot/mtt/bin/trans/latex_tidy +++ mttroot/mtt/bin/trans/latex_tidy @@ -12,10 +12,18 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.20 2002/08/20 19:33:21 geraint +## Minor bug fixes and enhancements (I hope): +## +## Delimited expressions within function calls to prevent denominators from continuing beyond commas. +## Allow latex to adjust size of parentheses according to expression within. +## Replaced ^ with \uparrow (less misleading - latex maths doesn't understand operator precedence or words). +## Replaced abs(x) with |x| when x does not contain brackets. +## ## Revision 1.19 2002/08/19 14:37:05 geraint ## Fixed eta, beta, theta, Theta and zeta. ## ## Revision 1.18 2001/06/11 19:43:50 gawthrop ## MTT is now much more sophisticated in generating lbl files @@ -121,11 +129,11 @@ -e "s/mttw/w/g" \ -e "s/mttt/T/g" \ -e "s/mttpar//g" \ -e "s/!/\\\/g" \ -e "s/\\$//g" \ - -e "s/abs(\([^()]*\))/| \1 |/g" \ + -e "s/abs(\([^()]*\))/|{ \1 }|/g" \ -e "s/(\([^(),]*\),/( { \1 } ,/g" \ -e "s/,\([^(),]*\),/, { \1 } ,/g" \ -e "s/,\([^(),]*\))/, { \1 } )/g" \ -e "s/(/{\\\left /g" \ -e "s/\*\*/^/g" \