1 \startenvironment ma-cb-screen
3 % This setups adds some functionality as well as redefines
4 % some of the previously defined layout.
18 [\c!location=
\v!middle,
23 \c!rightedgedistance=
1cm
]
25 \setupinteractionscreen
30 % We place the pagenumber (not that useful in an interactive
31 % document) somewhere else and the chapter number in the
35 [\c!alternative=
\v!singlesided,
37 \c!command=
\NummerCommando]
39 \unexpanded\def\NummerCommando#1% uitlijnen op onderkant voet
40 {\hbox to
\rightedgewidth
41 {\scratchcounter=
\lastpage
42 \advance\scratchcounter by -
\realpageno
43 \hskip0pt plus
\realpageno cm
45 [\c!background=NummerAchtergrond,
48 {\lower.5\dp\strutbox\hbox spread
60pt
{\hss\tx#1\hss}}% {\hss#1\hss}}%
49 \hskip0pt plus
\scratchcounter cm
}}
55 \unexpanded\def\PlaatsHoofdstukStatus
56 {\determineheadnumber[\v!chapter
]%
57 \ifnum\currentheadnumber>
0
61 [\c!background=NummerAchtergrond,
64 {\lower.5\dp\strutbox\hbox spread
60pt
65 {\hss\getmarking[\v!chapter
\v!number
]\hss}}%
75 [][\PlaatsHoofdstukStatus]
82 % We let users click on the whole table of contents line and
87 [\c!interaction=
\v!all
]
94 \c!background=MenuAchtergrond,
101 [ {inhoud
[contents
]},
103 {commando's
[comind
]},
104 {definities
[comdefs
]},
107 {stoppen
[\v!CloseDocument
]},
108 {\ZoekEnZoek{zoeken
}},
109 {terug
[\v!PreviousJump
]},
114 \startmode[**en,**uk
]
116 \setupinteractionmenu
118 [ {contents
[contents
]},
121 {definitions
[comdefs
]},
124 {exit
[\v!CloseDocument
]},
125 {\ZoekEnZoek{search
}},
126 {go back
[\v!PreviousJump
]},
133 \setupinteractionmenu
136 {rejst
\rcaron\iacute k
[subind
]},
137 {seznam p
\rcaron\iacute kaz
\uring[comind
]},
138 {definice p
\rcaron\iacute kaz
\uring[comdefs
]},
139 {tir
\aacute\zcaron[colofon
]},
141 {konec
[\v!CloseDocument
]},
142 {\ZoekEnZoek{vyhledej
}},
143 {krok zp
\ecaron t
[\v!PreviousJump
]},
150 \setupinteractionmenu
152 [ {table des mati
\egrave res
[contents
]},
155 {d
\eacute finitions
[comdefs
]},
158 {quitter
[\v!CloseDocument
]},
159 {\ZoekEnZoek{recherche
}},
160 {retour
[\v!PreviousJump
]},
165 % This not that \TEX nical definition deals with the two sets
166 % of buttons. Someday I'll make a general macro for this.
168 \def\TwoMenuButtons#1[#2]#3[#4]%
171 \advance\hsize by -
12pt
172 \menubutton[\v!right
][\c!width=
.5\hsize]{#1}[#2]%
174 \menubutton[\v!right
][\c!width=
.5\hsize]{#3}[#4]}}
177 {\TwoMenuButtons{--
}[\v!previouspage
]{+
}[\v!nextpage
]}
180 {\TwoMenuButtons{#1}[\v!SearchDocument
]{+
}[\v!SearchAgain
]}