Hi Taco, Thank you for your help. I specify that this extension works perfectly by compiling the following file.
input mp-scratch; Scratchversion:=3; beginfig(1); draw Drapeau; draw Repeter("4"); draw Avancer("100"); draw Tournerd("90"); draw FinBlocRepeter; endfig; end But what you are proposing unfortunately does not work. Fabrice Le mar. 1 sept. 2020 à 14:25, Taco Hoekwater <t...@elvenkind.com> a écrit : > Hi, > > I think you need this: > > \startMPinclusions > input mp-scratch; > \stopMPinclusions > > \startMPcode > Scratchversion:=3; > …. > > If that also doesn’t work, perhaps attach the log file / terminal output > to a new message. > > Best wishes, > Taco > > > On 1 Sep 2020, at 13:07, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > > > > Hello > > Is it possible to import a metapost extension into a file compiled with > the lmtx engine ? > > I tried unsuccessfully with this example : > > > > %%%% begin test.tex > > > > \starttext > > \startMPcode > > input mp-scratch; > > > > Scratchversion:=3; > > > > draw Drapeau; > > draw Repeter("4"); > > draw Avancer("50"); > > draw Tournerd("90"); > > draw FinBlocRepeter; > > > > \stopMPcode > > \stoptext > > > > %%%% end test.tex > > > > Thanks > > Fabrice > > > ___________________________________________________________________________________ > > 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 > > > ___________________________________________________________________________________ > > Taco Hoekwater > Elvenkind BV > > > > > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ >
This is MetaPost, version 2.00 (TeX Live 2020) (kpathsea version 6.3.2) 1 SEP 2020 15:01 **scratch-1.mp (/home/viserion/texlive/2020/texmf-dist/metapost/base/mpost.mp (/home/viserion/texlive/2020/texmf-dist/metapost/base/plain.mp Preloading the plain mem file, version 1.005) ) (./scratch-1.mp (/home/viserion/texmf/metapost/mp-scratch.mp (/home/viserion/texmf/metapost/LATEXScratch.mp) (/home/viserion/texmf/metapost/Mouvement.mp) (/home/viserion/texmf/metapost/Apparence.mp) (/home/viserion/texmf/metapost/Sons.mp) (/home/viserion/texmf/metapost/Stylo.mp ) (/home/viserion/texmf/metapost/Controle.mp) (/home/viserion/texmf/metapost/Evenements.mp) (/home/viserion/texmf/metapost/Bloc.mp) (/home/viserion/texmf/metapost/Divers.mp) (/home/viserion/texmf/metapost/Capteurs.mp) (/home/viserion/texmf/metapost/Variable.mp)) (./mptextmp.mp) (./mptextmp.mp) >> 34.55159 >> 55.29037 (./mptextmp.mp) (./mptextmp.mp) >> 105.50436 (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) >> 39.74248 >> 63.32898 (./mptextmp.mp) (./mptextmp.mp) >> 84.05197 (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) >> 56.92798 >> 92.35968 (./mptextmp.mp) (./mptextmp.mp) >> 112.43477 (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) >> 97.13678 >> 127.64769 (./mptextmp.mp) (./mptextmp.mp) >> 171.08908 (./mptextmp.mp) [1{psfonts.map}{crlt_csjzgd.enc}<Carlito.pfb><Carl ito-Bold.pfb>] ) 1 output file written: scratch-1.1
___________________________________________________________________________________ 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 ___________________________________________________________________________________