The following always worked for me:

\starttext
\startMPpage
.. metapost code ..
\stopMPpage
\stoptext

and delivered from a ConTeXt-run a separate pdf.

dr. Hans van der Meer


On 21 Jan 2019, at 09:43, Henri Menke <henrimenke@gmail.com> wrote:

On 1/21/19 9:29 PM, Hans Hagen wrote:
On 1/21/2019 8:57 AM, Henri Menke wrote:
Dear list,

When I process the short MetaFun example

     beginfig(1)
     draw textext("MetaFun") ;
     endfig;
     end

with plain MetaFun, i.e.

     mpost '&metafun' test.mp

the resulting file only contains “unknown”.  How can I get the expected
output?
context foo.mp

(in mkii one could use mptopdf but i have no interest in figuring out
some pure metapost solution when we can do the job with simple wrapping
in mkiv as mentioned)

I tried

   mpost '&metafun' test.mp
   mptopdf test.1

and now I have a PDF which says “unknown“.  Maybe I didn't understand
what you meant.

Cheers, Henri


Hans


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

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________