[metapost] [bug] graph.mp ignores defaultfont

Raphael Schweizer rasch at vtxmail.ch
Sun Oct 19 02:02:57 CEST 2008


Taco Hoekwater wrote:
> Stephan Hennig wrote:
>> Hi,
>> 
>> in the following example x-axis labels are set in Palatino, but the
>> y-axis labels are set in CM.

> My guess is that you can fix your problem with an appropriate
> verbatimtex ... etex preamble.

I have a similar problem. The following will only typeset the label in
Helvetica, the ticks on the axis' won't.
I tried adding

verbatimtex
\usepackage[math]{iwona}
etex

(using this in latex sets the font correctly) but I didn't succeed. Can you
please explain the proper preamble?
If you also happen to know a math font which better matches Helvetica, I
would greatly appreciate any hint.

%&latex
defaultfont:="phvr8y"; %Helvetica
input graph;

beginfig(1)
  draw begingraph(3cm,2cm)
    gdata("Timings.d",
          v,
          path p;
          augment p (v1,0);
          augment p (v1,v2);
          gdraw p withpen pensquare xscaled 8bp;
         );
  endgraph;
  label.llft("Foo", (3cm,2cm));
endfig;

bye;

Thanks a lot,
Raphael



More information about the metapost mailing list