ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: Re: Re: presentations in ConTeXt
Date: Sun, 17 Jul 2005 21:54:51 +0200	[thread overview]
Message-ID: <6E7CB668-55CB-42CD-BAD4-F58C3EEC5983@uni-bonn.de> (raw)
In-Reply-To: <6faad9f0050715124647ba63fa@mail.gmail.com>

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.
<to be read again>
                    )
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
>

  reply	other threads:[~2005-07-17 19:54 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-23 17:52 Thomas A. Schmitz
2005-05-24 17:33 ` Mojca Miklavec
2005-05-24 18:56   ` Vit Zyka
2005-05-24 20:54     ` Mojca Miklavec
2005-06-28 10:58       ` Patrick Gundlach
2005-06-28 14:37         ` Mojca Miklavec
2005-06-28 15:13           ` Patrick Gundlach
2005-06-28 15:26           ` Hans Hagen
2005-06-28 15:43             ` Willi Egger
2005-06-28 17:25               ` Mojca Miklavec
2005-06-29 12:12                 ` garden art (was: presentations in ConTeXt) Henning Hraban Ramm
2005-06-28 15:47             ` Re: presentations in ConTeXt Willi Egger
2005-07-14  9:30           ` Thomas A. Schmitz
2005-07-15 19:46             ` Mojca Miklavec
2005-07-17 19:54               ` Thomas A. Schmitz [this message]
2005-07-17 21:10                 ` Hans Hagen
2005-07-19 15:18                   ` Thomas A. Schmitz
2005-07-19 16:18                     ` ConTeXt to XML? Elena Fraboschi
2005-07-19 19:57                       ` Brooks Moses
2005-07-19 20:40                         ` Hans Hagen
2005-07-19 23:26                           ` Brooks Moses
2005-07-20  7:02                             ` Help with interaction luigi.scarso
2005-07-20 11:56                               ` luigi.scarso
2005-07-20  9:25                             ` ConTeXt to XML? Hans Hagen
2005-07-19 20:57                       ` Hans Hagen
2005-07-19 21:02                       ` Hans Hagen
2005-07-19 18:23                     ` Re: presentations in ConTeXt Hans Hagen
2005-07-19 20:10                       ` Thomas A. Schmitz

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=6E7CB668-55CB-42CD-BAD4-F58C3EEC5983@uni-bonn.de \
    --to=thomas.schmitz@uni-bonn.de \
    --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).