Thread Subject: Latex Interpreter character spacing

Subject: Latex Interpreter character spacing

From: Bruno

Date: 13 Aug, 2009 14:38:02

Message: 1 of 5

Hi I'm using matlab2009 in ubuntu9.04 64. When I started programming in matlab I had no problems in exporting figures with legends, xlabel and ylabel in latex. But now i don't know waht had happen because when I use de Interpreter latex, the legend, xlabe or ylabel doesn't change to latex interpreter in figure window at matlab.

But if I do a print to eps, the text appears in latex but the spacing betewen characters is very close and the became unreadable.

For example:

close all
clear all
plot(1:1:10)
xlabel('example','Interpreter','Latex')
ylabel('ExAmPlE','Interpreter','Latex')
a=legend('EXAMPLE example ExAmPle')
set(a,'Interpreter','Latex','Fontsize',13)
print -depsc2 f1

then i use eps2pdf to change in to pdf with looks like:
www.escalosdecima.com/f1.pdf
and in window of matlab apears like:
www.escalosdecima.com/example_matlab_window.pdf

I don't now why this happen and it gets worst with bigger Fontsize.

May anyone help me.

Thanks a lot.

Subject: Latex Interpreter character spacing

From: Perttu Ranta-aho

Date: 14 Aug, 2009 11:44:03

Message: 2 of 5

I have once seen something similar.

Then it was about some extra LaTeX font packages installed to the Linux. Try to remove all unnecessary LaTeX font packages from your installation.

_perttu

Subject: Latex Interpreter character spacing

From: Jiaxin Han

Date: 16 Jun, 2010 04:58:03

Message: 3 of 5

Just found a solution.
I use matlab r2009a on linux mint 7 (a ubuntu variant), the same problem, and even when I try to run matlab on another computer using ssh connection.
Solution:
Just uninstall compiz and everything is ok.

BTW.: in my case it's not a problem with fonts. I uninstalled some latex fonts but it didn't help.


"Bruno " <brunoserrano@net.sapo.pt> wrote in message <h618ga$sq5$1@fred.mathworks.com>...
> Hi I'm using matlab2009 in ubuntu9.04 64. When I started programming in matlab I had no problems in exporting figures with legends, xlabel and ylabel in latex. But now i don't know waht had happen because when I use de Interpreter latex, the legend, xlabe or ylabel doesn't change to latex interpreter in figure window at matlab.
>
> But if I do a print to eps, the text appears in latex but the spacing betewen characters is very close and the became unreadable.
>
> For example:
>
> close all
> clear all
> plot(1:1:10)
> xlabel('example','Interpreter','Latex')
> ylabel('ExAmPlE','Interpreter','Latex')
> a=legend('EXAMPLE example ExAmPle')
> set(a,'Interpreter','Latex','Fontsize',13)
> print -depsc2 f1
>
> then i use eps2pdf to change in to pdf with looks like:
> www.escalosdecima.com/f1.pdf
> and in window of matlab apears like:
> www.escalosdecima.com/example_matlab_window.pdf
>
> I don't now why this happen and it gets worst with bigger Fontsize.
>
> May anyone help me.
>
> Thanks a lot.

Subject: Latex Interpreter character spacing

From: Jiaxin Han

Date: 18 Jun, 2010 07:33:05

Message: 4 of 5

sorry it seems to be not (just) a problem with compiz. I re-installed latex-xft-fonts and the problem returns.
so it's really "latex-xft-fonts" package which really messed up the latex fonts.


"Jiaxin Han" <hanjiaxin@gmail.com> wrote in message <hv9lkr$m7l$1@fred.mathworks.com>...
> Just found a solution.
> I use matlab r2009a on linux mint 7 (a ubuntu variant), the same problem, and even when I try to run matlab on another computer using ssh connection.
> Solution:
> Just uninstall compiz and everything is ok.
>
> BTW.: in my case it's not a problem with fonts. I uninstalled some latex fonts but it didn't help.
>
>
> "Bruno " <brunoserrano@net.sapo.pt> wrote in message <h618ga$sq5$1@fred.mathworks.com>...
> > Hi I'm using matlab2009 in ubuntu9.04 64. When I started programming in matlab I had no problems in exporting figures with legends, xlabel and ylabel in latex. But now i don't know waht had happen because when I use de Interpreter latex, the legend, xlabe or ylabel doesn't change to latex interpreter in figure window at matlab.
> >
> > But if I do a print to eps, the text appears in latex but the spacing betewen characters is very close and the became unreadable.
> >
> > For example:
> >
> > close all
> > clear all
> > plot(1:1:10)
> > xlabel('example','Interpreter','Latex')
> > ylabel('ExAmPlE','Interpreter','Latex')
> > a=legend('EXAMPLE example ExAmPle')
> > set(a,'Interpreter','Latex','Fontsize',13)
> > print -depsc2 f1
> >
> > then i use eps2pdf to change in to pdf with looks like:
> > www.escalosdecima.com/f1.pdf
> > and in window of matlab apears like:
> > www.escalosdecima.com/example_matlab_window.pdf
> >
> > I don't now why this happen and it gets worst with bigger Fontsize.
> >
> > May anyone help me.
> >
> > Thanks a lot.

Subject: Latex Interpreter character spacing

From: SGC

Date: 26 Jul, 2010 11:39:05

Message: 5 of 5

Thanks for the suggestions here! I was struggling with the same problem.

What helped for me was only uninstalling Compiz. I had no "latex-xft-fonts" package installed, so this was not the problem for me.

"Jiaxin Han" <hanjiaxin@gmail.com> wrote in message <hvf7fh$snu$1@fred.mathworks.com>...
> sorry it seems to be not (just) a problem with compiz. I re-installed latex-xft-fonts and the problem returns.
> so it's really "latex-xft-fonts" package which really messed up the latex fonts.
>
>
> "Jiaxin Han" <hanjiaxin@gmail.com> wrote in message <hv9lkr$m7l$1@fred.mathworks.com>...
> > Just found a solution.
> > I use matlab r2009a on linux mint 7 (a ubuntu variant), the same problem, and even when I try to run matlab on another computer using ssh connection.
> > Solution:
> > Just uninstall compiz and everything is ok.
> >
> > BTW.: in my case it's not a problem with fonts. I uninstalled some latex fonts but it didn't help.
> >
> >
> > "Bruno " <brunoserrano@net.sapo.pt> wrote in message <h618ga$sq5$1@fred.mathworks.com>...
> > > Hi I'm using matlab2009 in ubuntu9.04 64. When I started programming in matlab I had no problems in exporting figures with legends, xlabel and ylabel in latex. But now i don't know waht had happen because when I use de Interpreter latex, the legend, xlabe or ylabel doesn't change to latex interpreter in figure window at matlab.
> > >
> > > But if I do a print to eps, the text appears in latex but the spacing betewen characters is very close and the became unreadable.
> > >
> > > For example:
> > >
> > > close all
> > > clear all
> > > plot(1:1:10)
> > > xlabel('example','Interpreter','Latex')
> > > ylabel('ExAmPlE','Interpreter','Latex')
> > > a=legend('EXAMPLE example ExAmPle')
> > > set(a,'Interpreter','Latex','Fontsize',13)
> > > print -depsc2 f1
> > >
> > > then i use eps2pdf to change in to pdf with looks like:
> > > www.escalosdecima.com/f1.pdf
> > > and in window of matlab apears like:
> > > www.escalosdecima.com/example_matlab_window.pdf
> > >
> > > I don't now why this happen and it gets worst with bigger Fontsize.
> > >
> > > May anyone help me.
> > >
> > > Thanks a lot.

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
latex Bruno 13 Aug, 2009 10:39:05
interpreter Bruno 13 Aug, 2009 10:39:05
figure Bruno 13 Aug, 2009 10:39:05
fontsize Bruno 13 Aug, 2009 10:39:05
rssFeed for this Thread

Contact us at files@mathworks.com