ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Textext Question
@ 2006-05-26 15:17 Jean Magnan de Bornier
  2006-05-26 15:46 ` Renaud AUBIN
  2006-05-26 16:10 ` Willi Egger
  0 siblings, 2 replies; 10+ messages in thread
From: Jean Magnan de Bornier @ 2006-05-26 15:17 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Textext Question
  2006-05-26 15:17 Textext Question Jean Magnan de Bornier
@ 2006-05-26 15:46 ` Renaud AUBIN
  2006-05-26 16:10 ` Willi Egger
  1 sibling, 0 replies; 10+ messages in thread
From: Renaud AUBIN @ 2006-05-26 15:46 UTC (permalink / raw)


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
>  
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Textext Question
  2006-05-26 15:17 Textext Question Jean Magnan de Bornier
  2006-05-26 15:46 ` Renaud AUBIN
@ 2006-05-26 16:10 ` Willi Egger
  2006-05-26 20:24   ` Jean Magnan de Bornier
  2006-05-26 23:19   ` Aditya Mahajan
  1 sibling, 2 replies; 10+ messages in thread
From: Willi Egger @ 2006-05-26 16:10 UTC (permalink / raw)


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
>   

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Textext Question
  2006-05-26 16:10 ` Willi Egger
@ 2006-05-26 20:24   ` Jean Magnan de Bornier
  2006-05-26 22:06     ` Otared Kavian
  2006-05-26 22:57     ` Aditya Mahajan
  2006-05-26 23:19   ` Aditya Mahajan
  1 sibling, 2 replies; 10+ messages in thread
From: Jean Magnan de Bornier @ 2006-05-26 20:24 UTC (permalink / raw)


Le 26 mai à 18:10:43 Willi Egger <w.egger@boede.nl> é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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Textext Question
  2006-05-26 20:24   ` Jean Magnan de Bornier
@ 2006-05-26 22:06     ` Otared Kavian
  2006-05-27  6:18       ` Jean Magnan de Bornier
  2006-05-26 22:57     ` Aditya Mahajan
  1 sibling, 1 reply; 10+ messages in thread
From: Otared Kavian @ 2006-05-26 22:06 UTC (permalink / raw)



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

> Le 26 mai à 18:10:43 Willi Egger <w.egger@boede.nl> é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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Textext Question
  2006-05-26 20:24   ` Jean Magnan de Bornier
  2006-05-26 22:06     ` Otared Kavian
@ 2006-05-26 22:57     ` Aditya Mahajan
  2006-05-27 12:07       ` Hans Hagen
  1 sibling, 1 reply; 10+ messages in thread
From: Aditya Mahajan @ 2006-05-26 22:57 UTC (permalink / raw)


On Fri, 26 May 2006, Jean Magnan de Bornier wrote:

> Le 26 mai à 18:10:43 Willi Egger <w.egger@boede.nl> é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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Textext Question
  2006-05-26 16:10 ` Willi Egger
  2006-05-26 20:24   ` Jean Magnan de Bornier
@ 2006-05-26 23:19   ` Aditya Mahajan
  2006-05-27 18:09     ` Willi Egger
  1 sibling, 1 reply; 10+ messages in thread
From: Aditya Mahajan @ 2006-05-26 23:19 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Textext Question
  2006-05-26 22:06     ` Otared Kavian
@ 2006-05-27  6:18       ` Jean Magnan de Bornier
  0 siblings, 0 replies; 10+ messages in thread
From: Jean Magnan de Bornier @ 2006-05-27  6:18 UTC (permalink / raw)


Le 27 mai à 00:06:16 Otared Kavian <otared@gmail.com> écrit notamment:

> On 26 mai 2006, at 22:24, Jean Magnan de Bornier wrote:
>
>> Le 26 mai à 18:10:43 Willi Egger <w.egger@boede.nl> é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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Textext Question
  2006-05-26 22:57     ` Aditya Mahajan
@ 2006-05-27 12:07       ` Hans Hagen
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2006-05-27 12:07 UTC (permalink / raw)


Aditya Mahajan wrote:
> On Fri, 26 May 2006, Jean Magnan de Bornier wrote:
>
>   
>> Le 26 mai � 18:10:43 Willi Egger <w.egger@boede.nl> �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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Textext Question
  2006-05-26 23:19   ` Aditya Mahajan
@ 2006-05-27 18:09     ` Willi Egger
  0 siblings, 0 replies; 10+ messages in thread
From: Willi Egger @ 2006-05-27 18:09 UTC (permalink / raw)


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
>   

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-05-27 18:09 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-26 15:17 Textext Question Jean Magnan de Bornier
2006-05-26 15:46 ` Renaud AUBIN
2006-05-26 16:10 ` Willi Egger
2006-05-26 20:24   ` Jean Magnan de Bornier
2006-05-26 22:06     ` Otared Kavian
2006-05-27  6:18       ` Jean Magnan de Bornier
2006-05-26 22:57     ` Aditya Mahajan
2006-05-27 12:07       ` Hans Hagen
2006-05-26 23:19   ` Aditya Mahajan
2006-05-27 18:09     ` Willi Egger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).