Wednesday, May 21, 2003 Dennis Brakhane wrote: DB> Am Mittwoch, den 21.Mai 2003 um 22:21 schrieb Laurent Chéno:
(please excuse my poor english)
I'm using ConTeXt with the distribution of teTeX by Gerben Wierda (with iInstaller) under MacOS X (10.2.6). Version of texmf.ii2 : 2003/04/15 12:03:57
This works perfectly :
\starttext \startMPpage label("aa",(0,0)) ; draw fullcircle scaled 3cm ; \stopMPpage \stoptext \end
But this don't work :
\starttext \startMPpage label(btex aa etex,(0,0)) ; draw fullcircle scaled 3cm ; \stopMPpage \stoptext \end
Who can help me ?
DB> If you get an empty page in the second example, it seems like you ran DB> into the same "feature" I did. DB> As I have posted earlier, you could try to fix it: DB> Search for the file texexec.pl, make a backup, and edit it as follows: DB> around line 2218, you will see something like this: DB> { while (/^l\.(\d+)\s/gmois) DB> { print " error in metapost run : $MpName.mp:$1\n" } } DB> unlink "mptrace.tmp" ; rename ($MpFile, "mptrace.tmp") ;
if (-e $MpKep) { unlink ($MpFile) ; rename ($MpKep, $MpFile) } } }
DB> now cut the 3 marked ('>') lines (but without the last two '}' !), it will DB> look like this: DB> { while (/^l\.(\d+)\s/gmois) DB> { print " error in metapost run : $MpName.mp:$1\n" } } DB> unlink "mptrace.tmp" ; rename ($MpFile, "mptrace.tmp") ;
} }
DB> (of course without the '>') DB> and paste them after the 'print "metapost...."' statement around line DB> 2200: DB> rename $MpTex, $MpBck ; DB> unlink $MpDvi } } DB> print " metapost : $MpName\n" ;
if (-e $MpKep) { unlink ($MpFile) ; rename ($MpKep, $MpFile) }
DB> my $cmd = DB> "$own_quote$MpExecutable$own_quote" ; DB> if ($EnterBatchMode) DB> { $cmd .= " $MpBatchFlag " }
DB> This should fix the problem. DB> Let me know if this helped. Ok, I just had a look at the old thread on this. Hans, have you acknowledged the need for this patch? -- Giuseppe "Oblomov" Bilotta