From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24525 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: betex -etex block parsing bug Date: Tue, 20 Dec 2005 22:15:11 +0100 Message-ID: <43A8745F.8040305@boede.nl> References: <43A862B0.9060301@boede.nl> <43A86F4A.7060806@wxs.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 1135113485 18770 80.91.229.2 (20 Dec 2005 21:18:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2005 21:18:05 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 20 22:18:00 2005 Return-path: 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 1EoopQ-0003dK-OA for gctc-ntg-context-518@m.gmane.org; Tue, 20 Dec 2005 22:15:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0E3AE1286C; Tue, 20 Dec 2005 22:15:21 +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 12526-02-9; Tue, 20 Dec 2005 22:15:16 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7E80912857; Tue, 20 Dec 2005 22:15:16 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2020412857 for ; Tue, 20 Dec 2005 22:15:15 +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 12526-02-8 for ; Tue, 20 Dec 2005 22:15:14 +0100 (CET) Original-Received: from smtp-vbr17.xs4all.nl (smtp-vbr17.xs4all.nl [194.109.24.37]) by ronja.ntg.nl (Postfix) with ESMTP id 29BD912793 for ; Tue, 20 Dec 2005 22:15:13 +0100 (CET) Original-Received: from [192.168.0.193] (a80-126-172-1.adsl.xs4all.nl [80.126.172.1]) (authenticated bits=0) by smtp-vbr17.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBKLFCV6039005 for ; Tue, 20 Dec 2005 22:15:13 +0100 (CET) (envelope-from w.egger@boede.nl) 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: <43A86F4A.7060806@wxs.nl> X-Virus-Scanned: by XS4ALL Virus Scanner 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:24525 Archived-At: Hi Hans, thanks for your immediate reply. Indeed it is strange that it runs ok in your environment. But where to put this altered definition? Cheers Willi Hans Hagen wrote: > Willi Egger wrote: > >> Hi, >> >> It seems that there is a problem with parsing betex - etex blocks in >> the following situation: >> I can not say with which version this has been introduced. (I messed >> up my old TeX, so I have only new ones) >> I tested this with the version of 19-12-2005 an 30-11-2005. >> >> \setMPtext{1}{CENTER} >> >> \startuseMPgraphic{TEST} >> picture Text; >> Text := \MPbetex{1}; >> draw Text; >> \stopuseMPgraphic >> >> the betex-etex block will look like 'tex CENTERetex' of course the >> etex should be separated by a space. >> For testing I attach the minimal file. > > > > this was the old code: > > % \def\MPtext #1{\getvalue{\@@MPT#1}} > % \def\MPstring #1{"\getvalue{\@@MPT#1}"} > % \def\MPbetex #1{btex \getvalue{\@@MPT#1} etex} > > but due to some reported problems with undefined texts, it became > > \def\MPtext #1{\executeifdefined{\@@MPT#1}\empty} > \def\MPstring #1{"\executeifdefined{\@@MPT#1}\empty"} > \def\MPbetex #1{btex \executeifdefined{\@@MPT#1}\empty etex} > > so, let's add a space: > > \def\MPbetex #1{btex \executeifdefined{\@@MPT#1}\empty\space etex} > > (interesting is that it runs ok here -) > > Hans > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context