From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21405 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Re: presentations in ConTeXt Date: Fri, 15 Jul 2005 21:46:59 +0200 Message-ID: <6faad9f0050715124647ba63fa@mail.gmail.com> 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> Reply-To: Mojca Miklavec , mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1121456857 26925 80.91.229.2 (15 Jul 2005 19:47:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2005 19:47:37 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 15 21:47:31 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 1DtW9L-0003XM-Ad for gctc-ntg-context-518@m.gmane.org; Fri, 15 Jul 2005 21:47:07 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E0C73127F0; Fri, 15 Jul 2005 21:47:05 +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 26043-01; Fri, 15 Jul 2005 21:47:01 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B6F1C127E1; Fri, 15 Jul 2005 21:47:01 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 280C9127E1 for ; Fri, 15 Jul 2005 21:47:01 +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 26034-01 for ; Fri, 15 Jul 2005 21:47:00 +0200 (CEST) Original-Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.201]) by ronja.ntg.nl (Postfix) with ESMTP id 323D9127A5 for ; Fri, 15 Jul 2005 21:46:59 +0200 (CEST) Original-Received: by nproxy.gmail.com with SMTP id n15so178933nfc for ; Fri, 15 Jul 2005 12:46:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CIH8mVnQC260ijF9sJ1fDPNm0Zxt3qCqFUl3jY962jzaq9fo7emfiNt0xmlJjuMy1c0R0gV5RNBmvv+devaNTTiRLRsUN2tKDEk6lcKGoSl0ZLHl7kHsBsrx0ed+6/dAwmq24RC9/C2qeMXwJgQeFVTctsmFN8Xzda4haEIdYtI= Original-Received: by 10.48.3.10 with SMTP id 10mr125951nfc; Fri, 15 Jul 2005 12:46:59 -0700 (PDT) Original-Received: by 10.48.247.2 with HTTP; Fri, 15 Jul 2005 12:46:59 -0700 (PDT) Original-To: mailing list for ConTeXt users In-Reply-To: <32E92F94-02D4-4A1E-A350-6F3CFF2FDD1A@uni-bonn.de> Content-Disposition: inline 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:21405 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21405 Thomas A. Schmitz wrote: > Now I'd be so happy if someone (well I guess > Hans) could teach me how to have this neat progressbar that's in pre- > color on my own slides; I don't seem to be able to isolate the code > that produces it. 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 :=3D (PageNumber-1)/(NOfPages-1) else: fraction :=3D 1; fi; And then you can do with it whatever you want. You can for example change slide colour: SlideColour :=3D 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