\startMPrun ... \stopMPrun
![](https://secure.gravatar.com/avatar/0e86c3ddf8d04cdb7b66f8fe72117b1e.jpg?s=120&d=mm&r=g)
Is it possible to run this also under mkiv? Example is from the meafun manual. \startMPrun input Grafik.mp; \stopMPrun \externalfigure[Grafik.1] \stoptext Herbert
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
On 10/23/2010 02:47 PM, Herbert Voss wrote:
Is it possible to run this also under mkiv? Example is from the meafun manual.
\startMPrun input Grafik.mp; \stopMPrun \externalfigure[Grafik.1] \stoptext
It seems not. Also, if I create Grafik.1 externally, it does not work either: [MP to PDF] ! LuaTeX error /opt/tex/texmf-local/tex/context/base/meta-pdf.lua:57: attempt to call upvalue 'pdfliteral' (a nil value) stack traceback: /opt/tex/texmf-local/tex/context/base/meta-pdf.lua:57: in function 'pdfcode' /opt/tex/texmf-local/tex/context/base/meta-pdf.lua:532: in function 'convertmpstopdf' <main ctx instance>:1: in main chunk. system > error on line 4 in file trymp.tex: LuaTeX error ... 1 \startMPrun 2 input Grafik.mp; 3 \stopMPrun 4 >> \externalfigure[Grafik.1] 5 \stoptext 6
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 23-10-2010 3:02, Taco Hoekwater wrote:
On 10/23/2010 02:47 PM, Herbert Voss wrote:
Is it possible to run this also under mkiv? Example is from the meafun manual.
\startMPrun input Grafik.mp; \stopMPrun \externalfigure[Grafik.1] \stoptext
It seems not.
Also, if I create Grafik.1 externally, it does not work either:
\startMPrun input graphic.mp ; \stopMPrun \starttext \externalfigure[mprun.1] \stoptext seems to work on my machine The mprun mechanism is somewhat odd, and dates from the time that integration was not that tight; it's mostly there so that we can process company logos (all variants are defined in one file) runtime because i'm too lazy to contexify these first mp works ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Sun, 24 Oct 2010, Hans Hagen wrote:
On 23-10-2010 3:02, Taco Hoekwater wrote:
On 10/23/2010 02:47 PM, Herbert Voss wrote:
Is it possible to run this also under mkiv? Example is from the meafun manual.
\startMPrun input Grafik.mp; \stopMPrun \externalfigure[Grafik.1] \stoptext
It seems not.
Also, if I create Grafik.1 externally, it does not work either:
\startMPrun input graphic.mp ; \stopMPrun
\starttext \externalfigure[mprun.1] \stoptext
seems to work on my machine
The mprun mechanism is somewhat odd, and dates from the time that integration was not that tight; it's mostly there so that we can process company logos (all variants are defined in one file) runtime because i'm too lazy to contexify these first mp works
\usemodule[filter] \defineexternalfilter [externalMP] [filtercommand={texexec --mptex \externalfilterinput}, read=no] \starttext \processexternalMP[graphic.mp] \externalfigure[graphic.1] \stoptext Perhaps --mpgraphic is better than --mptex as it gives a pdf. You can add continue=yes and the processing will be done if the file has changed. Aditya
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Herbert Voss
-
Taco Hoekwater