ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Metafun error
@ 2003-05-20 15:59 John Culleton
  2003-05-20 16:15 ` Slawek Zak
  2003-05-20 16:16 ` Maarten Sneep
  0 siblings, 2 replies; 12+ messages in thread
From: John Culleton @ 2003-05-20 15:59 UTC (permalink / raw)


Just got back into Metafun. I used the example program from page 5 of
the manual:
------------------------------------------
\setupcolors[state=start]
\starttext
\startuseMPgraphic{dummy}
fill fullcircle scaled 5cm withcolor red;
\stopuseMPgraphic
\useMPgraphic{dummy}
\stoptext
------------------------------------------
When I run 

texexec test.tex I get:
-----------------------------
This is MetaPost, Version 0.641 (Web2C 7.3.7x)
(test-mpgraph.mp
>> spotcolors
>> true
! Equation cannot be performed (numeric=boolean).
<to be read again>
                   ;
l.23 spotcolors := true ;
---------------------------
on the second pass. 

If I eliminate the red color it still doesn't work.

The file test-mpgraph.mp contains these lines which look ok:

cmykcolors := true ;
spotcolors := true ;
color OverlayColor, OverlayLineColor ;

If I just generate the graphic with

texexec --mptex test.tex
that works OK.
Any ideas? 



-- 
John Culleton

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Metafun error
@ 2014-09-26 13:17 Willi Egger
  2014-09-26 13:23 ` Otared Kavian
  0 siblings, 1 reply; 12+ messages in thread
From: Willi Egger @ 2014-09-26 13:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello!

Today I wanted to use an older tex file…. I get the same error as in the following test.

\startuniqueMPgraphic{test}

	path p;
	p := fullcircle scaled 5cm;
	draw p;
	label.bot(textext("Centre"), center p);
	
\stopuniqueMPgraphic

\starttext
\startTEXpage
    \useMPgraphic{test} 
\stopTEXpage
\stoptext


The error message is:

Argument of \meta_start_environment has an extra }

<inserted text> 
\par 
<to be read again> 
}
\meta_handle_unique_graphic ...ocess_graphic {#3}}
                                                  \setxvalue {\??mpgraphic \...
\meta_use_graphic ...]}\getvalue {\??mpgraphic #1}
                                                  \empty \meta_end_graphic_g...
<to be read again> 
 
l.288     \useMPgraphic{test}

This error occurs as well with version ConTeXt  ver: 2014.08.29 20:57 as with the latest beta ConTeXt  ver: 2014.09.26 11:42.


Am I missing something?

Kind regards

Willi
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2014-09-27 13:59 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-20 15:59 Metafun error John Culleton
2003-05-20 16:15 ` Slawek Zak
2003-05-20 16:16 ` Maarten Sneep
2003-05-21 12:13   ` Hans Hagen
2003-05-21 18:22     ` John Culleton
2003-05-21 19:33       ` Hans Hagen
2003-05-22 20:11         ` John Culleton
2014-09-26 13:17 Willi Egger
2014-09-26 13:23 ` Otared Kavian
2014-09-26 14:22   ` Willi Egger
2014-09-26 21:09     ` Otared Kavian
2014-09-27 13:59       ` Willi Egger

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