* \startMPrun ... \stopMPrun
@ 2010-10-23 12:47 Herbert Voss
2010-10-23 13:02 ` Taco Hoekwater
0 siblings, 1 reply; 4+ messages in thread
From: Herbert Voss @ 2010-10-23 12:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \startMPrun ... \stopMPrun
2010-10-23 12:47 \startMPrun ... \stopMPrun Herbert Voss
@ 2010-10-23 13:02 ` Taco Hoekwater
2010-10-24 15:14 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2010-10-23 13:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \startMPrun ... \stopMPrun
2010-10-23 13:02 ` Taco Hoekwater
@ 2010-10-24 15:14 ` Hans Hagen
2010-10-24 16:10 ` Aditya Mahajan
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2010-10-24 15:14 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Taco Hoekwater
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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \startMPrun ... \stopMPrun
2010-10-24 15:14 ` Hans Hagen
@ 2010-10-24 16:10 ` Aditya Mahajan
0 siblings, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2010-10-24 16:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-10-24 16:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-23 12:47 \startMPrun ... \stopMPrun Herbert Voss
2010-10-23 13:02 ` Taco Hoekwater
2010-10-24 15:14 ` Hans Hagen
2010-10-24 16:10 ` Aditya Mahajan
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).