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
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
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
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
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
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
___________________________________________________________________________________
On 9/1/2020 3:04 PM, Fabrice Couvreur wrote:
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. what if you add a suffix:
input "mp-scratch.mp" ; maybe the path you look for is not part of the search path either mtxrun --expand-path MPINPUTS 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 -----------------------------------------------------------------
Hi,
On 1 Sep 2020, at 16:46, Hans Hagen
wrote: On 9/1/2020 3:04 PM, Fabrice Couvreur wrote:
Hi Taco, Thank you for your help. I specify that this extension works perfectly by compiling the following file.
A logfile of a failed run would have been more helpful in trying to track down the problem. But I did notice that there is a LaTeX file loaded in your succesful run. So perhaps the extension depends on LaTeX?
input "mp-scratch.mp" ;
maybe the path you look for is not part of the search path either
mtxrun --expand-path MPINPUTS
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 ___________________________________________________________________________________
Taco Hoekwater schrieb am 01.09.2020 um 19:12:
Hi,
On 1 Sep 2020, at 16:46, Hans Hagen
wrote: On 9/1/2020 3:04 PM, Fabrice Couvreur wrote:
Hi Taco, Thank you for your help. I specify that this extension works perfectly by compiling the following file. A logfile of a failed run would have been more helpful in trying to track down the problem. But I did notice that there is a LaTeX file loaded in your succesful run. So perhaps the extension depends on LaTeX
I looked for the file online [1] and it uses LaTeX commands (even begin/end blocks) for all text boxes. [1] https://melusine.eu.org/syracuse/poulecl/mp-scratch/ Wolfgang
Hello, That's okay, I'll compile the files with mpost and do an image insert. Thanks for your help. Fabrice Le mar. 1 sept. 2020 à 19:32, Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> a écrit :
Taco Hoekwater schrieb am 01.09.2020 um 19:12:
Hi,
On 1 Sep 2020, at 16:46, Hans Hagen
wrote: On 9/1/2020 3:04 PM, Fabrice Couvreur wrote:
Hi Taco, Thank you for your help. I specify that this extension works perfectly by compiling the following file.
A logfile of a failed run would have been more helpful in trying to track down the problem. But I did notice that there is a LaTeX file loaded in your succesful run. So perhaps the extension depends on LaTeX
I looked for the file online [1] and it uses LaTeX commands (even begin/end blocks) for all text boxes.
[1] https://melusine.eu.org/syracuse/poulecl/mp-scratch/
Wolfgang
___________________________________________________________________________________ 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
___________________________________________________________________________________
participants (4)
-
Fabrice Couvreur
-
Hans Hagen
-
Taco Hoekwater
-
Wolfgang Schuster