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
On Tue, May 20, 2003 at 11:59:27AM -0400, John Culleton wrote:
(test-mpgraph.mp
spotcolors true ! Equation cannot be performed (numeric=boolean). <to be read again> ; l.23 spotcolors := true ;
on the second pass.
It seems that your metafun is out of date (not synced with ConTeXt). Running texexec --make metafun in your web2c or any equivalent directory might help. /S
On dinsdag, mei 20, 2003, at 17:59 Europe/Amsterdam, John Culleton wrote:
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 ;
Any ideas?
Have you recently updated your context installation? If so, something may have gone wrong there, I once had the same problem. Some files were moved or renamed, and is a standard reinstall are _not_ overwritten by the new version. Mixing and old and a new version is not a good idea. Solution: remove the current context related stuff from texmf/tex/context and texmf/metapost/context and reinstall. Maarten A prune isn't really a vegetable... Cabbage is a vegetable
At 18:16 20/05/2003 +0200, you wrote:
On dinsdag, mei 20, 2003, at 17:59 Europe/Amsterdam, John Culleton wrote:
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 ;
Any ideas?
Have you recently updated your context installation? If so, something may have gone wrong there, I once had the same problem. Some files were moved or renamed, and is a standard reinstall are _not_ overwritten by the new version. Mixing and old and a new version is not a good idea.
the metapost code moved down one level (now in metapost/context/base) so that users etc can have files in /user etc as well Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Wednesday 21 May 2003 08:13 am, Hans Hagen wrote:
At 18:16 20/05/2003 +0200, you wrote:
On dinsdag, mei 20, 2003, at 17:59 Europe/Amsterdam, John Culleton wrote:
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 ;
Any ideas?
Have you recently updated your context installation? If so, something may have gone wrong there, I once had the same problem. Some files were moved or renamed, and is a standard reinstall are _not_ overwritten by the new version. Mixing and old and a new version is not a good idea.
the metapost code moved down one level (now in metapost/context/base) so that users etc can have files in /user etc as well
Hans I tried a fresh reinstall of TeX on a new install of Slackware. I used TeXLive 2002 for the TeX install. Then I tried the same test file and got similar messages.
I am now back to my original partition. I will wipe out TeX and reinstall TeXLive, then update to the latest Context distro. Two questions: Do I also need to install the separate Metafun zip file or is this included in the Context zip? Do I unzip the distro in /usr/TeX/texmf or further down the tree? -- John Culleton
At 14:22 21/05/2003 -0400, you wrote:
Two questions: Do I also need to install the separate Metafun zip file or is this included in the Context zip?
included
Do I unzip the distro in /usr/TeX/texmf or further down the tree?
in /usr/TeX/texmf-local and then "mktexlsr" and "texexec --make" Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
On Wednesday 21 May 2003 03:33 pm, Hans Hagen wrote:
At 14:22 21/05/2003 -0400, you wrote:
Two questions: Do I also need to install the separate Metafun zip file or is this included in the Context zip?
included
Do I unzip the distro in /usr/TeX/texmf or further down the tree?
in /usr/TeX/texmf-local and then "mktexlsr" and "texexec --make"
Hans
I also threw in a fmtutil --all followed by another texhash. Now I am error free. But the following test.tex file will create the graphic file but will not place it on the output pdf file. I suspect I must tweak something somewhere but I am not sure where: ----------------------------------------------------- \setuppapersize[letter][letter] \setupoutput[pdftex] \setupcolors[state=start] \starttext \startuseMPgraphic{dummy} fill fullcircle scaled 5cm withcolor red; \stopuseMPgraphic \useMPgraphic{dummy} The above is a graphic. \vfil \stoptext ----------------------------------------------------- The resultant test-mpgraph.1 (PostScript) file has a gray quarter-circle in the lower left corner. The test.pdf file has the text sentence but no graphic at all. I can create the test circle successfully from metapost ignoring Context altogether. But the above steps fail somewhere. -- John Culleton
participants (4)
-
Hans Hagen
-
John Culleton
-
Maarten Sneep
-
Slawek Zak