1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
%D \module
%D [ file=simpleslides-s-Shaded,
%D version=2009.03.30
%D title=\CONTEXT\ Style File,
%D subtitle=Presentation Module --- Shaded style,
%D author=Aditya Mahajan and Thomas A. Schmitz,
%D date=\currentdate,
%D copyright={Aditya Mahajan and Thomas A. Schmitz}]
%C
%C Copyright 2007 Aditya Mahajan and Thomas A. Schmitz
%C This file may be distributed under the GNU General Public License v. 2.0.
%D This file provides the \quotation{Shaded} style for the presentation
%D module. It is loaded at runtime.
\writestatus{simpleslides}{loading Shaded style}
\startmodule[simpleslides-s-Shaded]
\unprotect
%D The page layout:
\setuplayout [width=fit,
margin=1.5cm,
leftmargindistance=0pt,
rightmargindistance=0pt,
height=fit,
header=0pt,
footer=5pt,
topspace=.8cm,
backspace=1.5cm,
bottomspace=.8cm,
bottom=12pt,
location=singlesided]
%D These macros are used for placing figures/pictures:
\define\NormalHeight {.88\textheight}
\define\NormalWidth {.476\textwidth}
\define\PictureFrameHeight {.88\textheight}
\define\PictureFrameWidth {.476\textwidth}
%D This module has three color schemes, blue, green and bluered.
\startsetups simpleslides:setups:bluered
\definecolor [simpleslides:textcolor] [white]
\definecolor [simpleslides:interactioncolor] [b=.2]
\definecolor [simpleslides:contrastcolor] [b=.8]
\definecolor [simpleslides:itemize:color] [s=1]
\definecolor [simpleslides:backgroundcolor] [r=0.5,g=0,b=0]
\definecolor [simpleslides:variantcolor] [r=0,g=0,b=0.5]
\stopsetups
\startsetups simpleslides:setups:blue
\definecolor [simpleslides:textcolor] [white]
\definecolor [simpleslides:interactioncolor] [b=.2]
\definecolor [simpleslides:contrastcolor] [r=.72,g=.77,b=.94]
\definecolor [simpleslides:itemize:color] [s=1]
\definecolor [simpleslides:backgroundcolor] [r=0,g=0,b=1]
\definecolor [simpleslides:variantcolor] [r=0,g=0,b=0.05]
\stopsetups
\startsetups simpleslides:setups:green
\definecolor [simpleslides:textcolor] [white]
\definecolor [simpleslides:interactioncolor] [s=.2]
\definecolor [simpleslides:contrastcolor] [s=.5]
\definecolor [simpleslides:itemize:color] [s=1]
\definecolor [simpleslides:backgroundcolor] [r=0,g=.8,b=0]
\definecolor [simpleslides:variantcolor] [r=0,g=0.05,b=0]
\stopsetups
%D Now we choose the scheme that the user asked for
\setups{simpleslides:setups:blue}
\setups{simpleslides:setups:\moduleparameter{simpleslides}{color}}
\setupcolors[textcolor={simpleslides:textcolor}]
%D This module shades the background in a gradient. We use \METAPOST\ to draw
%D the background.
\startuniqueMPgraphic{simpleslides:MP:ornament}
save p;
path p ;
p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
linear_shade(p,6,
\MPcolor{simpleslides:backgroundcolor},
\MPcolor{simpleslides:variantcolor}) ;
\stopuniqueMPgraphic
%D We define these backgrounds as overlays:
\defineoverlay
[simpleslides:background:ornament]
[\useMPgraphic{simpleslides:MP:ornament}]
\defineoverlay
[simpleslides:background:title]
[\useMPgraphic{simpleslides:MP:ornament}]
%D The symbol for the first level of itemizations.
\definesymbol[1][\useMPgraphic{simpleslides:itemize:square}]
\setupitemize[1][color={simpleslides:itemize:color}]
%D The \quotation{Shaded} style uses \CONTEXT's interactionbar:
\setupsubpagenumber[way=bytext,state=start]
\setupinteraction
[page=yes,
color=simpleslides:interactioncolor,
contrastcolor=simpleslides:contrastcolor,
menu=on,
state=start]
\startinteractionmenu[bottom]
{\interactionbar[alternative=f,width=\makeupwidth,height=1ex]}
\stopinteractionmenu
\protect
\stopmodule
\endinput
|