ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: new ConTeXt and metapost
@ 2000-02-02  9:14 Haseloff, Lutz
  0 siblings, 0 replies; 3+ messages in thread
From: Haseloff, Lutz @ 2000-02-02  9:14 UTC (permalink / raw)


> Hm. Are you sure you have mp-tool.mp in the right location? 
Hi Hans,

You are right, it was my error.
context found the wrong mp-tool.mp

shame on me
excuse me for wasting your time.
Next time i will have a look at the log first.

Greetings

Lutz


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

* Re: new ConTeXt and metapost
  2000-02-02  6:44 Haseloff, Lutz
@ 2000-02-02  8:05 ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2000-02-02  8:05 UTC (permalink / raw)
  Cc: 'ntg-context@ntg.nl'

At 07:44 AM 2/2/2000 +0100, Haseloff, Lutz wrote:
>Hi Hans, Hi all,
>
>the new ConTeXt (2000.01.26) writes mpgraph.mp with error.
>mp breaks with:
>
>>> _data_prefix_
>>> "mpd-"

Hm. Are you sure you have mp-tool.mp in the right location? 

For the moment, change this at the and of core-mps.tex: 

\appendtoks
  if not known _data_prefix_ :
    string _data_prefix_ , _data_suffix_ ;
  fi ;
  _data_prefix_ := "\bufferprefix mpd-" ;
  _data_suffix_ := ".tmp" ;
\to \MPinitializations

or put the next line at the top of your file: 

\prependtoks
  if not known _data_prefix_ :
    string _data_prefix_ , _data_suffix_ ;
  fi ;
\to \MPinitializations

I'll add an additional safeguard to the next version. 

BTW, I uploaded a new version a few days ago. That one has (1) a date fix,
since I introduced a bug when I added the low level calendar macros, as
well as a better way to embed mp graphics in xforms (pdf), i.e. in first
quadrant. More precise in viewers. 

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] 3+ messages in thread

* new ConTeXt and metapost
@ 2000-02-02  6:44 Haseloff, Lutz
  2000-02-02  8:05 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Haseloff, Lutz @ 2000-02-02  6:44 UTC (permalink / raw)


Hi Hans, Hi all,

the new ConTeXt (2000.01.26) writes mpgraph.mp with error.
mp breaks with:

>> _data_prefix_
>> "mpd-"
! Equation cannot be performed (numeric=string).
<to be read again>
                   ;
l.5 _data_prefix_ := "mpd-" ;

the same goes for : _data_suffix_ := ".tmp" ;

My input file is:

\startuseMPgraphic{Fig 1}
linejoin:=mitered;
for i = 0 upto 4:
z[i]=(7cm*sind(i*360/5),7cm*cosd(i*360/5));
endfor;
draw z0--z1--z2--z3--z4--cycle;
draw z0..z1..z2..z3..z4..cycle;
pickup pencircle scaled 1.5pt;
draw z2--z3--(x3,y0)--(x2,y0)--cycle;
\stopuseMPgraphic
\starttext
\useMPgraphic{Fig 1}
\stoptext

Greetings

Lutz


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

end of thread, other threads:[~2000-02-02  9:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-02  9:14 new ConTeXt and metapost Haseloff, Lutz
  -- strict thread matches above, loose matches on Subject: below --
2000-02-02  6:44 Haseloff, Lutz
2000-02-02  8:05 ` 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).