Re: [NTG-context] Textext Question

2006-05-27 Thread Jean Magnan de Bornier
Le 27 mai à 00:06:16 Otared Kavian [EMAIL PROTECTED] écrit notamment:

 On 26 mai 2006, at 22:24, Jean Magnan de Bornier wrote:

 Le 26 mai à 18:10:43 Willi Egger [EMAIL PROTECTED] é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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Textext Question

2006-05-27 Thread Hans Hagen
Aditya Mahajan wrote:
 On Fri, 26 May 2006, Jean Magnan de Bornier wrote:

   
 Le 26 mai � 18:10:43 Willi Egger [EMAIL PROTECTED] �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
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Textext Question

2006-05-27 Thread Willi Egger
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
   
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Textext Question

2006-05-26 Thread Renaud AUBIN
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
  


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Textext Question

2006-05-26 Thread Willi Egger
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
   
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Textext Question

2006-05-26 Thread Jean Magnan de Bornier
Le 26 mai à 18:10:43 Willi Egger [EMAIL PROTECTED] é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!

I Think I have followed  normal installation procedures (enabling write18
etc.)
So I'm confused
Thanks for any more help!
--
Jean
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Textext Question

2006-05-26 Thread Otared Kavian

On 26 mai 2006, at 22:24, Jean Magnan de Bornier wrote:

 Le 26 mai à 18:10:43 Willi Egger [EMAIL PROTECTED] é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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Textext Question

2006-05-26 Thread Aditya Mahajan
On Fri, 26 May 2006, Jean Magnan de Bornier wrote:

 Le 26 mai à 18:10:43 Willi Egger [EMAIL PROTECTED] é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
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context