![](https://secure.gravatar.com/avatar/72a25e5a86c2a62398bb1d0dbc12c973.jpg?s=120&d=mm&r=g)
Hans, comments below:
At 10:04 07/08/2003 -0700, you wrote:
Hans, as a simple test, I tried saving the following as junk.mp.
input mp-tool; beginfig(1); picture p; p:=textext.rt("Hello, world!"); endfig; end.
However,
C:\temp>mpost junk (junk.mp (C:\texmf\metapost\context\base\mp-tool.mp)
unknown picture p textext.rt ! Equation cannot be performed (unknown picture=numeric). <to be read again> ( l.7 p:=textext.rt( "Hello, world!");
you should use/load metafun -)
But I have. Indeed, I completely updated Miktex, downloaded the latest Context, refreshed filename database, then ran: texexec --make --alone This rebuilds cont-en.efmt, cont-nl.efmt, and mptopdf.efmt. You can see they are new by their timestamps (08/07/2003 09:38 AM). Directory of C:\localtexmf\miktex\fmt 10/07/2002 11:34 PM <DIR> . 10/07/2002 11:34 PM <DIR> .. 11/28/2000 12:55 PM 909,544 pdflatex.fmt 08/05/2003 09:52 PM 437,192 omega.fmt 11/28/2000 12:55 PM 897,952 elatex.efmt 08/05/2003 09:52 PM 395,368 pdftex.fmt 11/28/2000 12:55 PM 926,688 lambda.fmt 08/05/2003 09:52 PM 416,704 etex.efmt 11/28/2000 12:55 PM 891,640 latex.fmt 08/05/2003 09:52 PM 376,968 plain.fmt 12/11/2002 11:05 PM 556,792 amstex.fmt 08/07/2003 09:38 AM 1,100 metafun.log 08/07/2003 09:38 AM 31,032 cont-en.log 08/07/2003 09:38 AM 32,231 cont-nl.log 08/07/2003 09:38 AM 5,373,040 cont-nl.efmt 08/07/2003 09:38 AM 3,809 mptopdf.log 08/07/2003 09:38 AM 322,768 mptopdf.efmt 08/07/2003 09:38 AM 5,319,424 cont-en.efmt 16 File(s) 16,892,252 bytes 2 Dir(s) 3,497,959,424 bytes free The command texexec --make --alone also builds metafun.mem in this same directory. It has to be moved by hand to a different directory. C:\localtexmf\miktex\mem>dir Volume in drive C has no label. Volume Serial Number is F803-A135 Directory of C:\localtexmf\miktex\mem 10/07/2002 11:34 PM <DIR> . 10/07/2002 11:34 PM <DIR> .. 08/05/2003 09:52 PM 99,480 plain.mem 08/05/2003 09:52 PM 106,240 mfplain.mem 08/07/2003 09:38 AM 506,752 metafun.mem 3 File(s) 712,472 bytes 2 Dir(s) 3,497,959,424 bytes free But again, brand new. All databases are refreshed after this move. There are no other versions of these format files on my system (I checked). I've even tried texexec --make --alone --tex=pdfetex metafun and moved the resulting metafun.mem file over and refreshed the database. On this file: input mp-tool; beginfig(1); picture p; p:=textext.rt("Hello, world!"); endfig; end. I still get this error: C:\temp>mpost junk (junk.mp (C:\texmf\metapost\context\base\mp-tool.mp)
unknown picture p textext.rt ! Equation cannot be performed (unknown picture=numeric). <to be read again> ( l.7 p:=textext.rt( "Hello, world!"); ?
I am aware of the new placement of /metapost/context/base. C:\texmf\metapost>dir Volume in drive C has no label. Volume Serial Number is F803-A135 Directory of C:\texmf\metapost 10/07/2002 11:27 PM <DIR> . 10/07/2002 11:27 PM <DIR> .. 08/05/2003 03:30 PM <DIR> context 08/05/2003 09:47 PM <DIR> base 0 File(s) 0 bytes 4 Dir(s) 3,497,893,888 bytes free C:\texmf\metapost\base>dir Volume in drive C has no label. Volume Serial Number is F803-A135 Directory of C:\texmf\metapost\base 08/05/2003 09:47 PM <DIR> . 08/05/2003 09:47 PM <DIR> .. 09/07/2000 02:01 PM 7,106 boxes.mp 09/07/2000 02:01 PM 7,146 format.mp 09/07/2000 02:01 PM 27,660 graph.mp 09/07/2000 02:01 PM 4,280 marith.mp 09/07/2000 02:01 PM 19,748 mfplain.mp 03/23/1997 01:16 AM 19 mpost.mp 09/07/2000 02:01 PM 16,018 plain.mp 09/07/2000 02:01 PM 1,098 rboxes.mp 09/07/2000 02:01 PM 1,466 sarith.mp 09/07/2000 02:01 PM 794 string.mp 09/07/2000 02:01 PM 331 TEX.mp 09/07/2000 02:01 PM 424 texnum.mp 01/24/1997 08:28 PM 230 troffnum.mp 13 File(s) 86,320 bytes 2 Dir(s) 3,497,893,888 bytes free So, I am absolutely stumped. Is there anything else I can try?
![](https://secure.gravatar.com/avatar/72a25e5a86c2a62398bb1d0dbc12c973.jpg?s=120&d=mm&r=g)
Nigel et al, OK> Nigel's suggestion compiled. Now, back to where this question originated. This file: \setupoutput[pdf] \runMPgraphicstrue \setupcolors[state=start] \startuseMPgraphic{FunnyFrame} picture p; numeric w, h, o; p:=textext.rt(\MPstring{FunnyFrame}); w:=OverlayWidth; h:=OverlayHeight; o:=BodyFontSize; p:=p shifted (2o,h-ypart center p); draw p; drawoptions (withpen pencircle scaled 1pt withcolor .625red); draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p, h) ; draw boundingbox p; setbounds currentpicture to unitsquare xyscaled (w,h); \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][frame=off,background=FunnyFrame] \def\StartFrame{\startFunnyText} \def\StopFrame{\stopFunnyText} \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em {\hss\strut#1\hss}}} \setMPtext{FunnyFrame}{} \starttext \FrameTitle{Zapf (1)} \StartFrame Coming back to the use of typefaces in electronic publishing: many of the new typographers receive their knowledge and information about the rules of typography from books, from computer magazines or the instruction manuals which they get with the purchase of a PC or software. \StopFrame \stoptext When saved as meta.tex and compiled with texexec --pdf meta, gives this error: (mpgraph.mp (C:\texmf\metapost\context\base\mp-tool.mp) (C:\texmf\metapost\context\base\mp-spec.mp) (C:\texmf\metapost\context\base\mp-grph.mp) (C:\texmf\metapost\context\base\mp-page.mp) (C:\texmf\metapost\context\base\mp-core.mp)
unknown picture p textext.rt ! Equation cannot be performed (unknown picture=numeric). <to be read again> ( l.223 p:=textext.rt( "\hbox spread 1em {\hss \strut Zapf (1)\hss }");
Nigel, does this file give same error on your system, or does it compile? Thanks.
you should use/load metafun -)
But I have. Indeed, I completely updated Miktex, downloaded the latest Context, refreshed filename database, then ran: You need input metafun ; Early in junk.mp -- Nigel
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
![](https://secure.gravatar.com/avatar/331902f4bde5e73f4eeac8719040822f.jpg?s=120&d=mm&r=g)
Friday, August 8, 2003 darnold@northcoast.com wrote: dnc> I am aware of the new placement of /metapost/context/base. dnc> C:\texmf\metapost>dir dnc> Volume in drive C has no label. dnc> Volume Serial Number is F803-A135 dnc> Directory of C:\texmf\metapost dnc> 10/07/2002 11:27 PM <DIR> . dnc> 10/07/2002 11:27 PM <DIR> .. dnc> 08/05/2003 03:30 PM <DIR> context dnc> 08/05/2003 09:47 PM <DIR> base dnc> 0 File(s) 0 bytes dnc> 4 Dir(s) 3,497,893,888 bytes free dnc> C:\texmf\metapost\base>dir dnc> Volume in drive C has no label. dnc> Volume Serial Number is F803-A135 dnc> Directory of C:\texmf\metapost\base dnc> 08/05/2003 09:47 PM <DIR> . dnc> 08/05/2003 09:47 PM <DIR> .. dnc> 09/07/2000 02:01 PM 7,106 boxes.mp dnc> 09/07/2000 02:01 PM 7,146 format.mp dnc> 09/07/2000 02:01 PM 27,660 graph.mp dnc> 09/07/2000 02:01 PM 4,280 marith.mp dnc> 09/07/2000 02:01 PM 19,748 mfplain.mp dnc> 03/23/1997 01:16 AM 19 mpost.mp dnc> 09/07/2000 02:01 PM 16,018 plain.mp dnc> 09/07/2000 02:01 PM 1,098 rboxes.mp dnc> 09/07/2000 02:01 PM 1,466 sarith.mp dnc> 09/07/2000 02:01 PM 794 string.mp dnc> 09/07/2000 02:01 PM 331 TEX.mp dnc> 09/07/2000 02:01 PM 424 texnum.mp dnc> 01/24/1997 08:28 PM 230 troffnum.mp dnc> 13 File(s) 86,320 bytes dnc> 2 Dir(s) 3,497,893,888 bytes free Uh ... that's metapost/base, not metapost/context/base Make sure you have nothing but the /base/ subfolder under metapost/context -- Giuseppe "Oblomov" Bilotta
![](https://secure.gravatar.com/avatar/72a25e5a86c2a62398bb1d0dbc12c973.jpg?s=120&d=mm&r=g)
Giuseppe, Comments below.
Friday, August 8, 2003 darnold@northcoast.com wrote:
dnc> I am aware of the new placement of /metapost/context/base.
dnc> C:\texmf\metapost>dir dnc> Volume in drive C has no label. dnc> Volume Serial Number is F803-A135
dnc> Directory of C:\texmf\metapost
dnc> 10/07/2002 11:27 PM <DIR> . dnc> 10/07/2002 11:27 PM <DIR> .. dnc> 08/05/2003 03:30 PM <DIR> context dnc> 08/05/2003 09:47 PM <DIR> base dnc> 0 File(s) 0 bytes dnc> 4 Dir(s) 3,497,893,888 bytes free
dnc> C:\texmf\metapost\base>dir dnc> Volume in drive C has no label. dnc> Volume Serial Number is F803-A135
dnc> Directory of C:\texmf\metapost\base
dnc> 08/05/2003 09:47 PM <DIR> . dnc> 08/05/2003 09:47 PM <DIR> .. dnc> 09/07/2000 02:01 PM 7,106 boxes.mp dnc> 09/07/2000 02:01 PM 7,146 format.mp dnc> 09/07/2000 02:01 PM 27,660 graph.mp dnc> 09/07/2000 02:01 PM 4,280 marith.mp dnc> 09/07/2000 02:01 PM 19,748 mfplain.mp dnc> 03/23/1997 01:16 AM 19 mpost.mp dnc> 09/07/2000 02:01 PM 16,018 plain.mp dnc> 09/07/2000 02:01 PM 1,098 rboxes.mp dnc> 09/07/2000 02:01 PM 1,466 sarith.mp dnc> 09/07/2000 02:01 PM 794 string.mp dnc> 09/07/2000 02:01 PM 331 TEX.mp dnc> 09/07/2000 02:01 PM 424 texnum.mp dnc> 01/24/1997 08:28 PM 230 troffnum.mp dnc> 13 File(s) 86,320 bytes dnc> 2 Dir(s) 3,497,893,888 bytes free
Uh ... that's metapost/base, not metapost/context/base
Make sure you have nothing but the /base/ subfolder under metapost/context
That is the case: C:\texmf\metapost\context>dir Volume in drive C has no label. Volume Serial Number is F803-A135 Directory of C:\texmf\metapost\context 08/05/2003 03:30 PM <DIR> . 08/05/2003 03:30 PM <DIR> .. 08/05/2003 10:12 PM <DIR> base 0 File(s) 0 bytes 3 Dir(s) 3,444,121,600 bytes free
participants (3)
-
darnold@northcoast.com
-
Giuseppe Bilotta
-
Nigel King