summaryrefslogtreecommitdiff
path: root/macros/inrstex/inrstex/inrsdef.tex
blob: db1e81346d4cc67cc52a55fae8f3fc873471dbfd (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
%-*-tex-*-
% Copyright Michael J. Ferguson, INRS-Telecommunications
% All rights reserved. 

% ======== Cautions =========
% If some moduels of INRSTeX are not used, some of these defaults will 
% NOT be defined. 

% This file has most of the default values in plain.tex and inrstex.
% The parameters that are not modified from plain are % -- out. 

% ========  Plain.tex parameters ... set in plain and initex ====

% All of TeX's numeric parameters are listed here,
% Most are untouched from plain.tex but some are indeed modified. 
% The order is not the same as in plain.tex

%  These parameters are actually changed. 

\widowpenalty = 400 % needs to be more than 100 
\clubpenalty = 800  % needs to be more than 100 

% None of the values below are actually changed. They are included for
% information ... and possibly future modifcations. 

%  --- Penalties ---

%   \displaywidowpenalty=50
%   \brokenpenalty=100
%   \predisplaypenalty=10000
%   \postdisplaypenalty=0
%   \interlinepenalty=0
%   \interdisplaylinepenalty=100
%   \interfootnotelinepenalty=100

%   \pretolerance=100
%   \tolerance=200 % INITEX sets this to 10000
%   \hbadness=1000
%   \vbadness=1000
%   \linepenalty=10
%   \hyphenpenalty=50
%   \exhyphenpenalty=50
%   \binoppenalty=700
%   \relpenalty=500
%   \floatingpenalty=0, set during \insert
%   \outputpenalty=0, set before TeX enters \output
%   \doublehyphendemerits=10000
%   \finalhyphendemerits=5000
%   \adjdemerits=10000

% ---- paragraph control ----
%   \looseness=0, cleared by TeX after each paragraph
%   \uchyph=1
%   \parindent=20pt
%   \hangindent=0pt, zeroed by TeX after each paragraph
%   \baselineskip=0pt, changed by \normalbaselines
%   \lineskip=0pt, changed by \normalbaselines
%   \parskip=0pt plus 1pt
%   \parfillskip=0pt plus 1fil
%   \normalbaselineskip=12pt
%   \normallineskip=1pt
%   \normallineskiplimit=0pt

% -----  Sizes/overfull boxes ----
%   \hfuzz=0.1pt  % ... \finalversion mod
%   \vfuzz=0.1pt  % ... \finalversion mod
%   \overfullrule=5pt % ... \finalversion mod
%   \hsize=6.5in  % ... pagsty.tex and inrsdef.tex 
%   \vsize=8.9in  % ... pagsty.tex and inrsdef.tex 
%   \maxdepth=4pt
%   \splitmaxdepth=\maxdimen
%   \boxmaxdepth=\maxdimen
%   \lineskiplimit=0pt, changed by \normalbaselines
%   \leftskip=0pt
%   \rightskip=0pt
%   \topskip=10pt
%   \splittopskip=10pt


% ------- Internal Math parms -----
%   \delimitershortfall=5pt
%   \nulldelimiterspace=1.2pt
%   \scriptspace=0.5pt
%   \mathsurround=0pt
%   \thinmuskip=3mu
%   \medmuskip=4mu plus 2mu minus 4mu
%   \thickmuskip=5mu plus 5mu
%   \jot=3pt

% ---- Display Math Spacing ----
%   \predisplaysize=0pt, set before TeX enters $$
%   \displaywidth=0pt, set before TeX enters $$
%   \displayindent=0pt, set before TeX enters $$
%   \abovedisplayskip=12pt plus 3pt minus 9pt
%   \abovedisplayshortskip=0pt plus 3pt
%   \belowdisplayskip=12pt plus 3pt minus 9pt
%   \belowdisplayshortskip=7pt plus 3pt minus 4pt


%   \hoffset=0pt % not used in INRSTeX 
%   \voffset=0pt % not used in INRSTeX

%   \tabskip=0pt
%   \spaceskip=0pt
%   \xspaceskip=0pt

% ------ Vertical Spacing -----
%   \smallskipamount=3pt plus 1pt minus 1pt
%   \medskipamount=6pt plus 2pt minus 2pt
%   \bigskipamount=12pt plus 4pt minus 4pt

% ------ Debugging/Misc -----
%   \pausing=0
%   \tracingonline=0
%   \tracingmacros=0
%   \tracingstats=0
%   \tracingparagraphs=0
%   \tracingpages=0
%   \tracingoutput=0
%   \tracinglostchars=1
%   \tracingcommands=0
%   \tracingrestores=0
%   \globaldefs=0
%   \maxdeadcycles=25 % INITEX does this
%   \hangafter=1 % INITEX does this, also TeX after each paragraph
%   \fam=0
%   \mag=1000 % INITEX does this
%   \escapechar=`\\ % INITEX does this
%   \defaulthyphenchar=`\-
%   \defaultskewchar=-1
%   \endlinechar=`\^^M % INITEX does this
%   \newlinechar=-1
%   \delimiterfactor=901
%   \time=now % TeX does this at beginning of job
%   \day=now % TeX does this at beginning of job
%   \month=now % TeX does this at beginning of job
%   \year=now % TeX does this at beginning of job
%   \showboxbreadth=5
%   \showboxdepth=3


% =========  Defaults specific to INRSTeX ==========

% ====== Baselineskip spacings =========

\def\normalbaselineskipsize{2.8ex \normalbaselineskipglue}
\def\normalbaselineskipglue{plus .07ex minus .07ex}
\def\normallineskipform{\lineskip 1pt \lineskiplimit 0pt}


% ====== Turns off slicing rules for Versatec =======
\let\ptrule=\relax
\let\prule=\relax

% ====== Paper Sizes and Margins ========
\hpapersize= 8.5in
\vpapersize= 11in 
\topmarginsize = 1in
\leftmarginsize= 1.25in


% ======== Chapter/Section default forms =====
\nochaptertrue % defaults to not chapters 
\chnum=0   \def\chnumform{\the\chnum}
\shnum=0   \def\shnumform{\the\shnum}
\sshnum=0   \def\sshnumform{\the\sshnum}
\ssshnum=0 \def\ssshnumform{\the\ssshnum}

% the periods between the numbers and the orders are defined in 
% \numberbychapter and \numberbysection

% ======== Single/Multicolumn ========
\numcolumns =1
\firstcolumnoffset= 0pt
\intercolumnsep = {\hskip 2em} %intercolumn spacing default

% ========= Set Default Spacings ==========
% The spacings in INRSTeX are all relative to a font. This means that a 
% change in font family requires a change in these spacings. 

\newtoks\everysetspacings % this is a way to modify a few font dependent spacings

\def\setspacings{% ==== section head spacing defaults =====
       \prsheadskip= 6ex plus 2ex minus 2ex 
       \posheadskip= 2ex 
       \prssheadskip= 5ex plus 1.8ex minus 1.8ex
       \possheadskip= 2ex
       \prsssheadskip= 3ex  plus 1ex minus 1ex
       \posssheadskip= 2ex
       \prdsssheadskip= 3ex  plus 1ex minus 1ex
       \podsssheadskip= 2ex
  \relax % interitem spacing in table of contents, figure list ... are 
  \relax %  directly in the macros ... 
      \righttocindent = 5em % righthand indent for number in tocbox
  \relax % =========== list spacing parameters =====
       \prlistskip= 2ex plus 3pt minus 2pt
       \prsublistskip = 1ex plus 2pt minus 1pt
       \prsubsublistskip = .5ex plus 1pt minus 1pt
       \polistskip= 2ex plus 1pt minus 1pt
       \posublistskip= 1ex plus 1pt minus 1pt
       \posubsublistskip= .5ex plus 1pt minus 1pt
       \listitemskip = 2ex plus 1pt minus 1pt
       \sublistitemskip =1ex plus .75pt minus .75pt
       \subsublistitemskip = .5ex plus .5pt minus .5pt
       \listindent = 3em
       \sublistindent = 6em
       \subsublistindent = 9em
       \listitemmarksize = 1.5em
   \relax    %======= Caption box spacing =======
       \captionskip = 2ex  % spacing between a figure/table and caption
       \the\everysetspacings
         }
% note \setspacings is called when the style default sets a document font 



% ========== Toc Out Forms ===========
% These are the default forms for writing to a toc file. 

\def\shtocout{\string\shtoc}
\def\sshtocout{\string\sshtoc}
\def\ssshtocout{\string\ssshtoc}
\def\dssshtocout{\string\dssshtoc}
\def\chtocout{\string\chtoc}
\def\prtocout{\string\prtoc} 
\def\figtocout{\string\figtoc} 
\def\tbltocout{\string\tbltoc} 

% ========== Auto referencing default =======
\autoreferencetrue % autonumbering is not default true ... no \refs .. no
                   %  effect

% ============ Captionbox Defaults =========
\topcaptionfalse
\def\captiontextfraction{0.8}
\captionbodyon 

% ============ Title Spacing/Width ==========
\def\titlefraction{0.9}
\def\titlespacing{1.5}

% ====== Plain \magnification change ======
\let\magnification=\mag 

% ============ Tagging/Reference =======
\pagetagsoff  % default is the pagetags off -- more efficient. 

% =========== Allows Figures to be Silent ========
\silentfigurefalse % defaults to non silent figures 

%======== style defaults 
\paperstyle
\englishversion
\draftversion