Re: [NTG-context] Re: presentations in ConTeXt
Thanks Hans! What about a small refresher about \interactionbar cum suis. Could you post a minimal example of what is needed to get output from it? I tried with a couple of combinations of \setupinteraction[state=start] and \setupinteractionbar [alternative=d] etc, but I'm not getting any output on my pdf's. I'd be very grateful! Best Thomas On Jul 17, 2005, at 11:10 PM, Hans Hagen wrote: Thomas A. Schmitz wrote: 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 if you want access to those variables (some of them only make sense at pag ebuilding time) you need to say: LoadPageState ; (this is done automatically in StartPage ... StopPage) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: presentations in ConTeXt
Thomas A. Schmitz wrote: Thanks Hans! What about a small refresher about \interactionbar cum suis. Could you post a minimal example of what is needed to get output from it? I tried with a couple of combinations of \setupinteraction[state=start] and \setupinteractionbar [alternative=d] etc, but I'm not getting any output on my pdf's. I'd be very grateful! there are some examples or usage in the presentation styles grep interactionbar s-pre* s-pre-01.tex:%D {interactionbar} s-pre-01.tex: {\interactionbar[alternative=f,width=.5\makeupwidth,height=1 ex]} s-pre-01.tex:%D {setupinteractionbar, interactionbuttons} s-pre-01.tex:\setupinteractionbar s-pre-04.tex:%D {setupinteractionbar} s-pre-04.tex:\setupinteractionbar s-pre-04.tex: [\interactionbar] s-pre-04.tex:%Dsetupbackgrounds,setupinteraction,setupinteractionbar, s-pre-04.tex: \setupinteractionbar[state=stop] s-pre-04.tex: \setupinteractionbar[state=start] s-pre-05.tex: \setupinteractionbar[state=stop] s-pre-05.tex: \setupinteractionbar[state=start] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: presentations in ConTeXt
Thanks again, Hans! I just figured out how to do it by experimenting with s-pre-01.tex. The key was \setuplayout[bottom=12pt] % or some dimension Without it, I'd get no bar, but now it works, and it looks just amazing! I'm looking forward to my next presentation!! Best Thomas On Jul 19, 2005, at 8:23 PM, Hans Hagen wrote: there are some examples or usage in the presentation styles grep interactionbar s-pre* s-pre-01.tex:%D {interactionbar} s-pre-01.tex: {\interactionbar[alternative=f,width=.5 \makeupwidth,height=1 ex]} s-pre-01.tex:%D {setupinteractionbar, interactionbuttons} s-pre-01.tex:\setupinteractionbar s-pre-04.tex:%D {setupinteractionbar} s-pre-04.tex:\setupinteractionbar s-pre-04.tex: [\interactionbar] s-pre-04.tex:%D setupbackgrounds,setupinteraction,setupinteractionbar, s-pre-04.tex: \setupinteractionbar[state=stop] s-pre-04.tex: \setupinteractionbar[state=start] s-pre-05.tex: \setupinteractionbar[state=stop] s-pre-05.tex: \setupinteractionbar[state=start] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: presentations in ConTeXt
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
Re: [NTG-context] Re: presentations in ConTeXt
Thomas A. Schmitz wrote: 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 if you want access to those variables (some of them only make sense at pag ebuilding time) you need to say: LoadPageState ; (this is done automatically in StartPage ... StopPage) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: presentations in ConTeXt
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 := (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
Re: [NTG-context] Re: presentations in ConTeXt
Mojca, I think I never actually said thanks for this wonderful trick you taught us! It's wonderful, and I'm still experimenting with it. For the time being, it's still very much trial and error to position the circle, but I'll learn. 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. Thanks a lot, and all best Thomas On Jun 28, 2005, at 4:37 PM, Mojca Miklavec wrote: Patrick Gundlach wrote: So, do you get any real output (besides the image)? I cannot see any circles in the pdf. ConTeXt ver: 2005.06.07 fmt: 2005.6.7 int: english mes: english Patrick I get this PDF (page size adapted to 10x11.5 cm) with not-the-very-latest-version of ConTeXt. ConTeXt ver: 2005.05.30 fmt: 2005.6.13 int: english mes: english Mojca CircleTheLion.pdf CircleTheLion.tex ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: presentations in ConTeXt
Some time ago, Mojca Miklavec [EMAIL PROTECTED] wrote: Uau! Thanks a lot for a very nice hint. So you can make something like that: -- \setupcolors[state=start] \starttext \setupMPvariables[CircleSomething][dimension={(100,100)},center={(50,50)},r=10] \startuseMPgraphic{CircleSomething} pair dimension, center; % TODO: this also has to be passed as parameter!!! % now it stands for: width=10cm scale := 10cm/(xpart \MPvar{dimension}); picture bboxpicture; dimension := \MPvar{dimension} scaled scale; center := \MPvar{center} scaled scale; r := \MPvar{r}*scale; pickup pencircle scaled 2pt; % proper bounding box fill unitsquare xyscaled dimension; bboxpicture := currentpicture; currentpicture := nullpicture; draw fullcircle scaled (2*r) shifted center withcolor red; setbounds currentpicture to boundingbox bboxpicture; \stopuseMPgraphic \defineoverlay[CircleBlueTulip][\uniqueMPgraphic{CircleSomething}{dimension={(400,460)},center={(222,460-330)},r=25}] \defineoverlay[CircleRedTulip][\useMPgraphic{CircleSomething}{dimension={(400,460)},center={(148,460-330)},r=25}] \framed[background={foreground,CircleBlueTulip},offset=0pt,strut=no]{\externalfigure[Kochloewe_c][width=10cm]} \framed[background={foreground,CircleRedTulip},offset=0pt,strut=no]{\externalfigure[Kochloewe_c][width=10cm]} \stoptext -- So, do you get any real output (besides the image)? I cannot see any circles in the pdf. ConTeXt ver: 2005.06.07 fmt: 2005.6.7 int: english mes: english Patrick -- ConTeXt wiki and more: http://contextgarden.net ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: presentations in ConTeXt
Patrick Gundlach wrote: So, do you get any real output (besides the image)? I cannot see any circles in the pdf. ConTeXt ver: 2005.06.07 fmt: 2005.6.7 int: english mes: english Patrick I get this PDF (page size adapted to 10x11.5 cm) with not-the-very-latest-version of ConTeXt. ConTeXt ver: 2005.05.30 fmt: 2005.6.13 int: english mes: english Mojca CircleTheLion.pdf Description: Adobe PDF document CircleTheLion.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: presentations in ConTeXt
Mojca Miklavec wrote: Patrick Gundlach wrote: So, do you get any real output (besides the image)? I cannot see any circles in the pdf. ConTeXt ver: 2005.06.07 fmt: 2005.6.7 int: english mes: english Patrick I get this PDF (page size adapted to 10x11.5 cm) with not-the-very-latest-version of ConTeXt. isn't there some use/unique mix up as well? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: presentations in ConTeXt
Hans Hagen wrote: Mojca Miklavec wrote: Patrick Gundlach wrote: So, do you get any real output (besides the image)? I cannot see any circles in the pdf. ConTeXt ver: 2005.06.07 fmt: 2005.6.7 int: english mes: english Patrick I get this PDF (page size adapted to 10x11.5 cm) with not-the-very-latest-version of ConTeXt. isn't there some use/unique mix up as well? I compiled the file attached in Mojca's mail. Except that I do not have the Kochloewe_c picture it works. So I get the gray dummy background and on each page a red circle. Although there is the mentioned mix up it seems not to harm the result. After changing the use of the command it still works. This test was performed with Context january 2005 and Pdfetex ...20a. Willi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: presentations in ConTeXt
Hello, in additon to the just posted mail I can say, that it works also under Context latest and pdfetex ...1.20a Willi Hans Hagen wrote: Mojca Miklavec wrote: Patrick Gundlach wrote: So, do you get any real output (besides the image)? I cannot see any circles in the pdf. ConTeXt ver: 2005.06.07 fmt: 2005.6.7 int: english mes: english Patrick I get this PDF (page size adapted to 10x11.5 cm) with not-the-very-latest-version of ConTeXt. isn't there some use/unique mix up as well? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context