From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30852 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: xetex and metapost Date: Sat, 16 Sep 2006 17:42:39 +0200 Message-ID: <6faad9f00609160842h294378a3j19629c9938f30386@mail.gmail.com> References: <1158411296.15049.5.camel@localhost> <450C0F33.80005@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1158421398 8568 80.91.229.2 (16 Sep 2006 15:43:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Sep 2006 15:43:18 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 16 17:43:16 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GOcJn-0000ZG-H3 for gctc-ntg-context-518@m.gmane.org; Sat, 16 Sep 2006 17:42:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A2E031FDCD; Sat, 16 Sep 2006 17:42:58 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05707-04; Sat, 16 Sep 2006 17:42:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B1A011FD47; Sat, 16 Sep 2006 17:42:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 925871FD47 for ; Sat, 16 Sep 2006 17:42:47 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04915-03 for ; Sat, 16 Sep 2006 17:42:42 +0200 (CEST) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.233]) by ronja.ntg.nl (Postfix) with SMTP id BE7431FD38 for ; Sat, 16 Sep 2006 17:42:40 +0200 (CEST) Original-Received: by wx-out-0506.google.com with SMTP id s12so3400100wxc for ; Sat, 16 Sep 2006 08:42:39 -0700 (PDT) Original-Received: by 10.90.105.20 with SMTP id d20mr4127348agc; Sat, 16 Sep 2006 08:42:39 -0700 (PDT) Original-Received: by 10.90.94.17 with HTTP; Sat, 16 Sep 2006 08:42:38 -0700 (PDT) Original-To: "mailing list for ConTeXt users" In-Reply-To: <450C0F33.80005@wxs.nl> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30852 Archived-At: 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