s-pre-23.tex /size: 3132 b    last modification: 2020-07-01 14:35
1%D \module
2%D   [      file=s-pre-20,
3%D        version=2000.08.07,
4%D          title=\CONTEXT\ Style File,
5%D       subtitle=Presentation Environment 20,
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 This style looks a lot like number 22. This time we don't
15%D cycle but build up the page. One can click on the text go
16%D to the page wanted. Clicking on the titl ebrings you to the
17%D previous page.
18
19\startmode [demo]
20  \disablemode[demo] \usemodule[pre-22] \enablemode[demo]
21\stopmode
22
23\startnotmode [demo]
24  \usemodule[pre-22]
25\stopnotmode
26
27%D We use a simple two||color scheme.
28
29\definecolor[DotColor][r=.5,g=.6,b=.7]
30\definecolor[TopColor][r=.7,g=.6,b=.5]
31\definecolor[BotColor][TopColor]
32
33%D We will not delay page building.
34
35\let\BuildPage\relax
36
37%D Instead, we will flush a page for each summary. The main
38%D layer is build up anyway, but we need to overlay the
39%D current summary.
40
41\let\normalStartSummary\StartSummary
42\let\normalStopSummary \StopSummary
43
44\def\StartSummary
45  {\startstandardmakeup
46   \normalStartSummary}
47
48\def\StopSummary
49  {\normalStopSummary
50   \setlayer[temp]{\foundbox{Summary}\CurrentSummary}
51   \setlayer[temp]{\foundbox{Subtext}\CurrentSummary}
52   \stopstandardmakeup}
53
54%D The title page is not added to the main layer (or
55%D actually, it is, but we erase the layer before it's
56%D used).
57
58\long\def\MakeTitlePage#1#2%
59  {\startstandardmakeup
60   \definereference[thispage][]
61   \switchtobodyfont[32pt]
62   \StartSummary{#1}{}#2\StopSummary
63   \resetlayer[main]
64   \setlayer[temp]{\foundbox{Summary}\CurrentSummary}
65   \setlayer[temp]{\foundbox{Subtext}\CurrentSummary}
66   \definereference[thispage][page(\CurrentSummary)]
67   \stopstandardmakeup}
68
69\doifnotmode{demo}{\endinput}
70
71\starttext
72
73\TitlePage{August 2000}{Something Very Important}
74
75\StartSummary{Alpha}
76  A simple and not too long text just to show the idea.
77  A simple and not too long text just to show the idea.
78  A simple and not too long text just to show the idea.
79\StopSummary
80
81\StartSummary{Beta and Gamma}
82  A simple and not too long text just to show the idea.
83  A simple and not too long text just to show the idea.
84\StopSummary
85
86\StartSummary{Delta}
87  A simple and not too long text just to show the idea.
88\StopSummary
89
90\StartSummary{Epsilon}
91  A simple and not too long text just to show the idea.
92  A simple and not too long text just to show the idea.
93  A simple and not too long text just to show the idea.
94\StopSummary
95
96\StartSummary{Zeta, Eta and Theta}
97  A simple and not too long text just to show the idea.
98  A simple and not too long text just to show the idea.
99  A simple and not too long text just to show the idea.
100\StopSummary
101
102\StartSummary{Omega}
103  A simple and not too long text just to show the idea.
104  A simple and not too long text just to show the idea.
105  A simple and not too long text just to show the idea.
106  A simple and not too long text just to show the idea.
107\StopSummary
108
109\stoptext
110