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

How to put a tilde, hat, bar or dot over something in axes titles?

7,623 views
Skip to first unread message

sunny

unread,
Jan 16, 2008, 8:11:50 PM1/16/08
to
Hello,

I have been trying to find correct syntax to put a tilde, hat, bar or
dot over something in axes titles using Tex only. I tried /hat, \hat,
$hat, {\hat} etc. but nothing seems to work. From some previous posts
I found, one needs an additional Styled Text toolbox for all these
symbols.

However, is there a way to put these symbols without using Latex (and
only Tex) or any additional toolbox?

Sincerely,

Sunny.

Doug Schwarz

unread,
Jan 16, 2008, 9:11:16 PM1/16/08
to
In article
<44f08e3b-c821-4378...@s13g2000prd.googlegroups.com>,
sunny <sunny....@gmail.com> wrote:

No, you can't do it without the Styled Text Toolbox (or its equivalent).
I could update the toolbox for the current version of MATLAB, but I am
unmotivated to do so due to the existence of the superior latex
functionality that MATLAB now has.

You have probably figured out that to get a hat over an 'a', for
example, you can use

title('$\hat{a}$','Interpreter','latex')


I'm curious as to why you don't want to use the latex interpreter. Is
there something that you have been unable to produce or do you just not
like the look of the fonts?

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

Yumnam Kirani Singh

unread,
Jan 16, 2008, 9:40:09 PM1/16/08
to
Might be your latex interpreter in MATLAB has some problem. If that is so, reinstallation of MATLAB may solve your problem.

nccap...@gmail.com

unread,
Apr 23, 2013, 1:10:16 PM4/23/13
to
Just wanted to say that I don't like using the Latex interpreter because I get outputs like this: http://i.imgur.com/Z2QjqnT.png

Matlab won't let me say '$\dot{m}$_{2, liq. output}' to try to get text in normal font... there doesn't seem to be away to remove the slant/italic nature of Latex symbols. There's no way to change the font name of Latex characters. Latex in matlab is a nightmare IMO.

Doug Schwarz

unread,
Apr 23, 2013, 3:28:13 PM4/23/13
to
In article <93868a31-32ee-4991...@googlegroups.com>,
nccap...@gmail.com wrote:

[snip]

> Just wanted to say that I don't like using the Latex interpreter because I
> get outputs like this: http://i.imgur.com/Z2QjqnT.png
>
> Matlab won't let me say '$\dot{m}$_{2, liq. output}' to try to get text in
> normal font... there doesn't seem to be away to remove the slant/italic
> nature of Latex symbols. There's no way to change the font name of Latex
> characters. Latex in matlab is a nightmare IMO.

Well, you simply don't have the correct syntax. Try

'$\dot{m}_{2,\mathrm{\ liq. output}}$'

As to the font used, I agree that the standard font, Computer Modern, is
only the best choice when your document is typeset in LaTeX using that
font. It would be nice to be able to specify other fonts -- at least
Times and Helvetica.
0 new messages