usetex font problem

That seems to have done it. And CVS is caught up for

    > non-developers. Thanks for all your hard work Darren. I
    > can now have my choice of serif or san-serif fonts and the
    > eps files match the screen. You can still have problems if
    > you change your rc file without clearing you tex.cache. I
    > don't know if a note about that in the rc file would cut
    > down on problems or not.

What are you changing that is causing the problem? I have tried to
include the font family information in the cache string. Please give
us an exact sequence of steps that is causing the problem, starting
with a clean CVS build an empty cache.

Thanks,
JDH

The cache string included the latex font package, but this is not necessarily
enough. pslatex, for example, will load the adobe fonts, but the output still
depends on whether font.family is set to serif (times) or sans-serif
(helvetica). I just added the font.family info to the cache string, that
seems to take care of it.

Darren

···

On Sunday 29 January 2006 11:57 am, you wrote:

    > That seems to have done it. And CVS is caught up for
    > non-developers. Thanks for all your hard work Darren. I
    > can now have my choice of serif or san-serif fonts and the
    > eps files match the screen. You can still have problems if
    > you change your rc file without clearing you tex.cache. I
    > don't know if a note about that in the rc file would cut
    > down on problems or not.

What are you changing that is causing the problem? I have tried to
include the font family information in the cache string. Please give
us an exact sequence of steps that is causing the problem, starting
with a clean CVS build an empty cache.

Darren Dale wrote:

The cache string included the latex font package, but this is not necessarily enough. pslatex, for example, will load the adobe fonts, but the output still depends on whether font.family is set to serif (times) or sans-serif (helvetica). I just added the font.family info to the cache string, that seems to take care of it.

If I can make a suggestion: in

http://new.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex

it might be worth clarifying exactly how font.family interacts with the various latex package options. I think in particular the combination of serif/sans vs. the font.latex.package choice (helvet/typec1m/...) is a little bit confusing.

Cheers,

f

Earlier this morning I changed the wiki page to explain this detail. Is it
still unclear?

···

On Sunday 29 January 2006 3:58 pm, you wrote:

Darren Dale wrote:
> The cache string included the latex font package, but this is not
> necessarily enough. pslatex, for example, will load the adobe fonts, but
> the output still depends on whether font.family is set to serif (times)
> or sans-serif (helvetica). I just added the font.family info to the cache
> string, that seems to take care of it.

If I can make a suggestion: in

http://new.scipy.org/Wiki/Cookbook/Matplotlib/UsingTex

it might be worth clarifying exactly how font.family interacts with the
various latex package options. I think in particular the combination of
serif/sans vs. the font.latex.package choice (helvet/typec1m/...) is a
little bit confusing.

Darren Dale wrote:

Earlier this morning I changed the wiki page to explain this detail. Is it still unclear?

mmh. Perhaps a little summary table of the kind

font.family || font.latex.package || resulting font

···

-------------------------------------------------------
serif || various options

serif

sans

sans

etc.

Might help the dense amongst us make sense of the various possible results without having to think, something at least I am not very good at.

Cheers,

f

I made some improvements to the usetex option over the last few days in order
to make font selection fit seemlessly with the rest of Matplotlib. The usetex
option will now respect the serif, sans-serif, monospace, and cursive rc
settings. Usetex looks until it finds a latex-compatible font, or defaults to
computer modern. Proper font support with plainTeX is more difficult, and
everyone seems to use the latex backend anyway, so I am dropping support of
the tex engine. With these changes, the font.latex.package and the
text.tex.engine rc settings are no longer needed, and should be removed from
ones personal matplotlibrc file.

Here are the currently supported latex fonts:

- serif: Times, Palatino, Bookman, New Century Schoolbook, Charter, Computer
Modern Roman (Times and Palatino have their own math fonts, the others
default to computer modern math fonts)

- sans-serif: Helvetica, Avant Garde, Computer Modern Sans Serif (I added
Avant Garde to the matplotlibrc.template)

- monospace: Courier, Computer Modern Typewriter

- cursive: Zapf Chancery

The font.family setting is respected and should be used to switch from one
family to another. Cursive fonts are supported with latex, but fantasy fonts
are not (raises a warning and defaults to serif). If you use the usetex
option, please kick the tires and let me know how it goes.

Darren