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 > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] 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 > share your opinions on IT & business topics through brief > surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge &CID=DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users >
beamer_sfmath.tex
Description: beamer_sfmath.tex
texmanager.patch
Description: texmanager.patch
backend_ps.patch
Description: backend_ps.patch
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users