Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to set latex interpreter as default?

989 views
Skip to first unread message

Brian

unread,
May 4, 2009, 7:27:01 AM5/4/09
to
Hi,

When plotting figures in MATLAB you can use

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

To get a latex interpretation and representation of the string. (Taken from the help)

But is there anyway that you can set latex as the default interpreter for all the text and numbers in the figure?

Thanks in advance.

Tim Love

unread,
May 4, 2009, 7:32:46 AM5/4/09
to
"Brian " <s1...@ponstud.aau.dk> writes:


>But is there anyway that you can set latex as the default interpreter for all the text and numbers in the figure?

Try Googling for
set latex as the default interpreter in matlab

Matt Fig

unread,
May 4, 2009, 8:47:01 AM5/4/09
to
set(0,'defaulttextinterpreter','latex')

Sets this at the root level.

Brian

unread,
May 4, 2009, 9:22:02 AM5/4/09
to
"Matt Fig" <spam...@yahoo.com> wrote in message <gtmo45$jr5$1...@fred.mathworks.com>...

> set(0,'defaulttextinterpreter','latex')
>
> Sets this at the root level.

Thank you :)

that helped for axis labels and legend. Is there anyway to format the numbers on the axis as well?

Brian

unread,
May 4, 2009, 10:41:01 AM5/4/09
to
"Brian " <s1...@ponstud.aau.dk> wrote in message <gtmq5q$b2j$1...@fred.mathworks.com>...

This would mainly be to change to font into the same as the default font I use in latex i think. Anyone know how I do that?

Chris Haeni

unread,
Jan 30, 2010, 6:53:05 AM1/30/10
to
"Brian " <s1...@ponstud.aau.dk> wrote in message <gtmupt$m6$1...@fred.mathworks.com>...

Change your default axes font (e.g to Courier):

set(0,'defaultaxesfontname','courier')

Have a look at 'Setting Default Property Values' in Help to get an idea...

btw: to create ticklabels in LaTex format: http://www.mathworks.se/matlabcentral/fileexchange/?term=tick+label+latex

Chris Haeni

unread,
Aug 20, 2010, 9:12:05 AM8/20/10
to
"Chris Haeni" <christo...@hotmail.com> wrote in message <hk16j1$fq1$1...@fred.mathworks.com>...

btw:
latex fontname is cmu serif...

Andrew Burstein

unread,
Jul 1, 2015, 11:16:08 AM7/1/15
to
t...@eng.cam.ac.uk (Tim Love) wrote in message <gtmjou$5pa$1...@gemini.csx.cam.ac.uk>...
By googling that search, this forum is the result.

Steven Lord

unread,
Jul 1, 2015, 12:01:43 PM7/1/15
to


"Andrew Burstein" <a.w.bu...@student.tue.nl> wrote in message
news:mn107i$gaq$1...@newscl01ah.mathworks.com...
Search the documentation included in your installation for the four words
"default graphics property values" and the appropriate documentation page
should appear in the first few hits.

--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

0 new messages