MP "graph" works with latest minimals beta in mkii, broken in mkiv. Minimal example:
\startuseMPgraphic{test} input graph draw begingraph(3in,2in); gdraw "agepopm.d"; endgraph; \stopuseMPgraphic \starttext \useMPgraphic{test} \stoptext (Of course, you know where to find agepopm.d) Alan
This is LuaTeX, Version snapshot-0.37.0 (test.tex ConTeXt ver: 2009.03.30 18:28 MKIV fmt: 2009.4.1 int: english/english system : cont-new loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/context/tex/texmf-context/tex/context/base/cont-new.mkiv) (/usr/local/context/tex/texmf-context/tex/context/base/cont-mtx.tex)) system : cont-fil loaded (/usr/local/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/usr/local/context/tex/texmf-context/tex/context/user/cont-sys.rme (/usr/local/context/tex/texmf-context/tex/context/base/type-tmf.tex) (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.tex (/usr/local/context/tex/texmf-context/tex/context/base/type-siz.mkiv)) (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.tex (/usr/local/context/tex/texmf-context/tex/context/base/type-otf.mkiv))) system : test.top loaded % % begin of optionfile % % % runtime options files (command line driven) % \unprotect % % special commands, mostly for the ctx development team % % feedback and basic job control % % handy for special styles % \startluacode % document.arguments={ % } % document.files={ % "test", % } % \stopluacode % % process info % \setupsystem[\c!n=1,\c!m=1] % \setupsystem[\c!type=unix] % % modes % % options (not that important) % \startsetups *runtime:options % \setupoutput[pdftex] % \stopsetups % % styles and modules % \startsetups *runtime:modules % \stopsetups % % done % \protect \endinput % % end of optionfile % (test.top) fonts : preloading latin modern fonts bodyfont : 12pt rm is loaded specials : pdftex loaded language : language en is active (test.tuo) (test.tuo) systems : begin file test at line 8 mplib : loading format: metafun.mp, name: /usr/local/context/tex/texmf-cache/luatex-cache/context/f70b0d481875d119766efabfbdb61af7/formats/cont-en-metafun.mem ! LuaTeX error ...text/tex/texmf-context/tex/context/base/font-def.lua:114: bad argument #1 to 'match' (string expected, got nil) stack traceback: [C]: in function 'match' ...text/tex/texmf-context/tex/context/base/font-def.lua:114: in function 'get_specification' ...text/tex/texmf-context/tex/context/base/font-def.lua:726: in function 'command_1' <main ctx instance>:1: in main chunk. \lowleveldefinefont ...1("\luaescapestring {#1}")} \ifcase \scaledfontmode \r... \dododefinefont ...inefont {#2}\rawfontidentifier \let \localrelativefontsiz... \dodefinedfont ...csname thedefinedfont\endcsname \the \everydefinedfont l.6 \MPLIBsettext{421}{\definedfont[] 1} \processMPgraphic ...e \MPuserinclusions ;\!!es )} \global \settrue \METAFUNi... \handleuseMPgraphic ...hics \processMPgraphic {#3} \elabelgroup ... l.9 \useMPgraphic{test} ? ! Missing number, treated as zero. <to be read again> \edef \lowleveldefinefont ... \scaledfontsize \fi \edef \somefontspec {at \number ... \dododefinefont ...inefont {#2}\rawfontidentifier \let \localrelativefontsiz... \dodefinedfont ...csname thedefinedfont\endcsname \the \everydefinedfont l.6 \MPLIBsettext{421}{\definedfont[] 1} \processMPgraphic ...e \MPuserinclusions ;\!!es )} \global \settrue \METAFUNi... ... l.9 \useMPgraphic{test} ? ! Illegal unit of measure (pt inserted). <to be read again> \edef \lowleveldefinefont ... \scaledfontsize \fi \edef \somefontspec {at \number ... \dododefinefont ...inefont {#2}\rawfontidentifier \let \localrelativefontsiz... \dodefinedfont ...csname thedefinedfont\endcsname \the \everydefinedfont l.6 \MPLIBsettext{421}{\definedfont[] 1} \processMPgraphic ...e \MPuserinclusions ;\!!es )} \global \settrue \METAFUNi... ... l.9 \useMPgraphic{test} ? X mkiv lua stats : used config path - /usr/local/context/tex/texmf/web2c/texmf.cnf mkiv lua stats : used cache path - /usr/local/context/tex/texmf-cache mkiv lua stats : modules/dumps/instances - 129/32/1 mkiv lua stats : input load time - 0.024 seconds mkiv lua stats : kernel processing time - 0.000 seconds mkiv lua stats : node memory usage - 14 hlist, 5 vlist, 3 rule, 1 disc, 10 math, 1 glue, 1 kern, 1 penalty, 9 glyph, 112 attribute, 24 glue_spec, 30 attribute_list, 2 temp, 15 dir, 9 pdf_literal mkiv lua stats : cleaned up reserved nodes - 16 nodes, 13 lists of 476 mkiv lua stats : node processing time - 0.000 seconds including kernel mkiv lua stats : attribute processing time - 0.000 seconds mkiv lua stats : loaded patterns - us:us:pat:exc:2 mkiv lua stats : language load time - 0.018 seconds, n=2 mkiv lua stats : startup time - 0.485 seconds (including runtime option file processing) mkiv lua stats : jobdata time - 0.000 seconds saving, 0.000 seconds loading mkiv lua stats : callbacks - direct: 106, indirect: 4808, total: 4914 mkiv lua stats : loaded fonts - 31 files: eufb10:tfm eufb7:tfm eufb9:tfm eufm10:tfm eufm7:tfm eufm9:tfm lmex10:tfm lmmi12:tfm lmmi7:tfm lmmi9:tfm lmmib10:tfm lmmib7:tfm lmmono12-regular:otf lmmono8-regular:otf lmmono9-regular:otf lmroman12-bold:otf lmroman12-regular:otf lmroman7-bold:otf lmroman7-regular:otf lmroman9-bold:otf lmroman9-regular:otf lmsans12-regular:otf lmsans8-regular:otf lmsans9-regular:otf lmsy10:tfm lmsy7:tfm lmsy9:tfm msam10:tfm msam7:tfm msbm10:tfm msbm7:tfm mkiv lua stats : fonts load time - 0.272 seconds mkiv lua stats : metapost processing time - 0.022 seconds, loading: 0.015 seconds, execution: 0.022 seconds, n: 0 mkiv lua stats : mps conversion time - 0.000 seconds mkiv lua stats : math processing time - 0.000 seconds mkiv lua stats : graphics processing time - 0.000 seconds including tex, n=0 mkiv lua stats : xml load time - 0.000 seconds, lpath calls: 0, cached calls: 0 mkiv lua stats : lxml load time - 0.000 seconds preparation, backreferences: 0 mkiv lua stats : result saved in file - test.pdf mkiv lua stats : luatex banner - this is luatex, version snapshot-0.37.0 mkiv lua stats : control sequences - 32589 of 165536 mkiv lua stats : current memory usage - 27 MB (ctx: 28 MB) mkiv lua stats : runtime - 32.025 seconds
___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________