summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/start/ma-cb-screen.tex
blob: c3af1f78357ff226176a7e428aceee6027af1d7e (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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
\startenvironment ma-cb-screen

% This setups adds some functionality as well as redefines
% some of the previously defined layout.

\unprotect

\definepapersize
  [LocalPaperFormat]
  [\c!width=28cm,
   \c!height=21cm]

\setuppapersize
  [LocalPaperFormat]
  [LocalPaperFormat]

\setuplayout
  [\c!location=\v!middle,
   \c!topspace=.5cm,
   \c!header=1.5cm,
   \c!height=20cm,
   \c!rightedge=5cm,
   \c!rightedgedistance=1cm]

\setupinteractionscreen
  [\c!width=28cm,
   \c!height=21cm,
   \c!option=\v!max]

% We place the pagenumber (not that useful in an interactive
% document) somewhere else and the chapter number in the
% footer.

\setuppagenumbering
  [\c!alternative=\v!singlesided,
   \c!location=,
   \c!command=\NummerCommando]

\unexpanded\def\NummerCommando#1% uitlijnen op onderkant voet
  {\hbox to \rightedgewidth
     {\scratchcounter=\lastpage
      \advance\scratchcounter by -\realpageno
      \hskip0pt plus \realpageno cm
      \framed
        [\c!background=NummerAchtergrond,
         \c!frame=\v!off,
         \c!offset=4pt]%
        {\lower.5\dp\strutbox\hbox spread 60pt{\hss\tx#1\hss}}% {\hss#1\hss}}%
      \hskip0pt plus \scratchcounter cm}}

\setupfootertexts
  [\v!edge]
  [][\v!pagenumber]

\unexpanded\def\PlaatsHoofdstukStatus
  {\determineheadnumber[\v!chapter]%
   \ifnum\currentheadnumber>0
     \hbox to \hsize
       {\hss
        \framed
          [\c!background=NummerAchtergrond,
           \c!frame=\v!off,
           \c!offset=6pt]
          {\lower.5\dp\strutbox\hbox spread 60pt
             {\hss\getmarking[\v!chapter\v!number]\hss}}%
        \hss}
   \fi}

\setupfootertexts
  [\v!margin]
  [][]

\setupfootertexts
  [\v!text]
  [][\PlaatsHoofdstukStatus]

\setupinteraction
  [\c!state=\v!start,
   \c!color=,
   \c!menu=\v!on]

% We let users click on the whole table of contents line and
% provide some menus.

\setuplist
  [\v!chapter]
  [\c!interaction=\v!all]

\setupinteractionmenu
  [\v!right]
  [\c!state=\v!start,
   \c!color=,
   \c!offset=4pt,
   \c!background=MenuAchtergrond,
   \c!frame=\v!off]

\startmode[**nl]

  \setupinteractionmenu
    [\v!right]
    [    {inhoud[contents]},
          {index[subind]},
     {commando's[comind]},
     {definities[comdefs]},
        {colofon[colofon]},
            {\vfill},
        {stoppen[\v!CloseDocument]},
     {\ZoekEnZoek{zoeken}},
          {terug[\v!PreviousJump]},
        {\HeenEnWeer}]

\stopmode

\startmode[**en,**uk]

  \setupinteractionmenu
    [\v!right]
    [  {contents[contents]},
          {index[subind]},
       {commands[comind]},
    {definitions[comdefs]},
        {colofon[colofon]},
            {\vfill},
           {exit[\v!CloseDocument]},
     {\ZoekEnZoek{search}},
        {go back[\v!PreviousJump]},
        {\HeenEnWeer}]

\stopmode

\startmode[**cz]

  \setupinteractionmenu
    [\v!right]
    [                             {obsah[contents]},
                  {rejst\rcaron\iacute k[subind]},
       {seznam p\rcaron\iacute kaz\uring[comind]},
     {definice p\rcaron\iacute kaz\uring[comdefs]},
                      {tir\aacute\zcaron[colofon]},
                                    {\vfill},
                                  {konec[\v!CloseDocument]},
                            {\ZoekEnZoek{vyhledej}},
                       {krok zp\ecaron t[\v!PreviousJump]},
                                  {\HeenEnWeer}]

\stopmode

\startmode[**fr]

  \setupinteractionmenu
    [\v!right]
    [  {table des mati\egrave res[contents]},
          {index[subind]},
       {commandes[comind]},
    {d\eacute finitions[comdefs]},
        {colophon[colofon]},
            {\vfill},
           {quitter[\v!CloseDocument]},
     {\ZoekEnZoek{recherche}},
        {retour[\v!PreviousJump]},
        {\HeenEnWeer}]

\stopmode

\startmode[**vn]

  \setupinteractionmenu
    [\v!right]
    [  {mục lục[contents]},
      {bảng tra[subind]},
          {lệnh[comind]},
    {định nghĩa[comdefs]},
    {trang cuối[colofon]},
            {\vfill},
         {thoát[\v!CloseDocument]},
     {\ZoekEnZoek{tìm kiếm}},
      {quay lại[\v!PreviousJump]},
        {\HeenEnWeer}]

\stopmode

% This not that \TEX nical definition deals with the two sets
% of buttons. Someday I'll make a general macro for this.

\def\TwoMenuButtons#1[#2]#3[#4]%
  {\hbox to \hsize
     {\dimen0=\hsize
      \advance\hsize by -12pt
      \menubutton[\v!right][\c!width=.5\hsize]{#1}[#2]%
      \hss
      \menubutton[\v!right][\c!width=.5\hsize]{#3}[#4]}}

\def\HeenEnWeer
  {\TwoMenuButtons{--}[\v!previouspage]{+}[\v!nextpage]}

\def\ZoekEnZoek#1%
  {\TwoMenuButtons{#1}[\v!SearchDocument]{+}[\v!SearchAgain]}

\protect

\stopenvironment