ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: <darnold@northcoast.com>
Subject: Re: Re: Simple test --Aha! Progress, Now...
Date: Fri, 8 Aug 2003 10:50:41 -0700 (PDT)	[thread overview]
Message-ID: <1223.209.209.17.64.1060365041.squirrel@webmail.inreach.com> (raw)
In-Reply-To: <BB599AEE.14163%king@dircon.co.uk>

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

  reply	other threads:[~2003-08-08 17:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1232.209.209.17.82.1060275898.squirrel@webmail.inreach.com <5.2.0.9.1.20030808094454.02df44d0@server-1.pragma-net.nl>
     [not found] ` <5.2.0.9.1.20030808094454.02df44d0@server-1.pragma-net.nl>
2003-08-08 16:19   ` Simple test darnold
2003-08-08 17:22     ` Nigel King
2003-08-08 17:50       ` darnold [this message]
2003-08-09 13:39     ` Giuseppe Bilotta
2003-08-09 16:30       ` darnold
     [not found] ` <1123.209.209.15.215.1060359563.squirrel@webmail.inreach.co m>
2003-08-08 17:58   ` Hans Hagen
2003-08-08 19:03     ` darnold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1223.209.209.17.64.1060365041.squirrel@webmail.inreach.com \
    --to=darnold@northcoast.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).