Thread Subject:
Latex interpreter issues

Subject: Latex interpreter issues

From: Christopher

Date: 16 Apr, 2012 01:30:07

Message: 1 of 2

I am having issues with the Latex interpreter for text on only my copy of Matlab (7.12.0.635, R2011a, maci64). Specifically, all the spacing gets ruined when using the Latex interpreter. For instance, if I set the title for a plot as

title('A Very Very Long Title Here','Interpreter','Latex','fontsize',14)

then the title is clearly not centered on the figure. Also, if I set the interpreter on my legend to Latex, then the text inside the legend box spills out over the right side of the legend box! It's as if Matlab were calculating the spacing with the standard font, then not accounting for the different Latex font size.

As an aside, these problems are not present on the Matlab version on my school's computers (R2009a).

Subject: Latex interpreter issues

From: Andrew

Date: 11 Jun, 2012 18:29:07

Message: 2 of 2

I can confirm this issue in R2012a (7.14.0.739) on Mac OS X and I have run up against it many times in the past on previous versions. It pertains to the LaTeX interpreter in general, not the title() function, the font-size, or the length of the text (it's easier to see with a longer text string). This:

title('abcdefg','Interpreter','latex');

has already overflowed its extent box (click the arrow tool to edit the plot and select the title). I see this issue with xlabel(), ylabel(), etc.

Are there any workarounds/fixes? Typography is essential. Plots should be labeled properly or they are meaningless. This often means using special symbols and formatting that are only accessible via LaTeX in Matlab.


"Christopher " <chood8@gatech.edu> wrote in message <jmfsmv$gdr$1@newscl01ah.mathworks.com>...
> I am having issues with the Latex interpreter for text on only my copy of Matlab (7.12.0.635, R2011a, maci64). Specifically, all the spacing gets ruined when using the Latex interpreter. For instance, if I set the title for a plot as
>
> title('A Very Very Long Title Here','Interpreter','Latex','fontsize',14)
>
> then the title is clearly not centered on the figure. Also, if I set the interpreter on my legend to Latex, then the text inside the legend box spills out over the right side of the legend box! It's as if Matlab were calculating the spacing with the standard font, then not accounting for the different Latex font size.
>
> As an aside, these problems are not present on the Matlab version on my school's computers (R2009a).

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 Andrew 11 Jun, 2012 14:29:10
interpreter Andrew 11 Jun, 2012 14:29:10
center Andrew 11 Jun, 2012 14:29:10
text Andrew 11 Jun, 2012 14:29:10
title Andrew 11 Jun, 2012 14:29:10
plot Andrew 11 Jun, 2012 14:29:10
rssFeed for this Thread

Contact us