From: Jiaxin Han on
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(a)net.sapo.pt> wrote in message <h618ga$sq5$1(a)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.
From: Jiaxin Han on
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(a)gmail.com> wrote in message <hv9lkr$m7l$1(a)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(a)net.sapo.pt> wrote in message <h618ga$sq5$1(a)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.