summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/s-pre-23.tex
blob: f9983a89ed7475b6d7224b0501f5f59e9fa6a4c2 (plain)
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
%D \module
%D   [      file=s-pre-20,
%D        version=2000.08.07,
%D          title=\CONTEXT\ Style File,
%D       subtitle=Presentation Environment 20,
%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.

%D This style looks a lot like number 22. This time we don't
%D cycle but build up the page. One can click on the text go
%D to the page wanted. Clicking on the titl ebrings you to the
%D previous page. 

\startmode [demo]
  \disablemode[demo] \usemodule[pre-22] \enablemode[demo]
\stopmode

\startnotmode [demo]
  \usemodule[pre-22]
\stopnotmode

%D We use a simple two||color scheme. 

\definecolor[DotColor][r=.5,g=.6,b=.7]
\definecolor[TopColor][r=.7,g=.6,b=.5]
\definecolor[BotColor][TopColor]

%D We will not delay page building. 

\let\BuildPage\relax

%D Instead, we will flush a page for each summary. The main
%D layer is build up anyway, but we need to overlay the
%D current summary.

\let\normalStartSummary\StartSummary
\let\normalStopSummary \StopSummary

\def\StartSummary
  {\startstandardmakeup
   \normalStartSummary}

\def\StopSummary
  {\normalStopSummary
   \setlayer[temp]{\foundbox{Summary}\CurrentSummary}
   \setlayer[temp]{\foundbox{Subtext}\CurrentSummary}
   \stopstandardmakeup}

%D The title page is not added to the main layer (or 
%D actually, it is, but we erase the layer before it's 
%D used). 

\long\def\MakeTitlePage#1#2%
  {\startstandardmakeup
   \definereference[thispage][]
   \switchtobodyfont[32pt] 
   \StartSummary{#1}{}#2\StopSummary
   \resetlayer[main]
   \setlayer[temp]{\foundbox{Summary}\CurrentSummary}
   \setlayer[temp]{\foundbox{Subtext}\CurrentSummary}
   \definereference[thispage][page(\CurrentSummary)]
   \stopstandardmakeup}

\doifnotmode{demo}{\endinput}

\starttext

\TitlePage{August 2000}{Something Very Important}

\StartSummary{Alpha}
  A simple and not too long text just to show the idea.
  A simple and not too long text just to show the idea.
  A simple and not too long text just to show the idea.
\StopSummary

\StartSummary{Beta and Gamma}
  A simple and not too long text just to show the idea.
  A simple and not too long text just to show the idea.
\StopSummary

\StartSummary{Delta}
  A simple and not too long text just to show the idea.
\StopSummary

\StartSummary{Epsilon}
  A simple and not too long text just to show the idea.
  A simple and not too long text just to show the idea.
  A simple and not too long text just to show the idea.
\StopSummary

\StartSummary{Zeta, Eta and Theta}
  A simple and not too long text just to show the idea.
  A simple and not too long text just to show the idea.
  A simple and not too long text just to show the idea.
\StopSummary

\StartSummary{Omega}
  A simple and not too long text just to show the idea.
  A simple and not too long text just to show the idea.
  A simple and not too long text just to show the idea.
  A simple and not too long text just to show the idea.
\StopSummary

\stoptext