[NTG-context] xetex and metapost

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sat Sep 16 17:42:39 CEST 2006


On 9/16/06, Hans Hagen wrote:
> Alex Lubberts wrote:
> > Hi,
> >
> > After switching to `XeConTeXt' my file with MP graphics (which ran fine
> > before) results in errors. I include a .mp-file like:
> >
> > \startuseMPgraphic{dia1}
> >   input Diagram1 ;
> > \stopuseMPgraphic
> > \placefigure{Comment}{\externalfigure[Diagram1.1]}
> >
> > When I run ConTeXt a file test-mprun.mp is created containing:
> >
> > [...]
> > defaultfont:="'Minion Pro:mapping=tex-text;
> > +onum;
> > +pnum'";
> > defaultscale:=12.0pt/10pt;
> > [...]
> >
> > which of course is responsible for the errors. Does anyone know how to
> > solve this?
> >
> hm, tricky, one option is to use the \sometxt (see older posts)
> mechanism which will keep font handling entirely inside tex

One of the problems is also that textext results in calling pdftex
instead of XeTeX (I never managed to get textext working under XeTeX,
but I didn't want to complain too much about it), but "draw
\sometxt{something}" is working perfectly and would be my choice for
this anyway (unless you really need to put something special in those
labels, but ask on the list again if you don't know how to handle it).

Then you don't need to take care of font switching inside of the
graphic, you just switch the font in your document.

Mojca


More information about the ntg-context mailing list