summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/modules/mkiv/s-present-boring.mkiv
blob: 334d6216d5d08f3bb731c9f8a4f620ee4136c441 (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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
%D \module
%D   [      file=s-present-boring, % s-pre-15,
%D        version=2020.07.10,
%D          title=\CONTEXT\ Style File,
%D       subtitle=Presentation Environment Boring,
%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 Because I use a mupdf based viewer and acrobat is not always reliable I nowadays
%D tend to go for simple presentation styles. They mostly serve as a reminder for
%D myself of what I'm supposed to talk about. Just demoing often makes more sense,
%D especially at meetings where there is some interaction.

\startmodule[present-boring]

\setupbodyfont
  [plex]

\setuppapersize
  [S6]

\setuplayout
  [backspace=20pt,
   topspace=20pt,
   bottomspace=20pt,
   header=0pt,
   footer=0pt,
   bottom=20pt,
   bottomdistance=30pt,
   width=middle,
   height=fit]

\definecolor[maincolor] [darkblue]
\definecolor[extracolor][darkyellow]
\definecolor[darkcolor] [darkgray]

\setupbackgrounds
  [page]
  [backgroundoffset=10pt,
   background=color,
   backgroundcolor=darkcolor]

\setupbackgrounds
  [text] [text]
  [backgroundoffset=10pt,
   background=color,
   backgroundcolor=maincolor]

\setupbackgrounds
  [bottom] [text]
  [backgroundoffset=10pt,
   background=color,
   backgroundcolor=extracolor]

\setupcolors
  [textcolor=white]

\setuphead
  [chapter]
  [style=\bfc,
   after={\blank[line,fixed]}]

\setupwhitespace
  [halfline]

\setupblank
  [halfline,fixed]

% \setupblank
%   [fixed]

\setuplinenumbering
  [typing]
  [style=\txx,
   color=middlegray]

\setuptyping
  [numbering=line,
   location=left,
   blank=halfline]

\startsetups document:start

    \startpagemakeup
        \raggedcenter
        \vfill
        \dontleavehmode \scale [
            width=\textwidth
        ] {
            \space
            {\bf \documentvariable{title}}
            \space
        }
        \vfill
        \dontleavehmode \scale [
            width=.8\textwidth
        ] {
            \space
            {\bf \documentvariable{banner}}
            \space
        }
        \vfill
        \vfill
        \dontleavehmode \scale [
            width=\textwidth
        ] {
            \qquad
            \color[darkcolor]{\documentvariable{location}}
            \qquad
        }
        \vfill
    \stoppagemakeup

    \setupbottomtexts [
        {
            \words {
                \documentvariable{title}
                \quad\emdash\quad
                \documentvariable{location}
                \quad\emdash\quad
                \getmarking[title]
            }
        }
    ]

\stopsetups

\startsetups document:stop
    %
\stopsetups

\stopmodule

\continueifinputfile{s-present-boring.mkiv}

\usemodule[present-common]

\inputpresentationfile{context/2020/context-2020-tokens.tex}