Re: [NTG-context] mplib errors

2008-10-01 Thread Taco Hoekwater
Hi Olivier, Olivier wrote: Btw: could you add in the doc a simple example of how to set up an mplib instance (loading the format file) and typesetting a minimal graphic, and then use it from within plain TeX for instance; this is transparent to conTeXt users since there are files like

Re: [NTG-context] mplib errors

2008-10-01 Thread Olivier
Hi Taco, Running mplib is easy enough to document, but that is only a part of the work: you also have to convert the image to pdf literals, and that is more work than I would like to put in the manual. OK. It could be nice then to simply state this? Anyway, attached is a bunch of

Re: [NTG-context] mplib errors

2008-10-01 Thread Taco Hoekwater
Hi Olivier and Hans, Olivier wrote: Thanks a lot for these. With these hints I am now able to compile metapost figs from conTeXt through texexec --luatex normaly. To this end, I had to perform two tweaks: * the files mlib-run.lua, mlib-ctx.lua, and mlib-pdf.lua were *NEVER* loaded so

Re: [NTG-context] mplib errors

2008-10-01 Thread Olivier
Taco, Wouldn't that mean that $ luatools mlib-pdf.lua also fails to find the files? luatools --generate should be able to fix that. Indeed luatools mlib-pdf.lua fails to find the file. However luatools --generate does not help. I'll investigate why. This should be fixable by simply

Re: [NTG-context] mplib errors

2008-09-30 Thread Taco Hoekwater
Hans van der Meer wrote: I think this proves the file in my case is indeed the 01-04-08 02:14 one. A shame, really. If the file was wrong, there was a chance to catch the bug. As it stands, I am still just as dumbfounded as I was before. Best wishes, Taco

Re: [NTG-context] mplib errors

2008-09-30 Thread Olivier
Hi Luigi, I found really easy to install minimals under ubuntu (just download first-setup.sh), so I can have one sandbox of mkiv+luatex stable and one for beta . Why don't you give it a try ? (don't forget to update to latest luatex) I'm sure minimals are worth a try. But as I stated

Re: [NTG-context] mplib errors

2008-09-30 Thread luigi scarso
On Tue, Sep 30, 2008 at 10:54 AM, Olivier [EMAIL PROTECTED] wrote: Hi Luigi, I found really easy to install minimals under ubuntu (just download first-setup.sh), so I can have one sandbox of mkiv+luatex stable and one for beta . Why don't you give it a try ? (don't forget to update to

Re: [NTG-context] mplib errors

2008-09-30 Thread Ulrike Fischer
Am Mon, 29 Sep 2008 17:55:15 +0200 schrieb Olivier: mplib : loading format: metafun.mp, name: /home/olivier/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en-metafun.mem mplib : version mismatch: mp_parent_version 2008.05.21 15:21 mplib :

Re: [NTG-context] mplib errors

2008-09-30 Thread Olivier
Hi Ulrike, Quoting Ulrike Fischer : -- was [EMAIL PROTECTED] on Sep 30, 2008 at 11:27:08 -- Am Mon, 29 Sep 2008 17:55:15 +0200 schrieb Olivier: mplib : loading format: metafun.mp, name:

Re: [NTG-context] mplib errors

2008-09-30 Thread Olivier
Hi Taco, Quoting Taco Hoekwater : -- was [EMAIL PROTECTED] on Sep 29, 2008 at 11:27:03 -- Olivier wrote: What is the executable that is triggered by a call to mplib? (I would like to check I have it installed, not only mpost.) There isn't one, it is all internal to luatex's

Re: [NTG-context] mplib errors

2008-09-30 Thread Taco Hoekwater
Olivier wrote: So, I guess it would make sense to test the compiler directly: what is the most basic way to trigger mplib from a plain tex file directly run through LuaTeX (i.e. the equivalent of the startMPgraphic if any? (And this might provide some more information on what's going on.)

Re: [NTG-context] mplib errors

2008-09-30 Thread Ulrike Fischer
Am Tue, 30 Sep 2008 11:37:13 +0200 schrieb Olivier: Do you get still this regeneration message or has it disappeared? If not I would say the format generation was not successfull. Indeed, this format gets regenerated every time. Is there a way to genereate it separatly? I don't know ;-(.

Re: [NTG-context] mplib errors

2008-09-30 Thread Hans Hagen
Ulrike Fischer wrote: Am Tue, 30 Sep 2008 11:37:13 +0200 schrieb Olivier: Do you get still this regeneration message or has it disappeared? If not I would say the format generation was not successfull. Indeed, this format gets regenerated every time. Is there a way to genereate it

Re: [NTG-context] mplib errors

2008-09-30 Thread Hans Hagen
Ulrike Fischer wrote: Am Mon, 29 Sep 2008 17:55:15 +0200 schrieb Olivier: mplib : loading format: metafun.mp, name: /home/olivier/luatex-cache/context/6300afb4995fe38c77e9b86ed1ef1028/formats/cont-en-metafun.mem mplib : version mismatch: mp_parent_version 2008.05.21

Re: [NTG-context] mplib errors

2008-09-30 Thread Olivier
Taco, So, I guess it would make sense to test the compiler directly: what is the most basic way to trigger mplib from a plain tex file directly run through LuaTeX (i.e. the equivalent of the startMPgraphic if any? (And this might provide some more information on what's going on.) Just

[NTG-context] mplib errors

2008-09-29 Thread Olivier
Dear all, I'm using ConTeXt MkIV on Debian with the following version: ConTeXt ver: 2008.05.21 15:21 MKIV fmt: 2008.8.4 int: english/english Everything seems to work well (I am able to run lua code, use otf font facilities, etc...) but the mplib mechanism. Indeed, running through the

Re: [NTG-context] mplib errors

2008-09-29 Thread luigi scarso
On Mon, Sep 29, 2008 at 5:55 PM, Olivier [EMAIL PROTECTED] wrote: Dear all, I'm using ConTeXt MkIV on Debian with the following version: ConTeXt ver: 2008.05.21 15:21 MKIV fmt: 2008.8.4 int: english/english Everything seems to work well (I am able to run lua code, use otf font

Re: [NTG-context] mplib errors

2008-09-29 Thread Olivier
Hi Luigi, \starttext \startMPcode path p ; p := fullcircle scaled 4cm ; fill p withcolor red ; fill p shifted(2cm,0cm) withcolor blue ; \stopMPcode \stoptext I have prepended \setupcolors[state=start] This is indeed required to get the color but my problem

Re: [NTG-context] mplib errors

2008-09-29 Thread Hans van der Meer
Olivier: What system do you use? I am using MacOSX and in july this year I mailed about the error below: mplib : making format: metafun.mp, name: /Users/hans/TeX/ luatex-cache/context/60e9a4b67d8fc84c21043806bb9e2fb8/formats/cont- en-metafun.mem mplib : loading format:

Re: [NTG-context] mplib errors

2008-09-29 Thread Taco Hoekwater
Hi, To both of you: Hans van der Meer wrote: /usr/local/texlive/2007/texmf-context/metapost/context/base/mp-tool.mp Olivier wrote: /usr/share/texmf/metapost/context/base/mp-tool.mp Can you guys check if these are the correct versions of mp-tool.mp ? The problem could be as basal as mp

Re: [NTG-context] mplib errors

2008-09-29 Thread Olivier
Hi Taco, Hans van der Meer wrote: /usr/local/texlive/2007/texmf-context/metapost/context/base/mp-tool.mp Olivier wrote: /usr/share/texmf/metapost/context/base/mp-tool.mp Can you guys check if these are the correct versions of mp-tool.mp ? The problem could be as basal as mp

Re: [NTG-context] mplib errors

2008-09-29 Thread Taco Hoekwater
Olivier wrote: What is the executable that is triggered by a call to mplib? (I would like to check I have it installed, not only mpost.) There isn't one, it is all internal to luatex's executable. There are no external executables and no config files involved, and that is what makes these

Re: [NTG-context] mplib errors

2008-09-29 Thread luigi scarso
On Mon, Sep 29, 2008 at 9:44 PM, Olivier [EMAIL PROTECTED] wrote: Hi Luigi, \starttext \startMPcode path p ; p := fullcircle scaled 4cm ; fill p withcolor red ; fill p shifted(2cm,0cm) withcolor blue ; \stopMPcode \stoptext I have prepended

Re: [NTG-context] mplib errors

2008-09-29 Thread Hans van der Meer
Hi Taco, I did kpsewhich mp-tool.mp and it came up with /usr/local/texlive/ 2007/texmf-context/metapost/context/base/mp-tool.mp. That file has in my system creation+modification date 01-04-08 02:14 and was last opened 03-07-08 so this must be it. Came straight from unpacking the context