From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Import a metapost extension
Date: Tue, 1 Sep 2020 14:25:21 +0200 [thread overview]
Message-ID: <CD303344-22DE-4A85-A8FC-FDE3C0C3DFD2@elvenkind.com> (raw)
In-Reply-To: <CACyK-epdhEY8XrxE0Asy=ka=dEAvG-U6YJQheNJ1KNHr4nUH9w@mail.gmail.com>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-09-01 12:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-01 11:07 Fabrice Couvreur
2020-09-01 12:25 ` Taco Hoekwater [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CD303344-22DE-4A85-A8FC-FDE3C0C3DFD2@elvenkind.com \
--to=taco@elvenkind.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).