Thread Subject: calligraphic letters

Subject: calligraphic letters

From: I. Yucel Akkutlu

Date: 21 May, 2001 10:22:51

Message: 1 of 5

For presentation purposes, I am wondering how I can insert a
calligraphic letter as a TeX string such as {\cal A} into my plot? For
example in the form of xlabel('???').
Regards,

I. Yucel Akkutlu
http://www-scf.usc.edu/~akkutlu/

Subject: calligraphic letters

From: Rasmus Anthin

Date: 21 May, 2001 22:47:25

Message: 2 of 5


> For presentation purposes, I am wondering how I can insert a
> calligraphic letter as a TeX string such as {\cal A} into my plot? For
> example in the form of xlabel('???').
> Regards,

Matlab only supports a subset of TeX/LaTeX commands. So commands like \cal
will not work. You can only write expressions with symbols from TeX
(amssymb?). However you can work around this problem if you are using
windows you can set the 'fontname' parameter to be any name of those fonts
you are using. That is:

h=xlabel(string);
set(h,'fontname','lucida handwriting')

for example. The problem is that you cannot mix different fonts (or do
anyone else have any idea of how to do that?)

Sincerely,
__________________________________
\ B. Rasmus Anthin \ _ ______ |
 \ ================ \ / \___-=O`/|O`/__|
  \ \_______\ / | / )
  / e8rasmus@etek.chalmers.se / `/-==____/__|/__=-|
 / www.etek.chalmers.se/~e8rasmus / * \| |
/ 64438710 / (o)
----------------------------------

Subject: calligraphic letters

From: Doug Schwarz

Date: 22 May, 2001 08:30:46

Message: 3 of 5

In article <3B094EEB.C12ED7A7@archie.usc.edu>,
 "I. Yucel Akkutlu" <akkutlu@archie.usc.edu> wrote:

>For presentation purposes, I am wondering how I can insert a
>calligraphic letter as a TeX string such as {\cal A} into my plot? For
>example in the form of xlabel('???').
>Regards,
>
>I. Yucel Akkutlu
>http://www-scf.usc.edu/~akkutlu/


[I posted this last night from my home ISP, but it seems the message
never made it anywhere so I am reposting from work. I apologize if it
shows up twice.]


As already pointed out, you cannot use \cal, but you can change the font
for any part of a string. The font Zapf Chancery happens to be
supported by MATLAB and if you have it you can do something like this:

  xlabel('{\fontname{zapfchancery}F}(x)')

which will make the 'F' very much like with \cal and everything else
will be in the default font.

--
Doug Schwarz
Eastman Kodak Company
douglas.schwarz@kodak.com

Subject: calligraphic letters

From: Doug Schwarz

Date: 21 May, 2001 22:26:09

Message: 4 of 5

In article <3B094EEB.C12ED7A7@archie.usc.edu>,
 "I. Yucel Akkutlu" <akkutlu@archie.usc.edu> wrote:

>For presentation purposes, I am wondering how I can insert a
>calligraphic letter as a TeX string such as {\cal A} into my plot? For
>example in the form of xlabel('???').


As already pointed out, you cannot use \cal, but you can change the font
for any part of a string. The font Zapf Chancery happens to be
supported by MATLAB and if you have it you can do something like this:

  xlabel('{\fontname{zapfchancery}F}(x)')

which will make the 'F' very much like with \cal and everything else
will be in the default font.

--
Doug Schwarz
Eastman Kodak Company
douglas.schwarz@kodak.com

Subject: calligraphic letters

From: Rasmus Anthin

Date: 23 May, 2001 10:38:32

Message: 5 of 5

Neat feature. I was not aware of that. =)

Zapf Chancery is only supported if you have the font installed. I windoze
that is, the windows\font\ directory. In the unix environment I do not
know...
Check which fonts you have. You can use any font you wish for use of the
\fontname command.


On Mon, 21 May 2001, Doug Schwarz wrote:

> In article <3B094EEB.C12ED7A7@archie.usc.edu>,
> "I. Yucel Akkutlu" <akkutlu@archie.usc.edu> wrote:
>
> >For presentation purposes, I am wondering how I can insert a
> >calligraphic letter as a TeX string such as {\cal A} into my plot? For
> >example in the form of xlabel('???').
>
>
> As already pointed out, you cannot use \cal, but you can change the font
> for any part of a string. The font Zapf Chancery happens to be
> supported by MATLAB and if you have it you can do something like this:
>
> xlabel('{\fontname{zapfchancery}F}(x)')
>
> which will make the 'F' very much like with \cal and everything else
> will be in the default font.
>
> --
> Doug Schwarz
> Eastman Kodak Company
> douglas.schwarz@kodak.com
>

__________________________________
\ B. Rasmus Anthin \ _ ______ |
 \ ================ \ / \___-=O`/|O`/__|
  \ \_______\ / | / )
  / e8rasmus@etek.chalmers.se / `/-==____/__|/__=-|
 / www.etek.chalmers.se/~e8rasmus / * \| |
/ 64438710 / (o)
----------------------------------

Tags for this Thread

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.

rssFeed for this Thread

Contact us at files@mathworks.com