MATLAB: When I use the PUBLISH function with a MATLAB file containing a TeX equation, why is the character spacing incorrect in MATLAB 7.8 (R2009a)

MATLAB

When publishing LaTex equations using the PUBLISH command, my output is formatted badly. It seems that characters from different font sets are not spaced consistently. If I try to publish on another machine, there does not seem to be an issue.

Best Answer

TeX/LaTex equations are published using the standard 75 "Computer Modern" fonts, invented by Donald Knuth. It may be that these fonts are not installed on your computer.
To work around this issue, manually install the Computer Modern Fonts using the appropriate Font Manager for your operating system.
On Windows and Unix, these fonts are located in $MATLABROOT/sys/fonts/type1/cm/
On a Mac, these fonts are located in $MATLABROOT/sys/fonts/ttf/cm/.
where $MATLABROOT is the MATLAB root directory on your machine, as returned by typing
matlabroot
at the MATLAB Command Prompt.