ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* The new beta
@ 1999-11-24  3:38 leiwang
  1999-11-24  8:26 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: leiwang @ 1999-11-24  3:38 UTC (permalink / raw)


Hi, Hans
   I download the new beta context today. It seems have some problems
when deal with the metapost graphics. I test it with a small file,
use the s-pre-04.tex. when compile, it give error message likes:

(mpgraph.mp (/usr/local/teTeX/share/texmf/metapost/context/mp-tool.mp)
(/usr/local/teTeX/share/texmf/metapost/context/mp-page.mp)
(/usr/local/teTeX/share/texmf/metapost/context/mp-tool.mp)
! Missing parameter type; `expr' will be assumed.
<to be read again> 
                   tex
l.9 def triangle (expr wid,rot)(tex
                                    t col) = x1 := x3 := y1 := 0 tex\relax etex

? 
! Missing `)' has been inserted.
<to be read again> 
                   t
l.9 def triangle (expr wid,rot)(tex t
                                      col) = x1 := x3 := y1 := 0 tex\relax etex

? 
! Missing `=' has been inserted.
<to be read again> 
                   t
l.9 def triangle (expr wid,rot)(tex t
                                      col) = x1 := x3 := y1 := 0 tex\relax etex

? 

I  think it may have some problem in supp-mps.tex with \writeMPgraphics macros.
I saw the mpgraph.mp and find taht in line 9 it is:

def triangle (expr wid,rot)(tex t col) = x1 := x3 := y1 := 0 tex\relax etex
;

but in s-pre-04.tex, the line is :

def triangle (expr wid,rot)(text col) = x1 := x3 := y1 := 0;

When I edit the mpgraph.mp so that it has the same line as that in s-pre-04.tex,
mpost works well. 

Wang
-------------------------------------
»¶Ó­Ê¹Óñ±¾©µç±¨¾ÖµÄÃâ·Ñµç×ÓÓʼþϵͳ!
 http://btamail.net.cn  or http://mail.bta.net.cn


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: The new beta
  1999-11-24  3:38 The new beta leiwang
@ 1999-11-24  8:26 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 1999-11-24  8:26 UTC (permalink / raw)
  Cc: ntg-context

At 11:38 AM 11/24/99 +0800, you wrote:

>   I download the new beta context today. It seems have some problems
>when deal with the metapost graphics. I test it with a small file,
>use the s-pre-04.tex. when compile, it give error message likes:
> 
>l.9 def triangle (expr wid,rot)(tex
>                                    t col) = x1 := x3 := y1 := 0 tex\relax etex

You're right. I changed the tex .. etex recently to catch tex .. verbatimtex (was discussed at the context list). This problem can be solved by adding a space after 'tex' in the argument of the macros in supp-mps: 

\dowriteMPgraphicline##1##2tex \relax etex\MPend

\long\def\dodowriteMPgraphicline#1tex #2#3etex#4\MPend%

\immediate\write\MPwrite{#1tex \ascii etex}%

\dowriteMPgraphicline#4tex \relax etex\MPend

I'll upload a new beta later. 

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-11-24  8:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-24  3:38 The new beta leiwang
1999-11-24  8:26 ` Hans Hagen

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).