|
From: Paul H. <pmh...@gm...> - 2013-05-03 15:31:06
|
On Fri, May 3, 2013 at 6:17 AM, Michael Droettboom <md...@st...> wrote:
> On 05/02/2013 03:16 PM, Paul Hobson wrote
>
> I now see that this was more of TeX issue than an MPL configuration
> issue. Your help prompted me to find this solution (similar to yours):
> mpl.rcParams['text.latex.preamble'] = [
> r'\usepackage{siunitx}', # i need upright \micro symbols, but you
> need...
> r'\sisetup{detect-all}', # ...this to force siunitx to actually
> use your fonts
> r'\usepackage{helvet}', # set the normal font here
> r'\usepackage{sansmath}', # load up the sansmath so that math ->
> helvet
> r'\sansmath'] # <- tricky! -- gotta actually tell tex to use!
>
>
> Wow. That's some serious TeX voodoo magic! Want to work that into an
> example that we could include in the docs?
>
> Cheers,
> Mike
>
Gladly. I'll try to find time to cook up PR building off of the existing
example over the weekend.
-paul
|