Index: mttroot/mtt/bin/trans/latex_tidy ================================================================== --- mttroot/mtt/bin/trans/latex_tidy +++ mttroot/mtt/bin/trans/latex_tidy @@ -12,10 +12,14 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.22 2002/09/26 08:33:54 geraint +## Removed comma from pattern so that braces are places around each argument +## of a function call. Added greek letter nu as a special variable. +## ## Revision 1.21 2002/08/21 18:11:15 geraint ## Replaced |x| with |{x}|. LaTeX now renders abs(fractions) correctly. ## ## Revision 1.20 2002/08/20 19:33:21 geraint ## Minor bug fixes and enhancements (I hope): @@ -136,16 +140,14 @@ -e "s/\\$//g" \ -e "s/abs(\([^()]*\))/|{ \1 }|/g" \ -e "s/(\([^(),]*\),/( { \1 } ,/g" \ -e "s/,\([^(),]*\),/, { \1 } ,/g" \ -e "s/,\([^(),]*\))/, { \1 } )/g" \ - -e "s/(/{\\\left /g" \ + -e "s/(/{\\\\left (/g" \ -e "s/\*\*/^/g" \ -e "s/\*/ /g" \ - -e "s/)/\\\right }/g" \ - -e "s/\left/\left (/g" \ - -e "s/\right/\right )/g" \ + -e "s/)/\\\right )}/g" \ -e "s/sqrt/\\\sqrt/g" \ -e "s/theta/\\\theta/g" \ -e "s/tau/\\\tau/g" \ -e "s/alpha/\\\alpha/g" \ -e "s/beta/\\\beta/g" \ @@ -175,10 +177,5 @@ sed -e "s/ $//g" | \ tr -s '\012' '\012' \ >junk mv junk $1 - - - - -