(3,0) ! Not implemented: (unknown numeric)+(pair). <to be read again> -
(3,0) ! Not implemented: (unknown numeric)+(pair). <to be read again> -
I installed ConTeXt in 2009 in my laptop and wrote some documents. Now I have installed ConTeXt in other computer and tried to process some of those documents but it doesn't work. It looks that there is something wrong with Metapost/Metafun. I have tried a simple program like \starttext Testing \startuseMPgraphic{gh} draw thelabel.rt("the right way",a) withcolor .625red ; \stopuseMPgraphic \useMPgraphic{gh} \stoptext Then I get: system > begin file kk2.tex at line 1 metapost > initializing instance 'metafun' using format 'metafun' metapost > loading 'metafun.mp' (experimental metapost version two) ! terminal: >> a thelabel->...((EXPR4)+labeloffset*laboff(SUFFIX2)- (labxf(SUFFIX2)*lrcorner.p... <*> draw thelabel.rt("the right way",a) withcolor .625red ; ; . system > tex > error on line 10 in file kk2.tex: terminal: >> a thelabel->...((EXPR4)+labeloffset*laboff(SUFFIX2)- (labxf(SUFFIX2)*lrcorner.p... <*> draw thelabel.rt("the right way",a) withcolor .625red ; ; Any ideas? Thank you.
On Mon, May 28, 2012 at 2:43 PM, Alfredo Catalina
I installed ConTeXt in 2009 in my laptop and wrote some documents. Now I have installed ConTeXt in other computer and tried to process some of those documents but it doesn't work.
It looks that there is something wrong with Metapost/Metafun. I have tried a simple program like
\starttext
Testing
\startuseMPgraphic{gh} draw thelabel.rt("the right way",a) withcolor .625red ; \stopuseMPgraphic
\useMPgraphic{gh}
\stoptext
Then I get:
(3,0) ! Not implemented: (unknown numeric)+(pair). <to be read again> -
system > begin file kk2.tex at line 1 metapost > initializing instance 'metafun' using format 'metafun' metapost > loading 'metafun.mp' (experimental metapost version two) ! terminal: >> a thelabel->...((EXPR4)+labeloffset*laboff(SUFFIX2)-
(3,0) ! Not implemented: (unknown numeric)+(pair). <to be read again> -
(labxf(SUFFIX2)*lrcorner.p... <*> draw thelabel.rt("the right way",a) withcolor .625red ; ; . system > tex > error on line 10 in file kk2.tex: terminal: >> a thelabel->...((EXPR4)+labeloffset*laboff(SUFFIX2)-
(labxf(SUFFIX2)*lrcorner.p... <*> draw thelabel.rt("the right way",a) withcolor .625red ; ;
Any ideas? Thank you.
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
What is the value of a ? This is ok with mkii \setupcolors[state=start] \starttext Testing \startuseMPgraphic{gh} pair a; a:=(0,0); draw thelabel.rt("the right way",a) withcolor .625red ; \stopuseMPgraphic \useMPgraphic{gh} \stoptext -- luigi
Sorry, that's right, it works. I forgot the definition. I have been trying some things before. In fact the problem is this: \starttext Testing \startuseMPgraphic{gh} textX:=87.51u; textY:=96.31u; pic:=thelabel.urt(btex {Test} etex scaled 1.00,(0,0)); draw pic shifted (textX, textY); \stopuseMPgraphic \useMPgraphic{gh} \stoptext And I get: ! terminal: >> pic
picture ! Equation cannot be performed (numeric=picture). <to be read again> ; <*> ...rt(rawtextext("{Test}") scaled 1.00,(0,0)); draw pic shifted (textX, ... pic (0.90863textY,textY) ! Not implemented: (unknown numeric)shifted(unknown pair). <to be read again> ; <*> ...00,(0,0)); draw pic shifted (textX, textY); ; 0.90863textY ! Undefined x coordinate has been replaced by 0. <to be read again> withpen draw->...:also(EXPR0)else:doublepath(EXPR0)withpen .currentpen.fi._op_ <to be read again> ; <*> ...00,(0,0)); draw pic shifted (textX, textY); ; textY ! Undefined y coordinate has been replaced by 0. <to be read again> withpen draw->...:also(EXPR0)else:doublepath(EXPR0)withpen .currentpen.fi._op_ <to be read again> ; <*> ...00,(0,0)); draw pic shifted (textX, textY); ; . system > tex > error on line 14 in file kk2.tex: terminal: >> pic picture ! Equation cannot be performed (numeric=picture). <to be read again> ; <*> ...rt(rawtextext("{Test}") scaled 1.00,(0,0)); draw pic shifted (textX, ... pic (0.90863textY,textY) ! Not implemented: (unknown numeric)shifted(unknown pair). <to be read again> ; <*> ...00,(0,0)); draw pic shifted (textX, textY); ; 0.90863textY ! Undefined x coordinate has been replaced by 0. <to be read again> withpen draw->...:also(EXPR0)else:doublepath(EXPR0)withpen .currentpen.fi._op_ <to be read again> ; <*> ...00,(0,0)); draw pic shifted (textX, textY); ; textY ! Undefined y coordinate has been replaced by 0. <to be read again> withpen draw->...:also(EXPR0)else:doublepath(EXPR0)withpen .currentpen.fi._op_ <to be read again> ; <*> ...00,(0,0)); draw pic shifted (textX, textY); ; ... 4 5 \startuseMPgraphic{gh} 6 7 textX:=87.51u; 8 textY:=96.31u; 9 pic:=thelabel.urt(btex {Test} etex scaled 1.00,(0,0)); 10 draw pic shifted (textX, textY); 11 12 \stopuseMPgraphic 13 14 >> \useMPgraphic{gh} 15 16 \stoptext 17 <inserted text> ...re.mp ; fi ; ;;;;]===], false)}
\processMPgraphic ...e ;\!!es , \MPaskedfigure )}} \egroup \placeMPgraphic \d... \handleuseMPgraphic ...hics \processMPgraphic {#3} \endgroup \douseMPgraphic ...{\@@MPG \currentMPgraphicname } \empty \endMPgraphicgroup <to be read again> l.14 \useMPgraphic{gh}
On 28-5-2012 15:35, Alfredo Catalina wrote:
Sorry, that's right, it works. I forgot the definition. I have been trying some things before.
In fact the problem is this:
\starttext
Testing
\startuseMPgraphic{gh}
textX:=87.51u; textY:=96.31u;
picture pic;
pic:=thelabel.urt(btex {Test} etex scaled 1.00,(0,0)); draw pic shifted (textX, textY);
\stopuseMPgraphic
\useMPgraphic{gh}
\stoptext And I get:
! terminal:>> pic
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Mon, May 28, 2012 at 3:35 PM, Alfredo Catalina
Sorry, that's right, it works. I forgot the definition. I have been trying some things before.
In fact the problem is this:
\starttext
Testing
\startuseMPgraphic{gh}
textX:=87.51u; textY:=96.31u; pic:=thelabel.urt(btex {Test} etex scaled 1.00,(0,0)); draw pic shifted (textX, textY);
\stopuseMPgraphic
\useMPgraphic{gh}
\stoptext Still something to define
\starttext Testing \startuseMPgraphic{gh} picture pic; numeric u; u:=1; textX:=87.51u; textY:=96.31u; pic:=thelabel.urt(btex {Test} etex scaled 1.00,(0,0)); draw pic shifted (textX, textY); \stopuseMPgraphic \useMPgraphic{gh} \stoptext -- luigi
participants (3)
-
Alfredo Catalina
-
Hans Hagen
-
luigi scarso