From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21431 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: Re: presentations in ConTeXt Date: Sun, 17 Jul 2005 21:54:51 +0200 Message-ID: <6E7CB668-55CB-42CD-BAD4-F58C3EEC5983@uni-bonn.de> References: <9EA19B5C-0590-49C8-B397-0DDF02B0E53F@uni-bonn.de> <6faad9f005052410333139b7f2@mail.gmail.com> <429378DC.407@seznam.cz> <6faad9f005052413547f1e774f@mail.gmail.com> <6faad9f0050628073767e019bf@mail.gmail.com> <32E92F94-02D4-4A1E-A350-6F3CFF2FDD1A@uni-bonn.de> <6faad9f0050715124647ba63fa@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121630171 30572 80.91.229.2 (17 Jul 2005 19:56:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2005 19:56:11 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 17 21:56:08 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DuFEr-0000ei-9m for gctc-ntg-context-518@m.gmane.org; Sun, 17 Jul 2005 21:55:49 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 173FC127B3; Sun, 17 Jul 2005 21:55:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22825-01-3; Sun, 17 Jul 2005 21:55:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 30C3C1278D; Sun, 17 Jul 2005 21:55:45 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 32EB21278D for ; Sun, 17 Jul 2005 21:55:44 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22825-01-2 for ; Sun, 17 Jul 2005 21:55:43 +0200 (CEST) Original-Received: from mailout05.sul.t-online.com (mailout05.sul.t-online.com [194.25.134.82]) by ronja.ntg.nl (Postfix) with ESMTP id 367761278A for ; Sun, 17 Jul 2005 21:55:43 +0200 (CEST) Original-Received: from fwd30.aul.t-online.de by mailout05.sul.t-online.com with smtp id 1DuFEk-0001Lp-00; Sun, 17 Jul 2005 21:55:42 +0200 Original-Received: from [192.168.0.2] (rIafxOZLreShKwjudBYQCt42IuEEyillPfF7Cq5315LAGWkfjK3Mws@[84.177.45.189]) by fwd30.sul.t-online.de with esmtp id 1DuFET-0dkwPA0; Sun, 17 Jul 2005 21:55:25 +0200 In-Reply-To: <6faad9f0050715124647ba63fa@mail.gmail.com> Original-To: Mojca Miklavec , mailing list for ConTeXt users X-Mailer: Apple Mail (2.733) X-ID: rIafxOZLreShKwjudBYQCt42IuEEyillPfF7Cq5315LAGWkfjK3Mws@t-dialin.net X-TOI-MSGID: 1cae4991-f2d6-45af-bfc2-edc6b326d5d1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21431 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21431 Mojca, thanks again, that's a useful trick! However, there is a command \interactionbar which seems to provide this functionality, and there is \setupinteractionbar, but the commands are somewhat underdocumented :-) At least, I don't get any visible output on my slides when I include them; there seems to be some kind of secret... (Your code doesn't compile here, it dies with this message: This is MetaPost, Version 0.641 (Web2C 7.5.4) (p-mpgraph.mp >> NOfPages-2 ! Unknown relation will be considered false. ) l.118 if(NOfPages > 2) and (PageNumber > 0): fraction := (PageNumber-1)/(NOf... ? Thanks, and best Thomas On Jul 15, 2005, at 9:46 PM, Mojca Miklavec wrote: > Do you mean those "funny little things" which run from the beginning > to the end as the presentation runs from the first towards the last > slide? > > There are "PageNumber" and "NOfPages" variables defined somewhere in > metafun. So you can say something like: > > if(NOfPages > 2) and (PageNumber > 0): > fraction := (PageNumber-1)/(NOfPages-1) > else: > fraction := 1; > fi; > > And then you can do with it whatever you want. You can for example > change slide colour: > > SlideColour := fraction[\MPcolor[my color 1],\MPcolor[my color > 2]]; > > or draw a progress bar: > > fill unisquare xscaled fraction xyscaled size withcolor red; > draw unitsquare xyscaled size; > > An alternative are \pageno and \lastpage, defined inside ConTeXt. > > Hope this helps, > Mojca >