|
Huy,
Where is the loadfonts program?
Please provide more details on how to update the texpath and use loadfonts.
Oscar
"Anh Huy Phan" wrote in message <iopp7l$5mf$1@fred.mathworks.com>...
> "Ci Xang" wrote in message <h17137$n1q$1@fred.mathworks.com>...
> > Thanks Doug,
> >
> > I also thought that only "common" latex packages are loaded in Matlab. I wonder how we could load other packages.
> >
> > Actually, I'm currently using $\mathbf{x}$, but it does not give the italic bold format, which $\boldsymbol{x}$ does.
> >
> > Smile,
> >
> > Ci
>
> Hi,
>
> Do you still want to display $\boldsymbol{x}$ in matlab using latex interpreter.
> Recently, I have figured out how to display amsfonts correctly in matlab with latex interpreter.
> The trick is as follows
> - Declare package which consists latex font to be used in the class file "mwarticle.cls" inside the folder
> $matlabroot/sys/tex/
> %% matlabroot is the Root directory of your MATLAB.
> For example,
> \RequirePackage{amsfonts,amssymb}
>
> - Add paths for your latex fonts to matlab path for Tex and Latex which can be retrieved: texpath = getappdata(0,'TeXPath');
>
> - For Windows, load pfb and pfm font files using the mex function loadfonts.
>
> HTH
>
> Huy Phan
|