s-present-bars.mkiv /size: 2691 b    last modification: 2021-10-28 13:51
1%D \module
2%D   [      file=s-present-bars,
3%D        version=2012.07.10,
4%D          title=\CONTEXT\ Style File,
5%D       subtitle=Presentation Environment bars,
6%D         author=Hans Hagen,
7%D           date=\currentdate,
8%D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
9%C
10%C This module is part of the \CONTEXT\ macro||package and is
11%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12%C details.
13
14%D Okay, this one makes me a bit ashamed as it's probably too simple and unattractive but
15%D as it was used for a whole bunch of presentations it made it into a module anyway.
16
17\startmodule[present-bars]
18
19\setupbodyfont
20  [dejavu]
21
22\setuppapersize
23  [S6]
24
25\setuplayout
26  [backspace=12pt,
27   width=middle,
28   height=middle,
29   topspace=12pt,
30   header=36pt,
31   footer=36pt,
32   headerdistance=12pt,
33   footerdistance=12pt]
34
35\definecolor
36  [maincolor]
37  [darkblue]
38
39\startreusableMPgraphic{page}
40    StartPage ;
41        fill
42            Page
43            withcolor \MPcolor{maincolor} ;
44        fill
45            Field[Text][Header]
46                leftenlarged BackSpace
47                rightenlarged CutSpace
48            withcolor darkgray ;
49        fill
50            Field[Text][Footer]
51                leftenlarged BackSpace
52                rightenlarged CutSpace
53            withcolor darkgray ;
54    StopPage ;
55\stopreusableMPgraphic
56
57\setupheader
58  [color=maincolor,
59   style=bold,
60   before=\vss,
61   after=\vss]
62
63\setupheader
64  [color=maincolor,
65   style=bold,
66   before=\vss,
67   after=\vss]
68
69\setupheadertexts
70  [Breskens 2012]
71  [\documentvariable{title}]
72
73\setupbackgrounds
74  [page]
75  [background=page]
76
77\defineoverlay
78  [page]
79  [\reuseMPgraphic{page}]
80
81\setupbackgrounds
82  [footer][text]
83  [background=goback]
84
85\defineoverlay
86  [goback]
87  [\overlaybutton{PreviousPage}]
88
89\setuppagenumbering
90  [location=]
91
92\setupcolors
93  [textcolor=white]
94
95\setvariables
96  [document]
97  [maincolor=darkblue,
98   set=\setups{document:setup}]
99
100\startsetups document:setup
101
102    \doifsomething {\documentvariable{color}} {
103
104       \definecolor[maincolor][\documentvariable{color}]
105
106    }
107
108\stopsetups
109
110\setupinteraction
111  [state=start,
112   click=no]
113
114\usemodule[abr-01]
115\usemodule[pre-60]
116
117\stopmodule
118
119\continueifinputfile{s-present-bars.mkiv}
120
121\usemodule[present-common]
122
123%\inputpresentationfile{context/2012/context-2012-after-the-cleanup.tex}
124%\inputpresentationfile{context/2012/context-2012-the-script.tex}
125%\inputpresentationfile{context/2012/context-2012-lexing-sources.tex}
126%\inputpresentationfile{context/2012/context-2012-mixed-columns.tex}
127%\inputpresentationfile{context/2012/context-2012-visual-debugging.tex}
128\inputpresentationfile{context/2012/context-2012-xml-news.tex}
129