[metapost] [bug] graph.mp ignores defaultfont
Taco Hoekwater
taco at elvenkind.com
Wed Feb 21 13:37:25 CET 2007
Stephan Hennig wrote:
> Hi,
>
> in the following example x-axis labels are set in Palatino, but the
> y-axis labels are set in CM. Is this a bug or is there a way to make
> autogrid obey defaultfont?
I assume this is caused by texnum.mp (which is loaded by format.mp
(which is loaded by graph.mp)).
The labels are typeset only once and then cached. This is done using
a btex .. etex construct, lik so:
init_numbers(btex$-$etex, btex$1$etex, btex${\times}10$etex,
btex${}^-$etex, btex${}^2$etex)
And that uses the standard TeX math fonts. My guess is that you
can fix your problem with an appropriate verbatimtex ... etex preamble.
Cheers, Taco
More information about the metapost
mailing list