Thread Subject: Interpreter latex corrupted

Subject: Interpreter latex corrupted

From: Mirko Maehlisch

Date: 21 Dec, 2007 12:59:23

Message: 1 of 3

Hi,

the following problem occured for me using a plain install
of Matlab2007b under linux (Suse 10.1):
When switching the text interpreter to 'latex' the text
disappears in the figure and it re-appears when switching
back to 'tex'or 'none' (Renderer is Painters). When using
'latex' there is no error message on the console but nothing
is displayed in the figure at all. When exporting this to
eps, the 'latex' strings appear as garbage, meaning there
are symbols missing in the string, or all letters are at the
same position.

Example code:

figure;
text(.5,.5,'Hallo','Interpreter','latex');

When using the example from the matlab help:

text('Interpreter','latex',...
     'String','$$\int_0^x\!\int_y dF(u,v)$$',...
     'Position',[.5 .5],...
     'FontSize',16);

only the integration bounds (0,x and y) are rendered to the
figure ?!?

Is the some way to figure out what is going wrong?

Thank You, Mirko

Subject: Interpreter latex corrupted

From: Doug Schwarz

Date: 21 Dec, 2007 15:25:50

Message: 2 of 3

In article <fkgdbb$81k$1@fred.mathworks.com>,
 "Mirko Maehlisch" <mirko.maehlisch.nospam@mathworks.com> wrote:

> Hi,
>
> the following problem occured for me using a plain install
> of Matlab2007b under linux (Suse 10.1):
> When switching the text interpreter to 'latex' the text
> disappears in the figure and it re-appears when switching
> back to 'tex'or 'none' (Renderer is Painters). When using
> 'latex' there is no error message on the console but nothing
> is displayed in the figure at all. When exporting this to
> eps, the 'latex' strings appear as garbage, meaning there
> are symbols missing in the string, or all letters are at the
> same position.
>
> Example code:
>
> figure;
> text(.5,.5,'Hallo','Interpreter','latex');
>
> When using the example from the matlab help:
>
> text('Interpreter','latex',...
> 'String','$$\int_0^x\!\int_y dF(u,v)$$',...
> 'Position',[.5 .5],...
> 'FontSize',16);
>
> only the integration bounds (0,x and y) are rendered to the
> figure ?!?
>
> Is the some way to figure out what is going wrong?
>
> Thank You, Mirko


Mirko,

I have had the same thing happen to me on Mac OS X. I have no idea what
went wrong, but I quit and restarted MATLAB and the problem went away.
Good luck!

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

Subject: Interpreter latex corrupted

From: Joachim

Date: 11 Sep, 2008 17:25:03

Message: 3 of 3

I found a number of posts in this newsgroup and elsewhere without any solutions. From those posts, it appears corrupted output from the Latex interpreter is a common issue among various Matlab versions and *nix-es.

Apparently, Mathworks has neither fixed this nor provided a tech note.

E.g., on a Linux x86-64 machine running Matlab 7.6 we have, the last command in the following script produces three "2"s in the figure instead of the desired equation.


rand('twister',100);

figure, plot(1:7,rand(1,7))

text('Position',[2,.3],'FontSize',14,'Interpreter','latex',...
'String','$$a^2+b^2=c^2$$')

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 interpreter Joachim 11 Sep, 2008 13:30:21
broken Joachim 11 Sep, 2008 13:30:21
linux Joachim 11 Sep, 2008 13:30:21
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com