ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <w.egger@boede.nl>
Subject: Re: betex -etex block parsing bug
Date: Tue, 20 Dec 2005 22:15:11 +0100	[thread overview]
Message-ID: <43A8745F.8040305@boede.nl> (raw)
In-Reply-To: <43A86F4A.7060806@wxs.nl>

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

  reply	other threads:[~2005-12-20 21:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-20 19:59 Willi Egger
2005-12-20 20:53 ` Hans Hagen
2005-12-20 21:15   ` Willi Egger [this message]
2005-12-20 22:20     ` Hans Hagen
2005-12-21  9:26       ` Willi Egger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43A8745F.8040305@boede.nl \
    --to=w.egger@boede.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).