From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/44572 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: metapost and luatex (or xetex) Date: Sat, 4 Oct 2008 00:40:36 +0200 Message-ID: <6faad9f00810031540i531508faydf69558ffce06efa@mail.gmail.com> References: <83e5fb980810031218v136008bav93be65e8d74868c7@mail.gmail.com> <48E68EF5.5050105@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1223073742 31461 80.91.229.12 (3 Oct 2008 22:42:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2008 22:42:22 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 04 00:43:18 2008 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 lo.gmane.org with esmtp (Exim 4.50) id 1KltMi-0007sp-Lh for gctc-ntg-context-518@m.gmane.org; Sat, 04 Oct 2008 00:43:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 419DB1FEE1; Sat, 4 Oct 2008 00:42:11 +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 13078-03; Sat, 4 Oct 2008 00:41:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6CCD91FEBD; Sat, 4 Oct 2008 00:41:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F13661FEBD for ; Sat, 4 Oct 2008 00:41:11 +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 15534-01-3 for ; Sat, 4 Oct 2008 00:40:38 +0200 (CEST) Original-Received: from mail-gx0-f16.google.com (mail-gx0-f16.google.com [209.85.217.16]) by ronja.ntg.nl (Postfix) with ESMTP id E26B81FE20 for ; Sat, 4 Oct 2008 00:40:37 +0200 (CEST) Original-Received: by gxk9 with SMTP id 9so3250787gxk.2 for ; Fri, 03 Oct 2008 15:40:36 -0700 (PDT) Original-Received: by 10.150.133.18 with SMTP id g18mr2694306ybd.137.1223073636834; Fri, 03 Oct 2008 15:40:36 -0700 (PDT) Original-Received: by 10.151.83.13 with HTTP; Fri, 3 Oct 2008 15:40:36 -0700 (PDT) In-Reply-To: <48E68EF5.5050105@wxs.nl> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:44572 Archived-At: On Fri, Oct 3, 2008 at 11:30 PM, Hans Hagen wrote: > Diego Depaoli wrote: >> Hi all, >> from metafun manual, page 157, I took this example >> >> \startuniqueMPgraphic{copyright} >> picture p ; p := btex COPYRIGHT etex rotated 90 ; >> setbounds p to boundingbox p enlarged 1pt ; >> draw p withcolor .8white ; >> xyscale_currentpicture(\the\leftmarginwidth,\the\textheight) ; >> \stopuniqueMPgraphic >> \setuptexttexts [margin] [] [\uniqueMPgraphic{copyright}] >> \starttext >> \input knuth >> \stoptext >> >> but compiling it I get some trouble >> >> texexec --pdf works as expected >> texexec --lua drops colors (COPYRIGHT is black) > > is ok, use btex color[white]{COPYRIGHT} etex instead But that doesn't work in mkii then unless some other "hacks" are added. (I know, mkii and mkiv are not compatible, but there are no obvious limitations why they could not work in the same way.) > (no colorization of pictures with text in mkiv) (In the particular case of gnuplot, I have no idea how to deal with that situation without a bunch of extra work since it's not so simple to convert some color from metapost variable into one that ConTeXt accepts in \color[...]. I have \chardef\TeXtextcolormode\zerocount in mkii, but I still consider it ugly.) In the case of XeTeX: no, it's not normal. If you add \loadmapfile[lm-ec.map] this solves the problem, but if I was on your place, I would use \sometxt{COPYRIGHT} instead of btex COPYRIGHT etex. Loading map files has been removed from XeTeX a while ago. Maybe lm-ec should be added back for such cases? (I remember some problems with btex etex in past after map files have been removed, but I don't remember solving anything at that time.) Mojca ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________