From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80119 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: how to implement buttons, navigator in context's presentation Date: Mon, 7 Jan 2013 19:12:45 +0100 Message-ID: <2B6798EF-11B8-475A-AEDE-54DB52E0549F@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: multipart/mixed; boundary="===============1218869792==" X-Trace: ger.gmane.org 1357582370 27646 80.91.229.3 (7 Jan 2013 18:12:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2013 18:12:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 07 19:13:07 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TsHC4-0001jh-11 for gctc-ntg-context-518@m.gmane.org; Mon, 07 Jan 2013 19:13:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3B880101FD; Mon, 7 Jan 2013 19:12:48 +0100 (CET) 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 LKqvJhMzu6hX; Mon, 7 Jan 2013 19:12:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CDFE4101E7; Mon, 7 Jan 2013 19:12:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 50609101E7 for ; Mon, 7 Jan 2013 19:12:45 +0100 (CET) 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 ltoKNBxlb4Er for ; Mon, 7 Jan 2013 19:12:44 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 404A0101E5 for ; Mon, 7 Jan 2013 19:12:44 +0100 (CET) Original-Received: from mail-bk0-f52.google.com (mail-bk0-f52.google.com [209.85.214.52]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r07IChpN022498 for ; Mon, 7 Jan 2013 19:12:43 +0100 Original-Received: by mail-bk0-f52.google.com with SMTP id w5so8629492bku.11 for ; Mon, 07 Jan 2013 10:12:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:content-type:message-id:mime-version:subject:date :references:to:in-reply-to:x-mailer; bh=F3WWTwDvQAfbNLwiFzgm4vHt0oUxnjPcm19HGPdk5lw=; b=eenclv0tHbWpQgaqNa6T15nQZ01AF/dMVacUfPneS5LL4TwNJSKqGjUb4hi3EhHml5 tji+8SH+AIaMNo0shNx/rSmwF42f4/Yfm4wKcOd4dg22WI3fe1Sn/+dzPeaqhkmQ1CZq z4RPxCXZrDyWB4Fa0xFawwRGjDRJz4QDOgESdB4ctC3T3zKZ6pYU23BIYN65N/KmmDzt urv0FymmCp/Lwy7h4E9/ov5wB+spV7pkKQe4B5OWwgpv4gsAPXZiYPoR/NBNGCoEBdtJ 1gcHfwA6z5VyEPhq631JR+vo/10Fm7sDk2MKxgZcIBP9UZoA5gingnCO1Crjg0NW6XuP 1EOQ== X-Received: by 10.204.4.131 with SMTP id 3mr29999329bkr.25.1357582362920; Mon, 07 Jan 2013 10:12:42 -0800 (PST) Original-Received: from keima.localdomain (nrbg-4d072cae.pool.mediaWays.net. [77.7.44.174]) by mx.google.com with ESMTPS id y11sm43300397bkw.8.2013.01.07.10.12.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 07 Jan 2013 10:12:42 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.52; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VIJ6cHJu - 0dea0f127403 - 20130107 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:80119 Archived-At: --===============1218869792== Content-Type: multipart/alternative; boundary="Apple-Mail=_013C092C-DEB9-4390-97B9-DC768E88973A" --Apple-Mail=_013C092C-DEB9-4390-97B9-DC768E88973A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Am 07.01.2013 um 18:33 schrieb =E5=9C=9F=E5=8D=9C=E7=9A=BF = : > hi, all > in Hans Hagen's "Metafun context mkiv" page 208, there is some = buttons example, I want to know how to implement a complete buttons in = context, Thanks in advance! >=20 > another, in Presentations (screen documents), there is three = examples, but they are not able to be compiled by the latest context = version 2012.12.28 20:30, I hope to get some advanced examples Can be a problem with uniqueMPgraphic because useMPgraphic works. \startuseMPgraphic{wrong or right} pickup pencircle scaled 3pt ; path p ; p :=3D unitsquare xscaled OverlayWidth yscaled OverlayHeight ; fill p withcolor .8white ; draw p withcolor .625red ; \stopuseMPgraphic \defineoverlay[button][\useMPgraphic{wrong or right}] \setupbuttons[background=3Dbutton,frame=3Doff] \setupinteraction[state=3Dstart] \starttext \completecontent \page \hbox {\button {previous} [previouspage]\quad \button {next} [nextpage]\quad \button {index} [index]\quad \button {table of contents} [content]} \completeindex \stoptext Wolfgang --Apple-Mail=_013C092C-DEB9-4390-97B9-DC768E88973A Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 pengcz.nwpu@gmail.com>:=
hi, all
   in Hans Hagen's "Metafun = context mkiv" page 208, there is some buttons example, I want to = know how to implement a complete buttons in context, Thanks in = advance!

  another, in Presentations (screen documents), = there is three examples, but they are not able to be compiled by the = latest context version 2012.12.28 20:30, I hope to get some advanced = examples

Can be a problem with uniqueMPgraphic = because useMPgraphic = works.

\startuseMPgraphic{wrong or = right}
= pickup pencircle scaled 3pt ;
path p ; = p :=3D unitsquare
xscaled OverlayWidth = yscaled OverlayHeight ;
fill p withcolor .8white = ;
= draw p withcolor .625red = ;
\stopuseMPgraphic

\defineoverlay[butt= on][\useMPgraphic{wrong or = right}]
\setupbuttons[background=3Dbutton,frame=3Doff]

\setupinteraction[state=3Dstart]

= \starttext

\completecontent

<= div>\page

\hbox
  {\button = {previous}         =  [previouspage]\quad
   \button {next}   =           =  [nextpage]\quad
   \button {index}   =           [index]\quad
  =  \button {table of contents} = [content]}

\completeindex

\stoptext

Wolfgang

= --Apple-Mail=_013C092C-DEB9-4390-97B9-DC768E88973A-- --===============1218869792== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1218869792==--