MAJOR=4 MINOR=30 DEVNAME=tty30 6ˆl–Ü4ý(Ð;�½p-©‹Fÿ�þDðÝY¸ÈVÚ £r2ùÉ „¿ÈÀÅ(§%D \module %D [ file=s-present-colorful, % was s-pre-04 %D version=1998.09.06, %D title=\CONTEXT\ Style File, %D subtitle=Presentation Environment Colorful, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. \usemodule[present-general] \startmodule[present-colorful] %D \macros %D {setupbodyfont} %D %D This is just another environment for typesetting interactive presentations. I %D wrote this module on behalf of a course I gave for the United Kingdom \TeX\ users %D group. \setupbodyfont[postscript,14.4pt] %D \macros %D {setupcolors,definecolor} %D %D I started using dark blue for the navigational elements. In that context, dark %D red is a logical choice for the contrast color. While playing around with the %D navigational elements I decided to use the not so dominant color yellow for the %D status bar. %D %D A few days before I wrote this style, the recent acquisition of Mondriaans last %D painting by the Dutch governement was a hot topic in the Dutch news scenary. %D Therefore I decided to replace the rather dull title page by something more %D colorful, in mondriaan colors, but far more random than any of his paintings. For %D consistence we remap the already defined primary colors. %D %D The \MKIV\ version is adapted abit so that the title is better visible. \setupcolors [state=start] \definecolor [NoneColor] [s=.6] \definecolor [GotoColor] [b=.6] \definecolor[blue] [GotoColor] \definecolor [ExitColor] [r=.6] \definecolor[red] [ExitColor] \definecolor [JumpColor] [s=.6] \definecolor [UserColor] [g=.6] \definecolor[green] [UserColor] %definecolor [StepColor] [r=.6,g=.6] \definecolor[yellow][StepColor] \definecolor [StepColor] [y=.8] \definecolor[yellow][StepColor] \definecolor [PageColor] [s=.80] \definecolor[gray] [PageColor] \definecolor [TextColor] [s=.90] \definecolor [TitleColor][s=.90] %D \macros %D {setuppapersize} %D %D As usual, we take a screen oriented paper size: \setuppapersize [S6][S6] %D \macros %D {setuplayout,setupinteractionscreen} %D %D The layout definition fits into this $600\times450$ point area, but the %D dimensions are somewhat diffused by the text background offset. \setuplayout [width=530pt, height=400pt, header=0pt, footer=0pt, backspace=15pt, topspace=15pt, bottomdistance=15pt, bottom=10pt, margin=0pt, rightedgedistance=15pt, rightedge=30pt] \setupinteractionscreen [option=max] %D \macros %D {setupbackgrounds} %D %D Both the page and the text area have a gray background. The \type {[text,text]} %D area also has an offset. Later we will see that we have to compensate for that in %D the navigational areas. \setupbackgrounds [page] [background=color, backgroundcolor=PageColor] \setupbackgrounds [text][text] [background=color, backgroundcolor=TextColor, backgroundoffset=5pt] %D \macros %D {setupinteraction} %D %D For convenient navigation, we turn on interaction. \setupinteraction [state=start, menu=on, color=UserColor, contrastcolor=NoneColor] %D \macros %D {setupsubpagenumber} %D %D When navigating the document, we keep the title page out of sight, therefore we %D use sub page numbers. \setupsubpagenumber [state=start, way=bytext] %D \macros %D {setupinteractionmenu} %D %D There is only one interaction menu, located in the right edge of the screen. Both %D offsets enlarge the edge by the same amount as the text background offset. \setupinteractionmenu [right] [state=start, frame=off, strut=no, offset=0pt, inbetween=, bottomoffset=-5pt, topoffset=-5pt] %D \macros %D {startinteractionmenu} %D %D The menu itself is not that spectacular. We use the start||stop alternative for %D setting the cont