mathtext fonts

Is there a way to get latex to use Ariel font and not italic? If I use the \rm{} command I can get rid of italic, but it is using a serif font and I cannot find any documentation on how to change that font.

Thanks,

Lane Brooks

Arial fonts are not supported by latex. Beyond that, I can't be of much help
without a brief example.

Darren

···

On Tuesday 09 January 2007 12:56, Lane Brooks wrote:

Is there a way to get latex to use Ariel font and not italic? If I use
the \rm{} command I can get rid of italic, but it is using a serif font
and I cannot find any documentation on how to change that font.

You can't (easily )get Ariel, but you can get a SanSerif font.

\rm{} means "Roman Font"

you want:

\sf{} (Sans Serif Font)

-Chris

NOTE: I've never used this with MPL, but that's the LaTeX way.

···

On Tuesday 09 January 2007 12:56, Lane Brooks wrote:

Is there a way to get latex to use Ariel font and not italic? If I use
the \rm{} command I can get rid of italic, but it is using a serif font
and I cannot find any documentation on how to change that font.

--
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...259...

Not to be picky, but those are technically TeX commands. usetex uses LaTeX,
which will accept these TeX font commands, but in a few cases they give
results that are not ideal. Better to use the LaTeX versions: \textrm,
\textsf, etc.

···

On Tuesday 09 January 2007 13:54, Christopher Barker wrote:

> On Tuesday 09 January 2007 12:56, Lane Brooks wrote:
>> Is there a way to get latex to use Ariel font and not italic? If I use
>> the \rm{} command I can get rid of italic, but it is using a serif font
>> and I cannot find any documentation on how to change that font.

You can't (easily )get Ariel, but you can get a SanSerif font.

\rm{} means "Roman Font"

you want:

\sf{} (Sans Serif Font)

-Chris

NOTE: I've never used this with MPL, but that's the LaTeX way.

I also had a problem matching matplotlib's mathfonts with my Beamer
(http://latex-beamer.sourceforge.net) presentation's Helvetica (or
sans-serif) mathfonts.

As LaTeX does not support Helvetica Math unless you buy it from
Micropress, I was curious as to how Till Tantau managed to implement
sans-serif mathfonts in his beamer class.

After some hacking-and-slashing I've isolated the necessary LaTeX code
to generate "beamer compatible" sans-serif math fonts, see attached .tex
file:

The easiest way to "convert" your mpl installation to generate
sans-serif math fonts is to search for "\begin{document}" in your
backend_ps.py file and then to past the attached LaTeX code just above
it.

A more permanent solution to mpl, with Darren's approval, would be the
attached patches to backend_ps.py and texmanager.py

These patches also include the option to add to the default LaTeX
preamble used by texmanager.py & backend_ps.py, e.g.:

rcParams['latex.preamble']=r"""\usepackage{amsmath,amssymb}
\usepackage[afrikaans]{babel}
\usepackage[iso,english]{isodate}
\usepackage{numprint}
"""

Kind regards,

Peter-Jan Randewijk

From: matplotlib-users-bounces@lists.sourceforge.net
[mailto:matplotlib-users-bounces@lists.sourceforge.net] On
Behalf Of Lane Brooks
Sent: 09 January 2007 19:56
To: matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] mathtext fonts

Is there a way to get latex to use Ariel font and not italic?
If I use the \rm{} command I can get rid of italic, but it
is using a serif font and I cannot find any documentation on
how to change that font.

Thanks,

Lane Brooks

--------------------------------------------------------------
-----------
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to
surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge

&CID=DEVDEV

beamer_sfmath.tex (4.28 KB)

texmanager.patch (5.1 KB)

backend_ps.patch (5.04 KB)

···

-----Original Message-----
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users