summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/s-mod-01.tex
blob: 4454986ce6dad993259f437e734d4c1514257bad (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
%D \module
%D   [      file=s-mod-01,
%D        version=very-old,
%D          title=\CONTEXT\ Style File,
%D       subtitle=Documentation Paper Environment,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%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 This module looks like crap, is not documented, will
%D change, and used to be called modu-*.tex.

\usemodule[mod-00,abr-01]

\dontcomplain

\unprotect

\setupbodyfont
  [10pt]

\definetypeface
  [narrowtt] [tt]
  [mono] [modern-cond] [default] [encoding=\defaultencoding]

\setuptyping[\v!typing][\c!style=\narrowtt]
\setuptype  [\v!type]  [\c!style=\narrowtt]

\mainlanguage
  [en]

\setupwhitespace
  [\v!big]

\setuptolerance
  [\v!tolerant]

\emergencystretch=5em

\setuplayout
  [\c!backspace=3.5cm,
   \c!leftmargin=1.75cm,
   \c!rightmargin=0cm,
   \c!margindistance=.5cm,
   \c!leftedgedistance=.25cm,
   \c!rightedgedistance=.5cm,
   \c!edge=1.5cm,
   \c!width=15.55333cm,         % 13.998cm at 9pt => 15.55333 at 10pt
   \c!topspace=2cm,
   \c!header=1.25cm,
   \c!footer=1.25cm,
   \c!height=middle,
   \c!style=\ss]

\setupsetup
  [\c!reference=1]

\startnotmode[single]

  \setuppagenumbering
    [\c!alternative={\v!doublesided,\v!singlesided}]

\stopnotmode

\setuppagenumbering
  [\c!location=]

\expanded{\setupfootertexts
  [\v!edge]
  [][\v!pagenumber]}

\startmode[single]

  \setupfootertexts
    [\v!margin]
    [\filename{\Modulefile}][]

\stopmode

\startnotmode[single]

  \setupfootertexts
    [\v!margin]
    [\filename{\Modulefile}][]
    [\filename{\Modulefile}][]

\stopnotmode

\setupfootertexts
  [\v!text]
  [\CONTEXT]
  [\Moduletitle]

\setupheadertexts
  [\v!text]
  []
  [\Modulesubtitle]

\setupinmargin
  [\c!location=\v!left]

\setupheads
  [\c!alternative=\v!inmargin]

\setuphead
  [\v!chapter]
  [\c!style=\ssc,
   \c!page=\v!right,
   \c!header=\v!empty]

\setuphead
  [\v!section]
  [\c!style=\ssb,
   \c!page=\v!right]

\setuplist
  [\v!chapter]
  [\c!style=\v!bold,
   \c!after=\blank]

\setupcombinedlist
  [\v!content]
  [\c!width=3em,
   \c!aligntitle=\v!yes]

\setupregister
  [\v!index]
  [\c!balance=\v!yes,
   \c!indicator=\v!no]

\startnotmode[nocolor]

\setupcolors
  [\c!state=\v!start]

\stopnotmode

\startnotmode[color]

  \setupcolors
    [\c!conversion=\v!always]

  \setuptyping
    [\c!palet=graypretty]

\stopnotmode

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

\protect \endinput