On Mon, 5 Aug 2013 23:18:41 +0200
Sietse Brouwer sbbrou...@gmail.com wrote:
For MetaPost, write `method=mps`; I don’t know why
the MetaPost code is not `mp`. (Perhaps that could be made a synonym?)
I suppose because `mp' is MetaPost code
and `mps' is MetaPost produced PostScript.
Alan
you can test with this (line 767 in grph-inc):
askedformat = format -- new per 2013-08-05
elseif trace_figures then
report_inclusion(unknown format %a,askedformat)
end
That fixes the problem, hooray! \o/
Cheers,
Sietse
Hans, Sietse,
Thank you very much: method=mps works, as does Hans's lua code.
Best,
-Sanjoy
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
Hi Sanjoy,
Sorry for the late reply; I had to dig around in grph-inc.lua, and I'm
a bit rusty at source-diving.
Yep, that’s a problem all right. A bug, even: when you put `simple.1`
in the same directory as the `.tex` file, it is correctly identified
as MetaPost; when you put the exact same file
On 8/5/2013 11:18 PM, Sietse Brouwer wrote:
Hi Sanjoy,
Sorry for the late reply; I had to dig around in grph-inc.lua, and I'm
a bit rusty at source-diving.
Yep, that’s a problem all right. A bug, even: when you put `simple.1`
in the same directory as the `.tex` file, it is correctly identified
\externalfigure won't find a metapost eps file in a subdirectory, if the
mps has the numerical (.1) extension.
Here's a minimal example (test.tex):
\setupexternalfigures[directory={fig}]
\starttext
\externalfigure[simple.1]
\stoptext
where fig/simple.1 is from a simple .mp file that fills a