<div dir="ltr"><div>I'm trying to use MetaFun's "graphictext" with LuaLaTeX + MPlib with the following code:</div><div><br></div><div>% Begin code<br></div><div>\documentclass{standalone}<br>\usepackage{luamplib}<br>\mplibsetformat{metafun}<br>\begin{document} <br>   \begin{mplibcode}<br>      beginfig(0);<br>         graphictext "Fun" scaled 4 withdrawcolor blue withfillcolor .5white withpen pencircle scaled 5pt;<br>      endfig;<br>      end<br>   \end{mplibcode}<br>\end{document}</div><div>% End code</div><div><br></div><div>However, I am getting the following error (perhaps because it cannot find my installed pstoedit in /usr/local/bin).  I would appreciate assistance.<br></div><div><br></div><div>Thank you in advance,</div><div><br></div><div>Troy<br></div><div><br></div><div>-- Error --</div><div>lualatex foo.ltx <br>This is LuaTeX, Version 1.10.0 (TeX Live 2019) <br> restricted system commands enabled.<br>(./foo.ltx<br>LaTeX2e <2018-12-01><br><br>luaotfload | main : initialization completed in 0.543 seconds<br>(/usr/local/texlive/current/texmf-dist/tex/latex/standalone/standalone.cls<br>Document Class: standalone 2018/03/26 v1.3a Class to compile TeX sub-files stan<br>dalone<br>(/usr/local/texlive/current/texmf-dist/tex/latex/tools/shellesc.sty)<br>(/usr/local/texlive/current/texmf-dist/tex/generic/oberdiek/ifluatex.sty)<br>(/usr/local/texlive/current/texmf-dist/tex/generic/oberdiek/ifpdf.sty)<br>(/usr/local/texlive/current/texmf-dist/tex/generic/ifxetex/ifxetex.sty)<br>(/usr/local/texlive/current/texmf-dist/tex/latex/xkeyval/xkeyval.sty<br>(/usr/local/texlive/current/texmf-dist/tex/generic/xkeyval/xkeyval.tex<br>(/usr/local/texlive/current/texmf-dist/tex/generic/xkeyval/xkvutils.tex<br>(/usr/local/texlive/current/texmf-dist/tex/generic/xkeyval/keyval.tex))))<br>(/usr/local/texlive/current/texmf-dist/tex/latex/standalone/standalone.cfg)<br>(/usr/local/texlive/current/texmf-dist/tex/latex/base/article.cls<br>Document Class: article 2018/09/03 v1.4i Standard LaTeX document class<br>(/usr/local/texlive/current/texmf-dist/tex/latex/base/size10.clo))<br>(/usr/local/texlive/current/texmf-dist/tex/generic/luatex85/luatex85.sty)<br>(/usr/local/texlive/current/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty<br>(/usr/local/texlive/current/texmf-dist/tex/generic/oberdiek/infwarerr.sty)<br>(/usr/local/texlive/current/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))<br>(/usr/local/texlive/current/texmf-dist/tex/luatex/luamplib/luamplib.sty)<br>(./foo.aux)Error in mp.find_file: ...live/current/texmf-dist/tex/luatex/luamplib/luamplib.lua:233: bad argument #2 to 'find_file' (invalid option 'Fun')<br>mplib warning: error in script: [string "mp.report([===[]===])"]:1: attempt to call a nil value (field 'report')<br>mplib warning: error in script: [string "mp.report([===[metafun iv 2019-12-3 10:32]===..."]:1: attempt to call a nil value (field 'report')<br>mplib warning: error in script: [string "mp.report([===[]===])"]:1: attempt to call a nil value (field 'report')<br><br>Module luamplib Warning: (Please type a command or say `end')<br>(luamplib)               (Please type a command or say `end')<br>(luamplib)<br>(luamplib)               ! Please prepare 'Fun' in advance with 'pstoedit -ssp<br>-dt -f mpost <a href="http://yourfile.ps">yourfile.ps</a> <br>(luamplib)               Fun'.<br>(luamplib)               <to be read again><br>(luamplib)                                  ;<br>(luamplib)               graphictext->...f mpost <a href="http://yourfile.ps">yourfile.ps</a> "&(EXPR0)&"'";<br>(luamplib)                                                                 fi.c<br>losefrom(EXPR0);def.da...<br>(luamplib)               <to be read again> <br>(luamplib)                                  scaled<br>(luamplib)               <*> graphictext "Fun" scaled<br>(luamplib)                                            4 withdrawcolor blue with<br>fillcolor .5white with...<br>(luamplib)               This error message was generated by an `errmessage'<br>(luamplib)               command, so I can't give any explicit help.<br>(luamplib)               Pretend that you're Miss Marple: Examine all clues,<br>(luamplib)               and deduce the truth by inspired guesses.<br>(luamplib)<br>(luamplib)               >> mfun_do_graphic_text<br>(luamplib)               ! Isolated expression.<br>(luamplib)               <to be read again><br>(luamplib)                                  (<br>(luamplib)               graphictext->...EXPR0)enddef;mfun_do_graphic_text(<br>(luamplib)                                                                 (EXP<br>R0))<br>(luamplib)               <to be read again><br>(luamplib)                                  scaled<br>(luamplib)               <*> graphictext "Fun" scaled<br>(luamplib)                                            4 withdrawcolor blue with<br>fillcolor .5white with...<br>(luamplib)               I couldn't find an `=' or `:=' after the<br>(luamplib)               expression that is shown above this error message,<br>(luamplib)               so I guess I'll just ignore it and carry on.<br>(luamplib)<br>(luamplib)               ! Extra tokens will be flushed.<br>(luamplib)               <to be read again> <br>(luamplib)                                  (<br>(luamplib)               graphictext->...EXPR0)enddef;mfun_do_graphic_text(<br>(luamplib)                                                                 (EXP<br>R0))<br>(luamplib)               <to be read again><br>(luamplib)                                  scaled<br>(luamplib)               <*> graphictext "Fun" scaled<br>(luamplib)                                            4 withdrawcolor blue with<br>fillcolor .5white with...<br>(luamplib)               I've just read as much of that statement as I could fa<br>thom,<br>(luamplib)               so a semicolon should have been next. It's very puzzli<br>ng...<br>(luamplib)               but I'll try to get myself back together, by ignoring<br>(luamplib)               everything up to the next `;'. Please insert a semicol<br>on<br>(luamplib)               now in front of anything that you don't want me to del<br>ete.<br>(luamplib)               (See Chapter 27 of The METAFONTbook for an example.)<br>(luamplib)<br>(luamplib)<br>(luamplib)               [0]<br>(luamplib)<br>(luamplib)               (Please type a command or say `end')<br>(luamplib)               (Please type a command or say `end')<br>(luamplib)               on input line 10<br>...l/texlive/current/texmf-dist/tex/latex/base/ltluatex.lua:109: <br>Module luamplib Error: see above messages on input line 10<br><br>stack traceback:<br>        [C]: in function 'error'<br>        ...l/texlive/current/texmf-dist/tex/latex/base/ltluatex.lua:109: in function <<br>...l/texlive/current/texmf-dist/tex/latex/base/ltluatex.lua:108><br>        (...tail calls...)<br>        ...live/current/texmf-dist/tex/luatex/luamplib/luamplib.lua:265: in upvalue 'r<br>eporterror'<br>        ...live/current/texmf-dist/tex/luatex/luamplib/luamplib.lua:309: in function <<br>...live/current/texmf-dist/tex/luatex/luamplib/luamplib.lua:305><br>        (...tail calls...)<br>        ...live/current/texmf-dist/tex/luatex/luamplib/luamplib.lua:635: in field 'pro<br>cess_mplibcode'<br>        [\directlua]:1: in main chunk.<br><inserted text> BAD<br><br>l.10    \end{mplibcode}</div></div>