s-present-phone.mkiv /size: 2473 b    last modification: 2020-07-01 14:35
1
%D \module
2
%D [ file=s-present-phone,
3
%D version=2016.04.20, % or about
4
%D title=\CONTEXT\ Style File,
5
%D subtitle=Presentation Environment Phone,
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 The theme of Bacho\TeX\ was \quote {Getting \TEX\ out of the closet}. And, as I'm
15
%D always a bit sceptical about efforts to get a specialized toolbox like \TEX\
16
%D accepted in a large scale generic user base, I decided to give a talk dedicated
17
%D to Jerzy (the always optimistic organizer). (One can actually wonder if \TEX\ was
18
%D ever hidden in a closet.) And, because I had to get the attention of some nephew
19
%D and nieces I took there I gave the presentation without beamer but on my phone.
20
%D On such a device one just swipes but I still added two buttons. Watch the small
21
%D full|-|hd|-|ratio paper dimensions and 6 point font size.
22 23
\startmodule
[
s
-
present
-
phone
]
24 25
\setupinteraction
26
[
state
=
start
]
27 28
\definepapersize
29
[
phone
]
30
[
width
=
1
0
8
.
0
pt
,
31
height
=
1
9
2
.
0
pt
]
32 33
\definelayout
34
[
phone
]
35
[
backspace
=
3
pt
,
36
topspace
=
6
pt
,
37
bottomspace
=
3
pt
,
38
header
=
0
pt
,
39
footer
=
0
pt
,
40
bottom
=
1
0
pt
,
41
bottomdistance
=
5
pt
,
42
height
=
fit
,
43
width
=
middle
]
44 45
\setuplayout
46
[
phone
]
47 48
\setuppapersize
49
[
phone
]
50 51
\setupbodyfont
52
[
dejavu
,
ss
,
6
pt
]
53 54
\setupalign
55
[
tolerant
,
flushleft
]
56 57
\setupbackgrounds
58
[
page
]
59
[
background
=
color
,
60
backgroundcolor
=
maincolor
]
61 62
\setupbackgrounds
63
[
bottom
]
64
[
text
]
65
[
background
=
color
,
66
backgroundcolor
=
othercolor
,
67
backgroundoffset
=
\backspace
]
68 69
\definecolor
[
maincolor
]
[
r
=
.
7
,
g
=
.
3
,
b
=
0
]
70
\definecolor
[
othercolor
][
r
=
0
,
g
=
.
3
,
b
=
.
7
]
71 72
\setupcolors
73
[
textcolor
=
white
]
74 75
\setupinteraction
76
[
menu
=
on
,
77
color
=
white
,
78
contrastcolor
=
white
]
79 80
\setupinteractionmenu
81
[
bottom
]
82
[
state
=
start
,
83
style
=
\ss
\bf
]
84 85
\setupitemgroup
86
[
itemize
]
87
[
inbetween
=
{
\blank
[
medium
]
}
]
88 89
\startinteractionmenu
[
bottom
]
90
\startgot
[
previouspage
]
\textminus
\stopgot
91
\starttxt
\getmarking
[
section
]
\stoptxt
92
\startgot
[
nextpage
]
\textplus
\stopgot
93
\stopinteractionmenu
94 95
\setuphead
96
[
section
]
97
[
page
=
yes
,
98
before
=
,
99
after
=
{
\blank
[
disable
]
}
,
100
placehead
=
empty
]
101 102
\stopmodule
103 104
\continueifinputfile
{
s
-
present
-
phone
.
mkiv
}
105 106
\usemodule
[
present
-
common
]
107 108
\inputpresentationfile
{
bachotex
/
2
0
1
6
/
bachotex
-
2
0
1
6
-
toolbox
.
tex
}
109