Hello, I'm having some trouble with MPgraphics; here is a minimal example: ............................. \setupoutput[pdftex] \runMPgraphicstrue \setuppapersize[S6][S6] \setupcolors[state=start] \startMPinclusions numeric u; u=.8cm; path AX; AX = drawdblarrow (10u,0) -- (0,0) -- (0,10u); \stopMPinclusions \starttext \startuseMPgraphic{dummy} pickup pencircle scaled 1mm; draw AX withcolor blue; label.rt(textext("$3x^2+\pi$"), (5u,6u)); \stopuseMPgraphic \placefigure[left]{bla.bla}{\useMPgraphic{dummy}} \input dawkins \stoptext ............................. After compilation with texexec I get "unknown" instead of the expected label. What is wrong with me? TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeXk, 3.141592-1.30.4-2.2 (Web2C 7.5.5) context : ver: 2005.10.27 cont-en : ver: 2005.10.27 fmt: 2006.4.28 mes: english Thanks ia -- Jean
draw + drawdblarrow = ?! \setupoutput[pdftex] \runMPgraphicstrue \setuppapersize[S6][S6] \setupcolors[state=start] \startMPinclusions numeric u; u=.8cm; path AX; AX = (10u,0) -- (0,0) -- (0,10u); \stopMPinclusions \starttext \startuseMPgraphic{dummy} pickup pencircle scaled 1mm; drawdblarrow AX withcolor blue; label.rt(textext("$3x2+\pi$"), (5u,6u)); \stopuseMPgraphic \placefigure[left]{bla.bla}{\useMPgraphic{dummy}} \input dawkins \stoptext works... Cheers, Renaud Jean Magnan de Bornier a écrit :
Hello, I'm having some trouble with MPgraphics; here is a minimal example: ............................. \setupoutput[pdftex] \runMPgraphicstrue \setuppapersize[S6][S6]
\setupcolors[state=start]
\startMPinclusions numeric u; u=.8cm; path AX; AX = drawdblarrow (10u,0) -- (0,0) -- (0,10u); \stopMPinclusions
\starttext \startuseMPgraphic{dummy}
pickup pencircle scaled 1mm; draw AX withcolor blue; label.rt(textext("$3x^2+\pi$"), (5u,6u)); \stopuseMPgraphic
\placefigure[left]{bla.bla}{\useMPgraphic{dummy}}
\input dawkins \stoptext .............................
After compilation with texexec I get "unknown" instead of the expected label.
What is wrong with me?
TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeXk, 3.141592-1.30.4-2.2 (Web2C 7.5.5) context : ver: 2005.10.27 cont-en : ver: 2005.10.27 fmt: 2006.4.28 mes: english
Thanks ia
Hi Jean Magnan, You should add \useMPlibrary[txt] in order to get textext working. Further define AX as a path only. In the dummy-graphic say drawdblarrow AX.withcolor blue; After these changes I got the label as well as the double arrow. Kind regards Willi Jean Magnan de Bornier wrote:
Hello, I'm having some trouble with MPgraphics; here is a minimal example: ............................. \setupoutput[pdftex] \runMPgraphicstrue \setuppapersize[S6][S6]
\setupcolors[state=start]
\startMPinclusions numeric u; u=.8cm; path AX; AX = drawdblarrow (10u,0) -- (0,0) -- (0,10u); \stopMPinclusions
\starttext \startuseMPgraphic{dummy}
pickup pencircle scaled 1mm; draw AX withcolor blue; label.rt(textext("$3x^2+\pi$"), (5u,6u)); \stopuseMPgraphic
\placefigure[left]{bla.bla}{\useMPgraphic{dummy}}
\input dawkins \stoptext .............................
After compilation with texexec I get "unknown" instead of the expected label.
What is wrong with me?
TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeXk, 3.141592-1.30.4-2.2 (Web2C 7.5.5) context : ver: 2005.10.27 cont-en : ver: 2005.10.27 fmt: 2006.4.28 mes: english
Thanks ia
Hi Jean Magnan,
You should add \useMPlibrary[txt] in order to get textext working. Further define AX as a path only. In the dummy-graphic say drawdblarrow AX.withcolor blue;
After these changes I got the label as well as the double arrow. Hi,
Le 26 mai à 18:10:43 Willi Egger
On 26 mai 2006, at 22:24, Jean Magnan de Bornier wrote:
Le 26 mai à 18:10:43 Willi Egger
écrit notamment: Hi Jean Magnan,
You should add \useMPlibrary[txt] in order to get textext working. Further define AX as a path only. In the dummy-graphic say drawdblarrow AX.withcolor blue;
After these changes I got the label as well as the double arrow. Hi, thanks to you and Renaud; I changed my file to this: [....]
Hi, Actually I tried your file and got the same "Undefined" message in place of the graphics. However the following works for me (latest ConTeXt installed with i- Installer on Mac OS X 10.4.6): \setuppapersize[S6][S6] \setupcolors[state=start] \starttext \startbuffer[essai] numeric u; u = .4cm; path p; p = (10u,0)--(0,0)--(0,10u); pickup pencircle scaled .8mm; drawdblarrow p withcolor red; label.rt(textext("$3x^2+\pi$"), (5u,6u)); \stopbuffer \placefigure[left]{bla.bla}{\processMPbuffer[essai]} \input dawkins \stoptext If I add \useMPlibrary[txt] at the beginning everything works fine as well. But if I add \runMPgraphicstrue then I get the "Undefined" message in the PDF. So it seems that the problem comes from this latter command. Best regards: OK
Le 27 mai à 00:06:16 Otared Kavian
On 26 mai 2006, at 22:24, Jean Magnan de Bornier wrote:
Le 26 mai à 18:10:43 Willi Egger
écrit notamment: Hi Jean Magnan,
You should add \useMPlibrary[txt] in order to get textext working. Further define AX as a path only. In the dummy-graphic say drawdblarrow AX.withcolor blue;
After these changes I got the label as well as the double arrow. Hi, thanks to you and Renaud; I changed my file to this: [....]
Hi,
Actually I tried your file and got the same "Undefined" message in place of the graphics. However the following works for me (latest ConTeXt installed with i- Installer on Mac OS X 10.4.6):
\setuppapersize[S6][S6] \setupcolors[state=start]
\starttext \startbuffer[essai] numeric u; u = .4cm; path p; p = (10u,0)--(0,0)--(0,10u); pickup pencircle scaled .8mm; drawdblarrow p withcolor red; label.rt(textext("$3x^2+\pi$"), (5u,6u)); \stopbuffer
\placefigure[left]{bla.bla}{\processMPbuffer[essai]} \input dawkins \stoptext
If I add \useMPlibrary[txt] at the beginning everything works fine as well. But if I add \runMPgraphicstrue then I get the "Undefined" message in the PDF. So it seems that the problem comes from this latter command. Hi all, I tried various ways as suggested on my file with the setups \useMPlibrary[txt] and \runMPgraphicstrue. The only combination that's working is to have \useMPlibrary[txt] and not the other. Is it proper to my installation, as others seem to have other requirements?
As for "texmfstart texexec" it is unknown on my machine, I don't have ruby installed anyway (is it necessary?). Thanks to all! -- jean
On Fri, 26 May 2006, Jean Magnan de Bornier wrote:
Le 26 mai à 18:10:43 Willi Egger
écrit notamment: Hi Jean Magnan,
You should add \useMPlibrary[txt] in order to get textext working. Further define AX as a path only. In the dummy-graphic say drawdblarrow AX.withcolor blue;
After these changes I got the label as well as the double arrow. Hi, thanks to you and Renaud; I changed my file to this: ................................... \setupoutput[pdftex] \runMPgraphicstrue \useMPlibrary[txt]
\setuppapersize[S6][S6] \setupcolors[state=start]
\startMPinclusions numeric u; u=.8cm; path AX; AX=(10u,0)--(0,0)--(0,10u); \stopMPinclusions \starttext \startuseMPgraphic{dummy} pickup pencircle scaled .8mm; drawdblarrow AX withcolor green; label.rt(textext("$3x^2+\pi$"), (5u,6u)); \stopuseMPgraphic
\placefigure[left]{bla.bla}{\useMPgraphic{dummy}} \input dawkins \stoptext ...................................
I get the same "unknown" in place of the label. On computer one (my everyday machine) context is provided by TeX-Live, and I made the same experiment with my computer two where context is installed via TeTeX. Same result on both!
This file compiles fine here (Windows XP + ConTeXt ver: 2006.05.17 10:08). I get proper text in the right location.
I Think I have followed normal installation procedures (enabling write18 etc.) So I'm confused Thanks for any more help!
Your first message said that you were running texexec.pl. Try switching to texexec.rb, i.e., invoke context with texmfstart texexec <filename> Aditya
Aditya Mahajan wrote:
On Fri, 26 May 2006, Jean Magnan de Bornier wrote:
Le 26 mai � 18:10:43 Willi Egger
�crit notamment: Hi Jean Magnan,
You should add \useMPlibrary[txt] in order to get textext working. Further define AX as a path only. In the dummy-graphic say drawdblarrow AX.withcolor blue;
After these changes I got the label as well as the double arrow.
Hi, thanks to you and Renaud; I changed my file to this: ................................... \setupoutput[pdftex] \runMPgraphicstrue \useMPlibrary[txt]
\setuppapersize[S6][S6] \setupcolors[state=start]
\startMPinclusions numeric u; u=.8cm; path AX; AX=(10u,0)--(0,0)--(0,10u); \stopMPinclusions \starttext \startuseMPgraphic{dummy} pickup pencircle scaled .8mm; drawdblarrow AX withcolor green; label.rt(textext("$3x^2+\pi$"), (5u,6u)); \stopuseMPgraphic
\placefigure[left]{bla.bla}{\useMPgraphic{dummy}} \input dawkins \stoptext ...................................
I get the same "unknown" in place of the label. On computer one (my everyday machine) context is provided by TeX-Live, and I made the same experiment with my computer two where context is installed via TeTeX. Same result on both!
This file compiles fine here (Windows XP + ConTeXt ver: 2006.05.17 10:08). I get proper text in the right location.
I Think I have followed normal installation procedures (enabling write18 etc.) So I'm confused Thanks for any more help!
Your first message said that you were running texexec.pl. Try switching to texexec.rb, i.e., invoke context with
texmfstart texexec <filename>
the file compiles ok here textext is scanned for (but you can force it with \forceMPTEXgraphictrue) This is what supp-mps defined: \forceMPTEXcheck{etex} \forceMPTEXcheck{textext} \forceMPTEXcheck{graphictext} Hans ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Humble I got this one wrong! Willi Aditya Mahajan wrote:
On Fri, 26 May 2006, Willi Egger wrote:
Hi Jean Magnan,
You should add \useMPlibrary[txt] in order to get textext working.
Why is this so? I could not find anything in meta-txt.tex to suggest that it is needed for textext. The example works even without \useMPlibrary[txt].
Aditya
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (6)
-
Aditya Mahajan
-
Hans Hagen
-
Jean Magnan de Bornier
-
Otared Kavian
-
Renaud AUBIN
-
Willi Egger