From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24687 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: followup metapost textext? Date: Fri, 23 Dec 2005 00:26:53 +0100 Message-ID: <43AB363D.2070308@wxs.nl> References: <43AA5A94.7050609@elvenkind.com> <90BFF6E7-DF4E-4C31-9A9D-1DB20226C81B@science.uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135328750 27111 80.91.229.2 (23 Dec 2005 09:05:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Dec 2005 09:05:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 23 10:05:48 2005 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 1Epirv-0004fR-Sj for gctc-ntg-context-518@m.gmane.org; Fri, 23 Dec 2005 10:05:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6652C128C4; Fri, 23 Dec 2005 10:05:43 +0100 (CET) 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 30580-09-2; Fri, 23 Dec 2005 10:05:41 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 93DCE128B3; Fri, 23 Dec 2005 09:32:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 741F2128B3 for ; Fri, 23 Dec 2005 09:32:41 +0100 (CET) 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 30329-03-10 for ; Fri, 23 Dec 2005 09:32:40 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by ronja.ntg.nl (Postfix) with ESMTP id 2F353128AC for ; Fri, 23 Dec 2005 09:32:39 +0100 (CET) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 9042 for ; Fri, 23 Dec 2005 09:40:15 +0300 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <90BFF6E7-DF4E-4C31-9A9D-1DB20226C81B@science.uva.nl> X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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:24687 Archived-At: Hans van der Meer wrote: > I finally managed to contrive two simple examples, one that works > here and one that doesn't. > > The next code typeset with texexec --pdf with lines commented OUT > does work: > > \setupcolors[state=start] > \usetypescript[luc]\setupbodyfont[luc,10pt] > \startMPenvironment > \usetypescript[luc] > \setupbodyfont[luc,10pt] > \stopMPenvironment > > \definecolor[gray][s=.825] > \definecolor[yellow][r=.625,g=.625] > \setupMPpage[offset=1pt,background=color,backgroundcolor=gray] > > \startuseMPgraphic{standalone} > draw (0,0)--(100,0)--(100,50)--(50,50)--(50,100)--(0,100)--(0,0); > label (textext("cornerstone"), (10,5)) rotated 45 withcolor > \MPcolor {yellow}; > \stopuseMPgraphic > > \starttext > %%%%%%%%%%\startMPpage > \includeMPgraphic{standalone} > %%%%%%%%%%\stopMPpage > \stoptext > > When I remove the %'s it does not work. > The first below is the wrong one, showing unknown, the second one > correctly shows the word cornerstone. > Is the conclusion correct that it could be something with \startMPpage? no, with \includeMPgraphics not being expanded before testing on mptex runs: \long\def\writecheckedMPgraphic#1% {\ifforceMPTEXgraphic \global\MPTEXgraphictrue \else \global\MPTEXgraphicfalse \edef\ascii{#1}\convertcommand\ascii\to\MPascii \the\MPTEXgraphicchecks\relax % \relax is end condition! \fi \flushMPTEXgraphic % verbatimtex etc \writeMPgraphic{#1}} \startuseMPgraphic{standalone} draw textext("whatever") ; \stopuseMPgraphic \starttext % \forceMPTEXgraphictrue \startMPcode fill fullcircle scaled 2mm ; \includeMPgraphic{standalone} \stopMPcode \startMPcode draw fullcircle scaled 2mm ; \includeMPgraphic{standalone} \stopMPcode \stoptext one can always force tex runs with: \forceMPTEXgraphictrue