From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53156 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Metafun problem Date: Sat, 26 Sep 2009 08:58:41 +0200 Message-ID: References: <83E52024-A7CB-4ACD-9814-0C4E853B7D88@suddenlink.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1112889958==" X-Trace: ger.gmane.org 1253948342 13727 80.91.229.12 (26 Sep 2009 06:59:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Sep 2009 06:59:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 26 08:58:55 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1MrRF8-0001vF-UA for gctc-ntg-context-518@m.gmane.org; Sat, 26 Sep 2009 08:58:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 474E1C9AB7; Sat, 26 Sep 2009 08:58:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VFnCHjir4RXT; Sat, 26 Sep 2009 08:58:48 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 95107C9A90; Sat, 26 Sep 2009 08:58:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 53DFEC9A90 for ; Sat, 26 Sep 2009 08:58:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id aNkRxgD513GR for ; Sat, 26 Sep 2009 08:58:41 +0200 (CEST) Original-Received: from mail-ew0-f221.google.com (mail-ew0-f221.google.com [209.85.219.221]) by balder.ntg.nl (Postfix) with ESMTP id B9464C9A1F for ; Sat, 26 Sep 2009 08:58:41 +0200 (CEST) Original-Received: by ewy21 with SMTP id 21so3039141ewy.8 for ; Fri, 25 Sep 2009 23:58:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=STf03QM1AD3JctYe/KvIRmomhdXfPm7o6ThSWyUvmWY=; b=bVYkMmNea8aPCF+nl582c+48BrpKIwpdLM/xGc8m22u8MA7yDOuJ3pYHT9CShCQpbS dlOQhIuWnJ5KwJZzLWTrc7BTz1J4PQj+BbR4Kf//pjziYJ0xRcgYQ0nUw+G6Z9KU5DRj SadBgche7kZ64rIgEFP6xMcB/2I/Ggl08gI6A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bmKKFzKoK4bC0tg6Joghha350KMkBjC4j1Et2HZ47LkX6Sf0HO/QjLoz0k0CWmko89 0pGd0R936khc2iREMhuNwW7LH+Yv5Oz5HWB9TWTG5TQDBAe8pT0Kr58r1ChDR5K+vclt xhIWHi/keYpZU3azg6W+hYGOyzNhFOt1cHk7M= Original-Received: by 10.216.37.135 with SMTP id y7mr259380wea.127.1253948321519; Fri, 25 Sep 2009 23:58:41 -0700 (PDT) In-Reply-To: <83E52024-A7CB-4ACD-9814-0C4E853B7D88@suddenlink.net> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:53156 Archived-At: --===============1112889958== Content-Type: multipart/alternative; boundary=0016367fa77c455a5a047475983a --0016367fa77c455a5a047475983a Content-Type: text/plain; charset=UTF-8 On Sat, Sep 26, 2009 at 7:16 AM, David Arnold wrote: > All, > > I've got the context minimals installed and I'm compiling the following > (from the new Metafun manual) using MKIV: > > \startuniqueMPgraphic{name} > path p; > p:=unitsquare xscaled OverlayWidth yscaled OverlayHeight; > fill p withcolor .625yellow; > draw p withcolor .625red; > \stopuniqueMPgraphic > > \starttext > Hello, World! > > \defineoverlay[my graphic][\uniqueMPgraphic{name}] > \button[background=my graphic,frame=off]{Go Home}[firstpage] > > \stoptext > > No button shows up. Am I missing something? > > \startuniqueMPgraphic{name} path p; p:=unitsquare xscaled OverlayWidth yscaled OverlayHeight; fill p withcolor .625yellow; draw p withcolor .625red; \stopuniqueMPgraphic I don't know. \framed works \starttext Hello, World! \defineoverlay[my graphic][\uniqueMPgraphic{name}] \button[background={my graphic},frame=off]{Go Home}[firstpage] \framed[background={my graphic},frame=off]{framed Go Home} \stoptext test-arnold.tex (END) > David > > ___________________________________________________________________________________ > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > -- luigi --0016367fa77c455a5a047475983a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Sat, Sep 26, 2009 at 7:16 AM, David A= rnold <dw= arnold45@suddenlink.net> wrote:
All,

I've got the context minimals installed and I'm compiling the follo= wing (from the new Metafun manual) using MKIV:

\startuniqueMPgraphic{name}
=C2=A0 =C2=A0 =C2=A0 =C2=A0path p;
=C2=A0 =C2=A0 =C2=A0 =C2=A0p:=3Dunitsquare xscaled OverlayWidth yscaled Ov= erlayHeight;
=C2=A0 =C2=A0 =C2=A0 =C2=A0fill p withcolor .625yellow;
=C2=A0 =C2=A0 =C2=A0 =C2=A0draw p withcolor .625red;
\stopuniqueMPgraphic

\starttext
Hello, World!

\defineoverlay[my graphic][\uniqueMPgraphic{name}]
\button[background=3Dmy graphic,frame=3Doff]{Go Home}[firstpage]

\stoptext

No button shows up. Am I missing something?


\startuniqueMPgraphic{name}
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 path p;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 p:=3Duni= tsquare xscaled OverlayWidth yscaled OverlayHeight;
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 fill p withcolor .625yellow;
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 draw p withcolor .625red;
\stopuniqueMPgraphic
I don't know.
\framed works

\starttext
Hello, World!
\defineoverlay[my graphic][\uniqueMPgraphic{name}]
\button[background= =3D{my graphic},frame=3Doff]{Go Home}[firstpage]
\framed[background=3D{m= y graphic},frame=3Doff]{framed Go Home}
\stoptext
test-arnold.tex (END)


=C2=A0
David
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =C2=A0: http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive =C2=A0: https://foundry.supelec.fr/projects/contextrev/
wiki =C2=A0 =C2=A0 : http://contextgarden.net
___________________________________________________________________________= ________



--
luigi

--0016367fa77c455a5a047475983a-- --===============1112889958== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1112889958==--