Thread Subject: latex boldsymbol

Subject: latex boldsymbol

From: Ci Xang

Date: 16 Jun, 2009 02:08:02

Message: 1 of 6

Hi Y'All,

I'm having problem making $\boldsymbol{x}$ work.

I get: "Warning: Unable to interpret TeX string"

Smile,

Ci

Subject: latex boldsymbol

From: Doug Schwarz

Date: 16 Jun, 2009 02:31:59

Message: 2 of 6

In article <h16uq2$s50$1@fred.mathworks.com>, "Ci Xang" <c.xmg@gmx.com>
wrote:

> Hi Y'All,
>
> I'm having problem making $\boldsymbol{x}$ work.
>
> I get: "Warning: Unable to interpret TeX string"
>
> Smile,
>
> Ci

That's because \boldsymbol is not part of latex, but is in the amsbsy
package which is not loaded by the MATLAB version of latex.

Does \mathbf do what you want?

  $\mathbf{x}$

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

Subject: latex boldsymbol

From: Ci Xang

Date: 16 Jun, 2009 02:47:03

Message: 3 of 6

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

Subject: latex boldsymbol

From: Anh Huy Phan

Date: 21 Apr, 2011 17:24:05

Message: 4 of 6

"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

Subject: latex boldsymbol

From: Oscar

Date: 5 May, 2011 17:00:19

Message: 5 of 6

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

Subject: latex boldsymbol

From: Anh Huy Phan

Date: 22 Sep, 2011 11:42:10

Message: 6 of 6

Oscar,

"loadfonts" is a Matlab function.

I describe an alternative way to load latex fonts in matlab at the following link

http://www.mathworks.com/matlabcentral/newsreader/view_thread/283068


Huy Phan


"Oscar" wrote in message <ipul33$3n3$1@newscl01ah.mathworks.com>...
> 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

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
mwarticle Anh Huy Phan 21 Apr, 2011 13:29:06
amsfont Anh Huy Phan 21 Apr, 2011 13:29:06
latex Anh Huy Phan 21 Apr, 2011 13:29:06
interpreter Anh Huy Phan 21 Apr, 2011 13:29:06
matlab Anh Huy Phan 21 Apr, 2011 13:29:06
latex Sprinceana 22 Jun, 2009 05:08:55
rssFeed for this Thread

Contact us at files@mathworks.com