diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-RainbowStripe.tex')
-rw-r--r-- | Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-RainbowStripe.tex | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-RainbowStripe.tex b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-RainbowStripe.tex index 5ca00ec6b2e..f2bf47f0933 100644 --- a/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-RainbowStripe.tex +++ b/Master/texmf-dist/tex/context/third/simpleslides/simpleslides-s-RainbowStripe.tex @@ -4,7 +4,7 @@ %D title=\CONTEXT\ Style File, %D subtitle=Presentation Module RainbowStripe, %D author=Aditya Mahajan and Thomas A. Schmitz, -%D date=\PRESTITdate, +%D date=\currentdate, %D copyright={Aditya Mahajan and Thomas A. Schmitz}] %C %C Copyright 2007 Aditya Mahajan and Thomas A. Schmitz @@ -169,7 +169,12 @@ StopPage ; StartPage path p[] ; p[1] := unitsquare xyscaled(MakeupWidth,.4cm) shifted (2cm,0.7cm) ; -numeric i; i = (PageNumber - 1)/(NOfPages - 1) ; +numeric i; +if NOfPages <= 1 : + i = (PageNumber - 1) ; +else : + i = (PageNumber - 1)/(NOfPages - 1) ; +fi ; p[2] = ulcorner p[1] -- urcorner p[1] ; p[3] = llcorner p[1] -- lrcorner p[1] ; pair o[] ; |