Hi all, Trying to use mpost with (today's) minimals, I get this answer: ................................... 16:55 jean@boldair /home/jean/graph % mpost ecindf Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file! ................................... Do I have to make formats or something for mpost to work? tia, -- Jean
Jean Magnan de Bornier schrieb:
Hi all, Trying to use mpost with (today's) minimals, I get this answer: ................................... 16:55 jean@boldair /home/jean/graph % mpost ecindf
Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file! ...................................
Do I have to make formats or something for mpost to work?
you have to give mpost a mem(ory dump) file. something like mpost -mem=metafun.mem <file>.mp donno if there are more elegant ways to make it run. hope that helps, Peter
tia,
Le 11 mai à 17:34:42 Peter Rolf
| mpost -mem=metafun.mem <file>.mp
| donno if there are more elegant ways to make it run.
| hope that helps,
| Peter
| > tia, | > Thanks to all! Peter and Aditya's solutions work, Mokja's doesn't.. Using Aditya's, when everything is fine, it ends up with a (seemingly infinite) series of lines: ....................... metafun 2009-5-11 18:20 ....................... Strange and hardly nice, I had to cut it out. Maybe there is a problem here. Anyway why can't we compile with just 'mpost' anymore? Cu, -- Jean
On Mon, May 11, 2009 at 17:14, Jean Magnan de Bornier wrote:
Hi all, Trying to use mpost with (today's) minimals, I get this answer: ................................... 16:55 jean@boldair /home/jean/graph % mpost ecindf
Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file! ...................................
Do I have to make formats or something for mpost to work?
texexec --make metafun But I should probably check what goes wrong as this format should have been generated automatically. Hans, in the source code there is states.set("formats.cont-en", true) states.set("formats.cont-nl", true) states.set("formats.metafun", true) Maybe mpost should be added there as well (though I didn't test yet if that indeed helps). Mojca
On Mon, May 11, 2009 at 17:42, Mojca Miklavec wrote:
On Mon, May 11, 2009 at 17:14, Jean Magnan de Bornier wrote:
Hi all, Trying to use mpost with (today's) minimals, I get this answer: ................................... 16:55 jean@boldair /home/jean/graph % mpost ecindf
Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file! ...................................
Do I have to make formats or something for mpost to work?
texexec --make metafun
Sorry, I meant texexec --make mpost Though it's indeed true that you can use mpost --mem=metafun ecindf or the ConTeXt interface But these formats should be made by default. Mojca
Le 11 mai à 17:58:32 Mojca Miklavec
| Sorry, I meant | texexec --make mpost
| Though it's indeed true that you can use | mpost --mem=metafun ecindf | or the ConTeXt interface | | But these formats should be made by default.
| Mojca Ah yes, much better! But then I still have unending the ................... metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 .................. ?? -- Jean
On Mon, May 11, 2009 at 18:31, Jean Magnan de Bornier wrote:
Le 11 mai à 17:58:32 Mojca Miklavec écrit notamment:
| Sorry, I meant | texexec --make mpost
| Though it's indeed true that you can use | mpost --mem=metafun ecindf | or the ConTeXt interface | | But these formats should be made by default.
| Mojca
Ah yes, much better!
But then I still have unending the ................... metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 metafun 2009-5-11 18:30 ..................
Which command does that evil? They both seem to work here ... Mojca
Le 11 mai à 18:52:08 Mojca Miklavec
| Which command does that evil? They both seem to work here ... mpost, texexec --mpgraphic, mpost -mem=metafun.mem, all three of them! -- Jean
On Mon, May 11, 2009 at 19:33, Jean Magnan de Bornier wrote:
Le 11 mai à 18:52:08 Mojca Miklavec écrit notamment:
| > But then I still have unending the | > ................... | > metafun 2009-5-11 18:30 | > metafun 2009-5-11 18:30 | > metafun 2009-5-11 18:30 | > metafun 2009-5-11 18:30 | > metafun 2009-5-11 18:30 | > metafun 2009-5-11 18:30 | > metafun 2009-5-11 18:30 | > metafun 2009-5-11 18:30 | > ..................
| Which command does that evil? They both seem to work here ...
mpost, texexec --mpgraphic, mpost -mem=metafun.mem, all three of them!
I don't understand. Can you please post the whole log. You cannot get metafun warnings when running just "mpost" unless something is set up in some really weird way. I could imagine that there could be some infinite loop in some metafun macro, but I cannot imagine why mpost would fall into infinite loop. Mojca
Le 11 mai à 20:02:36 Mojca Miklavec
| I don't understand. Can you please post the whole log. You cannot get | metafun warnings when running just "mpost" unless something is set up | in some really weird way. I could imagine that there could be some | infinite loop in some metafun macro, but I cannot imagine why mpost | would fall into infinite loop. I have stopped compilation after no more than 30 seconds, the log is 14MB large with many lines: ............................ 06:25 jean@boldair /home/jean/graph % wc -l ecindf.log 644385 ecindf.log ............................ After eliminating duplicates, here it is: .................................. This is MetaPost, version 1.200 (kpathsea version 3.5.7dev) (mem=metafun 2009.05.11) 11 MAY 2009 19:56 **cindf (/home/jean/context/tex/texmf-context/metapost/context/base/metafun.mp (/home/jean/context/tex/texmf-context/metapost/context/base/mp-tool.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-spec.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-core.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-page.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-text.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-txts.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-shap.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-butt.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-char.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-step.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-grph.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-figs.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-mlib.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-grid.mp) (/home/jean/context/tex/texmf-context/metapost/context/base/mp-func.mp)) (/home/jean/context/tex/texmf/metapost/base/graph.mp) [1 Warning: cannot open font map file psfonts.map ] [2] [3 Warning: cannot open font map file psfonts.map ] [4] [5] [6] [7 Warning: cannot open font map file psfonts.map ] [8] [9] [10 Warning: cannot open font map file psfonts.map ] [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] metafun 2009-5-11 19:56 metafun 2009- ................................ I had noticed the warning but have no idea what it leads to... tia -- Jean
Jean Magnan de Bornier wrote:
Le 11 mai à 20:02:36 Mojca Miklavec
écrit notamment: | > | Which command does that evil? They both seem to work here ... | > | > mpost, texexec --mpgraphic, mpost -mem=metafun.mem, all three of them! | I don't understand. Can you please post the whole log. You cannot get | metafun warnings when running just "mpost" unless something is set up | in some really weird way. I could imagine that there could be some | infinite loop in some metafun macro, but I cannot imagine why mpost | would fall into infinite loop.
I have stopped compilation after no more than 30 seconds, the log is 14MB large with many lines:
It looks like you should also post ecindf.mp so we can try for ourselves (or did I miss that?). Best wishes, Taco
Le 12 mai à 09:42:29 Taco Hoekwater
| It looks like you should also post ecindf.mp so we can try for | ourselves (or did I miss that?). OK, here's a test file that works as expected: ........................... numeric u; u=.5cm; path AX; AX = drawdblarrow (10u,0) -- (0,0) -- (0,10u); beginfig(1); draw AX; label.lft(btex Coûts, prix etex rotated 90, (-.2u,8u)); label.bot(btex Quantités etex, (8u,0)); for i=0 step u until 9u: draw (i,u/20)--(i,0); draw (u/20,i)--(0,i); endfor; picture ax; ax := currentpicture; endfig; ............................ No need for metafun here, but for other pictures I use it; and if I add « input metafun;» at the top I get the unending message! -- Jean
On Tue, 12 May 2009, Jean Magnan de Bornier wrote:
Le 12 mai à 09:42:29 Taco Hoekwater
écrit notamment: | Jean Magnan de Bornier wrote: | > Le 11 mai à 20:02:36 Mojca Miklavec
écrit notamment: | > | > | > | Which command does that evil? They both seem to work here ... | > | > | > | > mpost, texexec --mpgraphic, mpost -mem=metafun.mem, all three of them! | > | I don't understand. Can you please post the whole log. You cannot get | > | metafun warnings when running just "mpost" unless something is set up | > | in some really weird way. I could imagine that there could be some | > | infinite loop in some metafun macro, but I cannot imagine why mpost | > | would fall into infinite loop. | > | > I have stopped compilation after no more than 30 seconds, the log is 14MB | > large with many lines: | It looks like you should also post ecindf.mp so we can try for | ourselves (or did I miss that?).
OK, here's a test file that works as expected:
Can you post a file that fails at your end? Aditya
Le 12 mai à 16:32:26 Aditya Mahajan
Jean Magnan de Bornier wrote:
Le 12 mai à 16:32:26 Aditya Mahajan
écrit notamment: | Can you post a file that fails at your end?
here, but it doesn't *fail*, it produces ecindf.1 ok but then shows infinitely this message.
I cannot reproduce this problem. To make sure it is not a mem file version differencne, can you delete and regenerate mpost.mem ? Best wishes, Taco
Le 12 mai à 17:53:48 Taco Hoekwater
Jean Magnan de Bornier wrote:
Le 12 mai à 17:53:48 Taco Hoekwater
écrit notamment: | I cannot reproduce this problem. To make sure it is not a mem file | version differencne, can you delete and regenerate mpost.mem ?
I followed this, nothing better! Then I tried to delete also metafun.mem and that worked! (btw remaking mpost format didn't create metafun.mem again, it doesn't seem to miss...)
That doesn't seem to make any sense, but I am glad the problem has gone away. Best wishes, Taco
Le 13 mai à 08:45:36 Taco Hoekwater
Le 11 mai à 19:33:01 Jean Magnan de Bornier
| | > But then I still have unending the | | > ................... | | > metafun 2009-5-11 18:30 | | > metafun 2009-5-11 18:30 | | > metafun 2009-5-11 18:30 | | > metafun 2009-5-11 18:30 | | > metafun 2009-5-11 18:30 | | > metafun 2009-5-11 18:30 | | > metafun 2009-5-11 18:30 | | > metafun 2009-5-11 18:30 | | > .................. | > | | Which command does that evil? They both seem to work here ...
| mpost, texexec --mpgraphic, mpost -mem=metafun.mem, all three of them! I had to make the format for mptopdf too, and it doesn't work: same endless message, but before success :-( -- Jean
Mojca Miklavec wrote:
On Mon, May 11, 2009 at 17:14, Jean Magnan de Bornier wrote:
Hi all, Trying to use mpost with (today's) minimals, I get this answer: ................................... 16:55 jean@boldair /home/jean/graph % mpost ecindf
Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file! ...................................
Do I have to make formats or something for mpost to work?
texexec --make metafun
But I should probably check what goes wrong as this format should have been generated automatically.
Hans, in the source code there is states.set("formats.cont-en", true) states.set("formats.cont-nl", true) states.set("formats.metafun", true) Maybe mpost should be added there as well (though I didn't test yet if that indeed helps).
maybe ... if someone is using mp directly in context -) in luatex/mkiv formats are generated on the fly ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Mon, May 11, 2009 at 19:01, Hans Hagen wrote:
Mojca Miklavec wrote:
states.set("formats.metafun", true) Maybe mpost should be added there as well (though I didn't test yet if that indeed helps).
maybe ... if someone is using mp directly in context -)
in luatex/mkiv formats are generated on the fly
I know, but metapost generates the format on the fly only in TeX Live (with mktexfmt I think), not in minimals, so it would be really nice of us to generate the format during installation already. Mojca
On Mon, 11 May 2009, Jean Magnan de Bornier wrote:
Hi all, Trying to use mpost with (today's) minimals, I get this answer: ................................... 16:55 jean@boldair /home/jean/graph % mpost ecindf
Sorry, I can't find that mem file; will try PLAIN. I can't find the PLAIN mem file! ...................................
Do I have to make formats or something for mpost to work?
You can also use the texexec interface (which uses metafun format) texexec --mpgraphic file.mp Aditya
participants (6)
-
Aditya Mahajan
-
Hans Hagen
-
Jean Magnan de Bornier
-
Mojca Miklavec
-
Peter Rolf
-
Taco Hoekwater