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
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context