summaryrefslogtreecommitdiff
path: root/usergrps/uktug/baskervi/8_4/bv-cont.tex
blob: 3e74af065e0de69fc3ad3c6f9f8eb175e39f4a93 (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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
\def\SPQR#1{#1}
\def\SPQRSTOPCOLUMNS{%
 \stopcolumns
 \vskip5pt
 \startcolumns[n=1,frame=on,lijn=off]
 }
\def\SPQRSTARTCOLUMNS{%
 \stopcolumns
 \vskip5pt
 \startcolumns[n=2,lijn=on]
}

% interface=en 

% Just make sure that:
\runMPgraphicstrue
\runutilityfiletrue
\newprettytrue

\setupoutput[pdftex]

% The general Baskerville layout.

\setupbodyfont
  [kb,bv,def,cmr,10pt]

\setuplayout
  [backspace=4pc,
   topspace=36.26999pt, % 1 in - 3 pc
   margin=4pc,
   margindistance=.5pc,
   width=180mm,
   height=753.3189pt,   % 250 mm + 12 pt + 15 pt + 15 pt 
   header=12pt,         
   headerdistance=15pt,
   footer=15pt,
   footerdistance=0pt]
   
 \setupindenting  % The manual is not designed for indenting and
   [1pc]          % I lack the time for checking. Looks worse.

\setupcolumns
  [distance=10mm,
   rulewidth=.5pt]

\setupheader                
  [after=\vskip-\prevdepth, % hm. maybe nilling the depth 
   before=\vfill,           % by default is better
   strut=no]

\setupheadertexts 
     [{\em Baskerville}] [{\it Volume 8, Number 4/5}] 
     [] [\hfill{\it \ConTeXt, an Excursion}\hfill]


\setupfootertexts         
  [--\pagenumber--]

\setuppagenumbering
  [alternative=doublesided,
   location=]

\setupitemize
  [margin=1pc,
   distance=.5em,
   width=1em]  

\setuphead
  [chapter]
  [style=\bfb,
   header=start,
   page=,
   before={\blank[2*big]},
   after=\blank]

\setuphead
  [section]
  [style=\bfa,
   before={\blank[big]},
   after=\blank]

\setuphead
  [subsection]
  [style=\ita,
   before=\blank,
   after=]

\setuphead
  [subsubsection]
  [alternative=text, 
   style=\bs,
   before=\blank,
   after=]

% The manual setup.

\usemodule[eenheid]
\usemodule[pictex]
\usemodule[chemie]

\environment star-abr

\setupcolors
  [state=start,
   conversion=always]

\setupwhitespace
  [none] % was medium

\setupblank
  [medium]

\setuptyping
  [margin=standard,
   blank=medium]

\setuptolerance
  [tolerant]

\setupsectionblock
  [frontpart]
  [page=,before=,after=]

\setupsectionblock
  [bodypart]
  [page=,before=,after=]

\setupsectionblock
  [appendix]
  [page=,before=,after=]

\setupsectionblock 
  [backpart]
  [page=,before=,after=]

\defineregister
  [Command]
  [Commands]

\setupregister
  [Command]
  [indication=off]

\language[gb]

% Some fakes. 

\let\Copyright=\relax 
\let\BackPage=\relax

\long\def\Colofon%
  {\title{Colophon}
   \getbuffer[col]}

\startbuffer[col]

The text is written by Ton Otten and Hans Hagen and the
illustrations and photographs are drawn and taken by Johan
Jonker. The overall layout of this manual is adapted to
{\em Baskerville}. Thanks to Sebastian Rahtz for his positive
input. 

The original manual has about 1000 random generated
\METAPOST\ graphics and looks a bit less formal. One can
upload a version meant for printing as well as one for
viewing on the screen from \type{www.ntg.nl/context}. The
public part of the sources of \CONTEXT\ can be found at the
same location. 

We're currently updating the Dutch reference manual, which
will also be available in English and German. The latest
quick reference documents, as well as some example
documents, can be downloaded from the site mentioned. 

\startregels
PRAGMA Advanced Document Engineering
Ridderstraat 27, 8061GH Hasselt NL
+31 (0)38 477 53 69, pragma@wxs.nl
\stopregels
\stopbuffer

\def\TableOfContents#1%
  {\page
   \startcolumns[n=2,option=background,offset=12pt,frame=off,background=screen]
   \title{#1}
   \placelist[chapter][alternative=c,before={\blank[big]}]
   \stopcolumns
}

\def\Introduction#1% 
  {\title[intro]{#1}} 

\def\NormalIndex#1%
  {\chapter[subind]{#1}
   \bgroup
   \setupblank[big]
   \setupwhitespace[none]
   \startcolumns[n=3]
   \placeregister[index]
   \stopcolumns
   \egroup}

\def\CommandIndex#1%
  {\chapter[comind]{#1}
   \bgroup
   \setupblank[big]
   \setupwhitespace[none]
   \startcolumns[n=3]
   \placeregister[Command]
   \stopcolumns
   \egroup}

\def\CommandList#1%
  {\chapter[comdefs]{#1}
   \bgroup
   \readfile{star-lst}{}{}
   \blanko[2*big]
   \setupsetup[reference=2]
   \placesetup
   \egroup}

% The title page. 

\startbuffer[bv] 
 \hbox{\def\\{$\,$}\bf B\\a\\s\\k\\e\\r\\v\\i\\l\\l\\e}
\stopbuffer

\startbuffer[ct] 
  \hbox{\bf\ConTeXt\ || an Excursion}
\stopbuffer

\def\TitlePage#1#2#3%
{\setupheader[state=none] \setupfooter[state=none] \bgroup \forgetall
  \externalfigure [bv.tmp] [type=tex,width=\makeupwidth] \vskip6pt
  \hbox to \hsize {\bf The Annals of the UK \TeX\ Users Group\hss
    Editor: Sebastian Rahtz\hss Vol.~8 Nos.~4 \& 5} \vskip6pt \hbox
  to \hsize {\bf ISSN 1354||5930\hss September 1998} \vskip6pt {\sl
    Baskerville} is set in Monotype Baskerville, with Computer Modern
  Typewriter for literal text, and printed on a Xerox Docutech.
  Production and distribution is undertaken in Cambridge by Robin
  Fairbairns.  
  
  \vskip6pt \hrule \vskip6pt \vskip6pt \title{Editorial}
  \startcolumns[n=2,lijn=on,linewidth=.7pt,linecolor=black] 
  I first realised that Hans Hagen had something
  rather special in the way of a macro package when he talked about
  his PDF work at the 1995 Euro\TeX\ meeting in Arnhem. But it was not
  until I saw a serious demonstration of \CONTEXT\ at the 1997 TUG
  meeting in San Francisco that the scale and sophistication of the
  package became apparent. After Hans talked about his work at the
  1997 UKTUG meeting, my respect increased, and we started to talk in
  the UKTUG committee about putting something substantial into
  {\em Baskerville} for our members. This double issue is the result,
  a complete introduction to \CONTEXT, to complement the macros which are
  already available on the \TeX\ Live CD-ROM.
\vskip2pt
  \CONTEXT\ is a macro package. It does the same job as \LaTeX, but
  the setup is very different. \LaTeX\ consists of a core, a
  set of `official' document classes, and a set of interface
  conventions;  the rest is composed of
  packages contributed by hundreds of people over the last 15 years.
  The result is hugely powerful, but chaotic, and on the verge
  of becoming unmanageable. \CONTEXT\ is different; all the facilities
  you need are provided up front, there is no system of
  user-contributed packages. The code is all maintained and controlled
  by Hans Hagen and his small company, and you do not need to worry
  about having to go off and look for that extra \LaTeX\
  package. \CONTEXT\ was {\em designed} to include most of the
  facilities which \LaTeX\ accumulated over the years. There are no
  `document classes', just an enormously powerful set of commands to
  define the formatting of your document.
\vskip2pt
  What you are about to read is, I must stress, an {\em Introduction};
  the full reference manual is currently only in Dutch, but it is in
  the process of being translated. It contains details of many more
  commands whose existence is only hinted at here.
\vskip2pt
  Obviously we needed to make this manual look as much like the {\em
  Baskerville} style as we could; Hans did most of the work, but
  Robin Fairbairns, Malcolm Clark and I
  had a sudden baptism by fire of \CONTEXT\ when we decided to try and
  massage the text into double columns. {\em Do not blame Hans or
  \CONTEXT\ for the results!} 
\vskip2pt
  A word of warning to those who want to rush straight off and try out
  this package: it is {\em big}. It eats \TeX\ memory like there is
  no tomorrow, and you cannot expect to run it on a small \TeX\
  implementation. Persevere: all modern \TeX\ implementations can
  increase their memory size. You may have to experiment a bit to get
  things working.
\stopcolumns
   \vskip 12pt
   \hrule   
   \vskip 24pt
   \hbox to \hsize
     {\bf Ton Otten \& Hans Hagen\hss
      www.ntg.nl/context} 
   \vskip12pt
   \hrule
   \vskip12pt
   \externalfigure
     [ct.tmp]
     [type=tex,width=\makeupwidth]
   \vskip 24pt
   \egroup
}

% Setup things.

\input setupa.tex

\breaksetuptrue

\setupsetup
  [criterium=used]

\input setupb.tex

\setupframedtexts
  [setuptext]
  [background=screen,
   frame=off]

% Here we go.

\starttext 

\readfile{ma-cb-en}{}{}
\stoptext