* Import a metapost extension
@ 2020-09-01 11:07 Fabrice Couvreur
2020-09-01 12:25 ` Taco Hoekwater
0 siblings, 1 reply; 7+ messages in thread
From: Fabrice Couvreur @ 2020-09-01 11:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 383 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2385 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Import a metapost extension
2020-09-01 11:07 Import a metapost extension Fabrice Couvreur
@ 2020-09-01 12:25 ` Taco Hoekwater
2020-09-01 13:04 ` Fabrice Couvreur
0 siblings, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2020-09-01 12:25 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.couvreur@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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Import a metapost extension
2020-09-01 12:25 ` Taco Hoekwater
@ 2020-09-01 13:04 ` Fabrice Couvreur
2020-09-01 14:45 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Fabrice Couvreur @ 2020-09-01 13:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2465 bytes --]
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 <taco@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.couvreur@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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 5185 bytes --]
[-- Attachment #2: scratch-1.log --]
[-- Type: text/x-log, Size: 1537 bytes --]
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
[-- Attachment #3: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Import a metapost extension
2020-09-01 13:04 ` Fabrice Couvreur
@ 2020-09-01 14:45 ` Hans Hagen
2020-09-01 17:12 ` Taco Hoekwater
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2020-09-01 14:45 UTC (permalink / raw)
To: mailing list for ConTeXt users, Fabrice Couvreur
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Import a metapost extension
2020-09-01 14:45 ` Hans Hagen
@ 2020-09-01 17:12 ` Taco Hoekwater
2020-09-01 17:32 ` Wolfgang Schuster
0 siblings, 1 reply; 7+ messages in thread
From: Taco Hoekwater @ 2020-09-01 17:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
> On 1 Sep 2020, at 16:46, Hans Hagen <j.hagen@xs4all.nl> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Import a metapost extension
2020-09-01 17:12 ` Taco Hoekwater
@ 2020-09-01 17:32 ` Wolfgang Schuster
2020-09-02 13:04 ` Fabrice Couvreur
0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2020-09-01 17:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 681 bytes --]
Taco Hoekwater schrieb am 01.09.2020 um 19:12:
> Hi,
>
>> On 1 Sep 2020, at 16:46, Hans Hagen <j.hagen@xs4all.nl> 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
[-- Attachment #1.2: Type: text/html, Size: 1305 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Import a metapost extension
2020-09-01 17:32 ` Wolfgang Schuster
@ 2020-09-02 13:04 ` Fabrice Couvreur
0 siblings, 0 replies; 7+ messages in thread
From: Fabrice Couvreur @ 2020-09-02 13:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1485 bytes --]
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 <j.hagen@xs4all.nl> <j.hagen@xs4all.nl> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 2868 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-09-02 13:04 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-01 11:07 Import a metapost extension Fabrice Couvreur
2020-09-01 12:25 ` Taco Hoekwater
2020-09-01 13:04 ` Fabrice Couvreur
2020-09-01 14:45 ` Hans Hagen
2020-09-01 17:12 ` Taco Hoekwater
2020-09-01 17:32 ` Wolfgang Schuster
2020-09-02 13:04 ` Fabrice Couvreur
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).