ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Funny error
       [not found] <1173.209.209.17.51.1060109368.squirrel@webmail.inreach.com >
@ 2003-08-05 21:02 ` Hans Hagen
  2003-08-05 23:09   ` darnold
  2003-08-06  5:34   ` darnold
  0 siblings, 2 replies; 4+ messages in thread
From: Hans Hagen @ 2003-08-05 21:02 UTC (permalink / raw)


At 11:49 05/08/2003 -0700, darnold@northcoast.com wrote:
>All,
>
>This from the Metafun manual:
>
>\setupoutput[pdf]

this runs ok here both in

   texexec testfile

   texexec testfile --automp

maybe you have an old metafun format? (watch out, metafun code moved down 
to /metapost/context/base)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

* Re: Funny error
  2003-08-05 21:02 ` Funny error Hans Hagen
@ 2003-08-05 23:09   ` darnold
  2003-08-06  5:34   ` darnold
  1 sibling, 0 replies; 4+ messages in thread
From: darnold @ 2003-08-05 23:09 UTC (permalink / raw)


Hans,

No luck, even after reinstalling first with:

http://www.pragma-ade.com/context/cont-tmf.zip

and then with:

http://www.pragma-ade.com/context/beta/cont-tmf.zip

Before unzipping the installations, I deleted c:\texmf\metapost\context
and c:\texmf\tex\context\base. Then I unzipped the distribution, refreshed
the filename database, and built the formats with:

texexec --make --alone

After which I had to move metafun.mem to c:\localtexmf\miktex\config\mem
and refresh the filename database again.

I still got the same error.

One point may be a problem? The first time I tried to update my context, I
got an error message that the pool size was to small, so I enlarged to the
following in miktex.ini.

;; Maximum number of characters in strings, including all
;; error messages and help texts, and the names of all fonts and
;; control sequences; must exceed string_vacancies by the total
;; length of TeX's own strings, which is currently about 23000.
pool_size=1000000

I didn't rebuild any latex or other formats. I went straight to texexec
--make --alone.

Could that be the problem?



> At 11:49 05/08/2003 -0700, darnold@northcoast.com wrote:
>>All,
>>
>>This from the Metafun manual:
>>
>>\setupoutput[pdf]
>
> this runs ok here both in
>
>    texexec testfile
>
>    texexec testfile --automp
>
> maybe you have an old metafun format? (watch out, metafun code moved
> down  to /metapost/context/base)
>
> Hans
> -------------------------------------------------------------------------
>                                    Hans Hagen | PRAGMA ADE |
> pragma@wxs.nl
>                        Ridderstraat 27 | 8061 GH Hasselt | The
> Netherlands
>   tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 |
> www.pragma-ade.com
> -------------------------------------------------------------------------
>                         information:
> http://www.pragma-ade.com/roadmap.pdf
>                      documentation:
> http://www.pragma-ade.com/showcase.pdf
> -------------------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Funny error
  2003-08-05 21:02 ` Funny error Hans Hagen
  2003-08-05 23:09   ` darnold
@ 2003-08-06  5:34   ` darnold
  1 sibling, 0 replies; 4+ messages in thread
From: darnold @ 2003-08-06  5:34 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 3105 bytes --]

Hans,

We'll I've tried all that I can think of. I've:

1. Downloaded and installed the latest version of Miktex 2.3.

With the fresh installation, which includes Context, I tried compiling:

\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

No go. Same error. Then I downloaded the latest beta from
www.pragma-ade.com, installed, refreshed. All the usual things you do. I
checked to see if I had duplicated copies of metafun.mem on my system (no)
and I checked to see if the format files were actually getting updated
(they were---I checked timestamps) and in the correct place (again yes,
though I had to manually move metafun.mem and refresh the filename
database). Still the same error.

>> unknown picture p
>> textext.rt
! Equation cannot be performed (unknown picture=numeric).
<to be read again>
                   (
l.211 p:=textext.rt(
                    "\hbox spread 1em {\hss \strut Zapf (1)\hss }");
?


Help.

> At 11:49 05/08/2003 -0700, darnold@northcoast.com wrote:
>>All,
>>
>>This from the Metafun manual:
>>
>>\setupoutput[pdf]
>
> this runs ok here both in
>
>    texexec testfile
>
>    texexec testfile --automp
>
> maybe you have an old metafun format? (watch out, metafun code moved
> down  to /metapost/context/base)
>
> Hans
> -------------------------------------------------------------------------
>                                    Hans Hagen | PRAGMA ADE |
> pragma@wxs.nl
>                        Ridderstraat 27 | 8061 GH Hasselt | The
> Netherlands
>   tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 |
> www.pragma-ade.com
> -------------------------------------------------------------------------
>                         information:
> http://www.pragma-ade.com/roadmap.pdf
>                      documentation:
> http://www.pragma-ade.com/showcase.pdf
> -------------------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context



[-- Attachment #2: meta.log --]
[-- Type: application/octet-stream, Size: 2099 bytes --]

This is pdfeTeX, Version 3.141592-1.11a-2.1 (MiKTeX 2.3) (preloaded format=cont-en 2003.8.5)  5 AUG 2003 22:32
entering extended mode
**meta.tex
(meta.tex{pdftex.cfg}

ConTeXt  ver: 2003.7.21  fmt: 2003.8.5  int: english  mes: english

language       : language en is active
<protectionstate 0>
system         : cont-new loaded
(C:\texmf\tex\context\base\cont-new.tex
systems        : beware: some patches loaded from cont-new.tex!
)
system         : cont-old loaded
(C:\texmf\tex\context\base\cont-old.tex
loading        : Context Old Macros
)
system         : cont-fil loaded
(C:\texmf\tex\context\base\cont-fil.tex
loading        : Context File Synonyms
)
bodyfont       : 12pt rm is loaded
language       : patterns 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 7:2-it-2 8:2-nl-2
 loaded
specials       : tex,postscript,rokicki loaded
system         : meta.top loaded
(./meta.top
specials       : loading definition file tpd
(C:\texmf\tex\context\base\spec-tpd.tex
specials       : loading definition file fdf
(C:\texmf\tex\context\base\spec-fdf.tex <unprotect 3> <unprotect 4>
system (E-TEX) : [line 1910] \ifcsname 
<protect 4> <protect 3>)
specials       : fdf loaded
<unprotect 3> <protect 3>)
specials       : fdf,tpd loaded
)
pdftex         : needs map file: original-context-symbol.map
pdftex         : needs map file: pl0-ams-cmr.map
pdftex         : needs map file: original-vogel-symbol.map
specials       : loading definition file tpd
(C:\texmf\tex\context\base\spec-tpd.tex
specials       : loading definition file fdf
(C:\texmf\tex\context\base\spec-fdf.tex <unprotect 3>
system (E-TEX) : [line 1910] \ifcsname 
<protect 3>)
specials       : fdf loaded
)
specials       : fdf,tpd loaded
color          : system rgb is global activated
(./meta.tuo) (./meta.tuo) (./meta.tuo) (./meta.tuo) (./meta.tuo) (./meta.tuo)
(./meta.tuo) (./meta.tuo) (./meta.tuo) (./meta.tuo) (./meta.tuo) (./meta.tuo)
(./meta.tuo) (./meta.tuo)
systems        : begin file meta at line 30
systems        : randomizer starts with 1583423546
system(mpost  mpgraph)...

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

* Funny error
@ 2003-08-05 18:49 darnold
  0 siblings, 0 replies; 4+ messages in thread
From: darnold @ 2003-08-05 18:49 UTC (permalink / raw)


All,

This from the Metafun manual:

\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

Is producing this "funny" error:

>> unknown picture p
>> textext.rt
! Equation cannot be performed (unknown picture=numeric).
<to be read again>
                   (
l.211 p:=textext.rt(
                    "\hbox spread 1em {\hss \strut Zapf (1)\hss }");
?

Any ideas?

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

end of thread, other threads:[~2003-08-06  5:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1173.209.209.17.51.1060109368.squirrel@webmail.inreach.com >
2003-08-05 21:02 ` Funny error Hans Hagen
2003-08-05 23:09   ` darnold
2003-08-06  5:34   ` darnold
2003-08-05 18:49 darnold

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