-
Notifications
You must be signed in to change notification settings - Fork 18
/
chapter20.tex
698 lines (638 loc) · 24.5 KB
/
chapter20.tex
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
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
% -*- coding: utf-8 -*-
\documentclass{book}
\input{preamble}
\setcounter{chapter}{19}
\begin{document}
%\chapter{Spacing}\label{space}
%\index{spacing|(}
\chapter{Spacing}\label{space}
\index{spacing|(}
%The usual interword space in \TeX\ is specified in the
%font information, but the user can override this.
%This chapter explains the rules by which
%\TeX\ calculates interword space.
The usual interword space in \TeX\ is specified in the
font information, but the user can override this.
This chapter explains the rules by which
\TeX\ calculates interword space.
%\label{cschap:char322}\label{cschap:spaceskip}\label{cschap:xspaceskip}\label{cschap:spacefactor}\label{cschap:sfcode}\label{cschap:frenchspacing}\label{cschap:nonfrenchspacing}
%\begin{inventory}
\label{cschap:char322}\label{cschap:spaceskip}\label{cschap:xspaceskip}\label{cschap:spacefactor}\label{cschap:sfcode}\label{cschap:frenchspacing}\label{cschap:nonfrenchspacing}
\begin{inventory}
%\item [\cs{\char32}]
% Control space.
% Insert the same amount of space as a space token would
% if \cs{spacefactor}${}=1000$.
\item [\cs{\char32}]
Control space.
Insert the same amount of space as a space token would
if \cs{spacefactor}${}=1000$.
%\item [\cs{spaceskip}]
% Interword glue if non-zero.
\item [\cs{spaceskip}]
Interword glue if non-zero.
%\item [\cs{xspaceskip}]
% Interword glue if non-zero and \cs{spacefactor}${}\geq2000$.
\item [\cs{xspaceskip}]
Interword glue if non-zero and \cs{spacefactor}${}\geq2000$.
%\item [\cs{spacefactor}]
% 1000 times the ratio by which the stretch (shrink) component of the
% interword glue should be multiplied (divided).
\item [\cs{spacefactor}]
1000 times the ratio by which the stretch (shrink) component of the
interword glue should be multiplied (divided).
%\item [\cs{sfcode}]
% Value for \cs{spacefactor} associated with a character.
\item [\cs{sfcode}]
Value for \cs{spacefactor} associated with a character.
%\item [\cs{frenchspacing}]
% Macro to switch off extra space after punctuation.
\item [\cs{frenchspacing}]
Macro to switch off extra space after punctuation.
%\item [\cs{nonfrenchspacing}]
% Macro to switch on extra space after punctuation.
\item [\cs{nonfrenchspacing}]
Macro to switch on extra space after punctuation.
%\end{inventory}
\end{inventory}
%\section{Introduction}
\section{Introduction}
%In between words in a text, \TeX\ inserts space. This space has a
%natural component, plus stretch and shrink to make justified
%(right-aligned) text possible. Now, in certain styles of typesetting,
%there is more space after punctuation. This chapter discusses the
%mechanism that \TeX\ uses to realize such effect.
In between words in a text, \TeX\ inserts space. This space has a
natural component, plus stretch and shrink to make justified
(right-aligned) text possible. Now, in certain styles of typesetting,
there is more space after punctuation. This chapter discusses the
mechanism that \TeX\ uses to realize such effect.
%Here is the general idea:
%\begin{itemize}
%\item After every character token, the \cs{spacefactor} quantity is
% updated with the space factor code of that character.
%\item When space is inserted, its natural size can be augmented
% (if \cs{spacefactor}${}\geq2000$), and in general its stretch is
% multiplied, and its shrink divided, by \cs{spacefactor}${}/1000$.
%\item There are further rules, for instance so that in \n{...word.)
% And...} the space is modified according to the period, not the
% closing parenthesis.
%\end{itemize}
Here is the general idea:
\begin{itemize}
\item After every character token, the \cs{spacefactor} quantity is
updated with the space factor code of that character.
\item When space is inserted, its natural size can be augmented
(if \cs{spacefactor}${}\geq2000$), and in general its stretch is
multiplied, and its shrink divided, by \cs{spacefactor}${}/1000$.
\item There are further rules, for instance so that in \n{...word.)
And...} the space is modified according to the period, not the
closing parenthesis.
\end{itemize}
%%\point Automatic interword space
%\section{Automatic interword space}
%\point Automatic interword space
\section{Automatic interword space}
%For every space token in horizontal mode the interword glue
%of the current font
%is inserted, with stretch and shrink components, all
%determined by \cs{fontdimen} parameters.
%To be specific, font dimension~2 is the normal interword space,
%dimension~3 is the amount of stretch of the interword
%space, and 4~is the amount of shrink. Font dimension
%7 is called the `extra space'; see below (the list
%of all the font dimensions appears on page~\pageref{font:dims}).
For every space token in horizontal mode the interword glue
of the current font
is inserted, with stretch and shrink components, all
determined by \cs{fontdimen} parameters.
To be specific, font dimension~2 is the normal interword space,
dimension~3 is the amount of stretch of the interword
space, and 4~is the amount of shrink. Font dimension
7 is called the `extra space'; see below (the list
of all the font dimensions appears on page~\pageref{font:dims}).
%Ordinarily all spaces between words (in one font) would be treated the
%same. To allow for differently sized spaces \ldash for instance a
%typeset equivalent of the double spacing after punctuation in
%typewritten documents \rdash \TeX\ associates with each character a
%so-called \indextermsub{space}{factor}.
Ordinarily all spaces between words (in one font) would be treated the
same. To allow for differently sized spaces \ldash for instance a
typeset equivalent of the double spacing after punctuation in
typewritten documents \rdash \TeX\ associates with each character a
so-called \indextermsub{space}{factor}.
%When a character is added to the current horizontal list,
%the space factor code (\csidx{sfcode})
%of that character
%is assigned to the space factor \csidx{spacefactor}.
%There are two exceptions to this rule:
%\begin{itemize}
%\item When the space factor code is zero, the \cs{spacefactor} does
% not change. This mechanism allows space factors to persist through
% parentheses and such; see section~\ref{sec:sf-through-paren}.
%\item When the space factor code of the last character is ${>}1000$
% and the current space factor is ${<}1000$, the space factor
% becomes~1000. This mechanism prevents elongated spaces after
% initials; see section~\ref{sec:sf-punct}.
%\end{itemize}
%The maximum space factor is~$32\,767$.
When a character is added to the current horizontal list,
the space factor code (\csidx{sfcode})
of that character
is assigned to the space factor \csidx{spacefactor}.
There are two exceptions to this rule:
\begin{itemize}
\item When the space factor code is zero, the \cs{spacefactor} does
not change. This mechanism allows space factors to persist through
parentheses and such; see section~\ref{sec:sf-through-paren}.
\item When the space factor code of the last character is ${>}1000$
and the current space factor is ${<}1000$, the space factor
becomes~1000. This mechanism prevents elongated spaces after
initials; see section~\ref{sec:sf-punct}.
\end{itemize}
The maximum space factor is~$32\,767$.
%The stretch component of the interword space is
%multiplied by the space factor divided by 1000;
%the shrink component is divided by this factor.
%The extra space (font dimension~7) is
%added to the natural component of the
%interword space when the space factor is~${}\geq2000$.
The stretch component of the interword space is
multiplied by the space factor divided by 1000;
the shrink component is divided by this factor.
The extra space (font dimension~7) is
added to the natural component of the
interword space when the space factor is~${}\geq2000$.
%%\point User interword space
%\section{User interword space}
%\point User interword space
\section{User interword space}
%The user can override the interword space contained in
%the \cs{fontdimen} parameters
%by setting the
%\csidx{spaceskip} and the \csidx{xspaceskip} to non-zero values.
%If \cs{spaceskip} is non-zero, it is taken instead
%of the normal interword space
%(\cs{fontdimen2} plus \cs{fontdimen3} minus \cs{fontdimen4}), but
%a non-zero \cs{xspaceskip} is used as interword space if
%the space factor is~${}\geq2000$.
The user can override the interword space contained in
the \cs{fontdimen} parameters
by setting the
\csidx{spaceskip} and the \csidx{xspaceskip} to non-zero values.
If \cs{spaceskip} is non-zero, it is taken instead
of the normal interword space
(\cs{fontdimen2} plus \cs{fontdimen3} minus \cs{fontdimen4}), but
a non-zero \cs{xspaceskip} is used as interword space if
the space factor is~${}\geq2000$.
%If the \cs{spaceskip} is used,
%its stretch and shrink components are
%multiplied and divided respectively by \cs{spacefactor}$/1000$.
If the \cs{spaceskip} is used,
its stretch and shrink components are
multiplied and divided respectively by \cs{spacefactor}$/1000$.
%Note that, if \cs{spaceskip} and \cs{xspaceskip} are
%defined in terms of \n{em}, they change with the font.
Note that, if \cs{spaceskip} and \cs{xspaceskip} are
defined in terms of \n{em}, they change with the font.
%\begin{example} Let the following macros be given:
%\begin{verbatim}
%\def\a.{\vrule height10pt width4pt\spacefactor=1000\relax}
%\def\b.{\vrule height10pt width4pt\spacefactor=3000\relax}
%\def\c{\vrule height10pt width4pt\relax}
%\end{verbatim}
% then
\begin{example} Let the following macros be given:
\begin{verbatim}
\def\a.{\vrule height10pt width4pt\spacefactor=1000\relax}
\def\b.{\vrule height10pt width4pt\spacefactor=3000\relax}
\def\c{\vrule height10pt width4pt\relax}
\end{verbatim}
then
%%\begin{disp}\leavevmode\PopIndentLevel
%\begin{disp}\leavevmode\PopIndentLevel
%\hbox{%
%$\vcenter{\hsize=3in \snugbox{%
%\begin{verbatim}
%\vbox{
%\fontdimen2\font=4pt % normal space
%\fontdimen7\font=3pt % extra space
%\a. \b. \c\par
%% zero extra space
%\fontdimen7\font=0pt
%\a. \b. \c\par
%% set \spaceskip for normal space
%\spaceskip=2\fontdimen2\font
%\a. \b. \c\par
%% set \xspaceskip
%\xspaceskip=2pt
%\a. \b. \c\par
%}
%\end{verbatim}
%}}$%
%%
%\quad\quad gives\quad\quad
%%
%\message{Check snug and drop!}%
%$\vcenter{\snugbox{\parindent0pt\parskip=0pt
%\def\a.{\vrule height10pt width4pt\spacefactor=1000\relax}
%\def\b.{\vrule height10pt width4pt\spacefactor=3000\relax}
%\def\c{\vrule height10pt width4pt\relax}
%\leavevmode\strut\par\hbox{}\hbox{}
%% set the normal space and extra space
%\fontdimen2\font=4pt \fontdimen7\font=3pt
%\a. \b. \c\par \vskip2\baselineskip
%% zero extra space
%\fontdimen7\font=0pt
%\a. \b. \c\par \vskip2\baselineskip
%% set \spaceskip for normal space
%\spaceskip=2\fontdimen2\font
%\a. \b. \c\par \vskip2\baselineskip
%% set \xspaceskip
%\xspaceskip=2pt
%\a. \b. \c\par \leavevmode\strut
%}}$%
%%
%}
%%\end{disp}
\hbox{%
$\vcenter{\hsize=3in \snugbox{%
\begin{verbatim}
\vbox{
\fontdimen2\font=4pt % normal space
\fontdimen7\font=3pt % extra space
\a. \b. \c\par
% zero extra space
\fontdimen7\font=0pt
\a. \b. \c\par
% set \spaceskip for normal space
\spaceskip=2\fontdimen2\font
\a. \b. \c\par
% set \xspaceskip
\xspaceskip=2pt
\a. \b. \c\par
}
\end{verbatim}
}}$%
%
\quad\quad gives\quad\quad
%
\message{Check snug and drop!}%
$\vcenter{\snugbox{\parindent0pt\parskip=0pt
\def\a.{\vrule height10pt width4pt\spacefactor=1000\relax}
\def\b.{\vrule height10pt width4pt\spacefactor=3000\relax}
\def\c{\vrule height10pt width4pt\relax}
\leavevmode\strut\par\hbox{}\hbox{}
% set the normal space and extra space
\fontdimen2\font=4pt \fontdimen7\font=3pt
\a. \b. \c\par \vskip2\baselineskip
% zero extra space
\fontdimen7\font=0pt
\a. \b. \c\par \vskip2\baselineskip
% set \spaceskip for normal space
\spaceskip=2\fontdimen2\font
\a. \b. \c\par \vskip2\baselineskip
% set \xspaceskip
\xspaceskip=2pt
\a. \b. \c\par \leavevmode\strut
}}$%
%
}
%\end{disp}
%In all of these lines the glue is set at natural width. In the first
%line the high space factor value after \cs{b} causes the extra
%space \cs{fontdimen7} to be added. If this is zero (second line), the
%only difference between space factor values is the stretch/shrink
%ratio. In the third line the \cs{spaceskip} is taken
%for all space factor values. If the \cs{xspaceskip} is nonzero,
%it is taken (fourth line) instead of the \cs{spaceskip}
%for the high value of the space factor.
%\end{example}
In all of these lines the glue is set at natural width. In the first
line the high space factor value after \cs{b} causes the extra
space \cs{fontdimen7} to be added. If this is zero (second line), the
only difference between space factor values is the stretch/shrink
ratio. In the third line the \cs{spaceskip} is taken
for all space factor values. If the \cs{xspaceskip} is nonzero,
it is taken (fourth line) instead of the \cs{spaceskip}
for the high value of the space factor.
\end{example}
%%\point[tie] Control space and tie
%\section{Control space and tie}
%\label{tie}
%\point[tie] Control space and tie
\section{Control space and tie}
\label{tie}
%The control character \csc{\char32}, \indextermbus{control}{space}
%is a horizontal command
%which inserts a space, \csidx{\char32}
%acting as if the current space factor is~1000.
%However, it does not affect the value of \cs{spacefactor}.
The control character \csc{\char32}, \indextermbus{control}{space}
is a horizontal command
which inserts a space, \csidx{\char32}
acting as if the current space factor is~1000.
However, it does not affect the value of \cs{spacefactor}.
%Control space has two main uses. First, it is convenient to use after
%a control sequence: \verb+\TeX\ is fun!+
%Secondly, it can be used after abbreviations when \cs{nonfrenchspacing}
%(see below) is in effect. For example:
%\begin{verbatim}
%\hbox spread 9pt{\nonfrenchspacing
% The Reverend Dr. Drofnats}
%\end{verbatim}
%gives
%\begin{disp} \hbadness=10000 \leavevmode
%\hbox spread 9pt{\nonfrenchspacing
% The Reverend Dr. Drofnats}\end{disp}
%while
%\begin{verbatim}
%\hbox spread 9pt{\nonfrenchspacing
% The Reverend Dr.\ Drofnats}
%\end{verbatim}
%gives
%\begin{disp} \hbadness=10000 \leavevmode
%\hbox spread 9pt{\nonfrenchspacing
% The Reverend Dr.\ Drofnats}\end{disp}
%(The \n{spread 9pt} is used to make the effect more visible.)
Control space has two main uses. First, it is convenient to use after
a control sequence: \verb+\TeX\ is fun!+
Secondly, it can be used after abbreviations when \cs{nonfrenchspacing}
(see below) is in effect. For example:
\begin{verbatim}
\hbox spread 9pt{\nonfrenchspacing
The Reverend Dr. Drofnats}
\end{verbatim}
gives
\begin{disp} \hbadness=10000 \leavevmode
\hbox spread 9pt{\nonfrenchspacing
The Reverend Dr. Drofnats}\end{disp}
while
\begin{verbatim}
\hbox spread 9pt{\nonfrenchspacing
The Reverend Dr.\ Drofnats}
\end{verbatim}
gives
\begin{disp} \hbadness=10000 \leavevmode
\hbox spread 9pt{\nonfrenchspacing
The Reverend Dr.\ Drofnats}\end{disp}
(The \n{spread 9pt} is used to make the effect more visible.)
%The active character (in the plain format) tilde or
%\indexterm{tie},~\n{\char126},
%\term ~@\char126\par
%uses control space: it is defined as
%\begin{verbatim}
%\catcode`\~=\active
%\def~{\penalty10000\ }
%\end{verbatim}
%Such an active tilde is called a `tie'; it inserts an ordinary
%amount of space, and prohibits breaking at this space.
The active character (in the plain format) tilde or
\indexterm{tie},~\n{\char126},
\term ~@\char126\par
uses control space: it is defined as
\begin{verbatim}
\catcode`\~=\active
\def~{\penalty10000\ }
\end{verbatim}
Such an active tilde is called a `tie'; it inserts an ordinary
amount of space, and prohibits breaking at this space.
%%\point More on the space factor
%\section{More on the space factor}
%\point More on the space factor
\section{More on the space factor}
%%\spoint Space factor assignments
%\subsection{Space factor assignments}
%\spoint Space factor assignments
\subsection{Space factor assignments}
%The space factor of a particular character
%is contained in its \indexterm{spacefactor code}
%and can be assigned as
%\cstoidx sfcode\par
%\begin{disp}\cs{sfcode}\gr{8-bit number}\gr{equals}\gr{number}\end{disp}
The space factor of a particular character
is contained in its \indexterm{spacefactor code}
and can be assigned as
\cstoidx sfcode\par
\begin{disp}\cs{sfcode}\gr{8-bit number}\gr{equals}\gr{number}\end{disp}
%\IniTeX\ assigns a space factor code of 1000 to all characters
%\label{ini:sf}%
%except uppercase characters; they get a space factor code of~999.
%The plain format then assigns space factor codes greater than
%1000 to various punctuation symbols, for instance
%\verb-\sfcode`\.=3000-, which triples the stretch and shrink
%after a full stop. Also, for all space factor values $\geq2000$
%the extra space is added; see above.
\IniTeX\ assigns a space factor code of 1000 to all characters
\label{ini:sf}%
except uppercase characters; they get a space factor code of~999.
The plain format then assigns space factor codes greater than
1000 to various punctuation symbols, for instance
\verb-\sfcode`\.=3000-, which triples the stretch and shrink
after a full stop. Also, for all space factor values $\geq2000$
the extra space is added; see above.
%%\spoint Punctuation
%\subsection{Punctuation}
%\label{sec:sf-punct}
%\spoint Punctuation
\subsection{Punctuation}
\label{sec:sf-punct}
%Because the space factor cannot jump from a value below 1000
%to one above, a punctuation symbol after an uppercase
%character will not have the effect on the interword space
%that punctuation after a lowercase character has.
Because the space factor cannot jump from a value below 1000
to one above, a punctuation symbol after an uppercase
character will not have the effect on the interword space
that punctuation after a lowercase character has.
%\begin{example}
%\begin{verbatim}
%a% \sfcode`a=1000, space factor becomes 1000
%.% \sfcode`.=3000, spacefactor becomes 3000
% % subsequent spaces will be increased.
%A% \sfcode`A=999, space factor becomes 999
%.% \sfcode`.=3000, space factor becomes 1000
% % subsequent spaces will not be increased.
%\end{verbatim}
%\end{example}
\begin{example}
\begin{verbatim}
a% \sfcode`a=1000, space factor becomes 1000
.% \sfcode`.=3000, spacefactor becomes 3000
% subsequent spaces will be increased.
A% \sfcode`A=999, space factor becomes 999
.% \sfcode`.=3000, space factor becomes 1000
% subsequent spaces will not be increased.
\end{verbatim}
\end{example}
%Thus, initials
%are not mistaken for sentence ends.
%If an uppercase character does end a sentence, for instance
%\begin{verbatim}
%... and NASA.
%\end{verbatim}
%there are several solutions:
%\begin{verbatim}
%... NASA\spacefactor=1000.
%\end{verbatim}
%or
%\begin{verbatim}
%... NASA\hbox{}.
%\end{verbatim}
%which abuses the fact that after
%a box the space factor is set to~1000.
%The \LaTeX\ macro \cs{@} is equivalent to the first
%possibility.
Thus, initials
are not mistaken for sentence ends.
If an uppercase character does end a sentence, for instance
\begin{verbatim}
... and NASA.
\end{verbatim}
there are several solutions:
\begin{verbatim}
... NASA\spacefactor=1000.
\end{verbatim}
or
\begin{verbatim}
... NASA\hbox{}.
\end{verbatim}
which abuses the fact that after
a box the space factor is set to~1000.
The \LaTeX\ macro \cs{@} is equivalent to the first
possibility.
%In the plain format two macros are defined that switch between
%\cstoidx frenchspacing\par
%\cstoidx nonfrenchspacing\par
%uniform interword spacing, \indexterm{frenchspacing},
%and extra space after punctuation, which is more an American custom.
%The macro \cs{frenchspacing} sets the space factor code
%of all punctuation to~1000; the macro \cs{nonfrenchspacing}
%sets it to values greater than~1000.
In the plain format two macros are defined that switch between
\cstoidx frenchspacing\par
\cstoidx nonfrenchspacing\par
uniform interword spacing, \indexterm{frenchspacing},
and extra space after punctuation, which is more an American custom.
The macro \cs{frenchspacing} sets the space factor code
of all punctuation to~1000; the macro \cs{nonfrenchspacing}
sets it to values greater than~1000.
%Here are the actual definitions from \n{plain.tex}:
%\begin{verbatim}
%\def\frenchspacing{\sfcode`\.\@m \sfcode`\?\@m
% \sfcode`\!\@m \sfcode`\:\@m
% \sfcode`\;\@m \sfcode`\,\@m}
%\def\nonfrenchspacing{\sfcode`\.3000 \sfcode`\?3000
% \sfcode`\!3000 \sfcode`\:2000
% \sfcode`\;1500 \sfcode`\,1250 }
%\end{verbatim}
%where
%\begin{verbatim}
%\mathchardef\@m=1000
%\end{verbatim}
%is given in the plain format.
Here are the actual definitions from \n{plain.tex}:
\begin{verbatim}
\def\frenchspacing{\sfcode`\.\@m \sfcode`\?\@m
\sfcode`\!\@m \sfcode`\:\@m
\sfcode`\;\@m \sfcode`\,\@m}
\def\nonfrenchspacing{\sfcode`\.3000 \sfcode`\?3000
\sfcode`\!3000 \sfcode`\:2000
\sfcode`\;1500 \sfcode`\,1250 }
\end{verbatim}
where
\begin{verbatim}
\mathchardef\@m=1000
\end{verbatim}
is given in the plain format.
%French spacing is a somewhat controversial issue:
%\TeXbook\ acts as if non-French spacing
%is standard practice in printing, but for instance in~\cite{Hart}
%one finds `The space of the line should be used after
%all points in normal text'.
%Extra space after punctuation
%may be considered a `typewriter habit', but this is
%not entirely true. It used to be a lot more common
%than it is nowadays, and there are rational arguments
%against it: the full stop (point, period) at the end of a
%sentence, where extra punctuation is most visible,
%is rather small, so it carries some extra visual space
% of its own above it. This book does not use extra space
%after punctuation.
French spacing is a somewhat controversial issue:
\TeXbook\ acts as if non-French spacing
is standard practice in printing, but for instance in~\cite{Hart}
one finds `The space of the line should be used after
all points in normal text'.
Extra space after punctuation
may be considered a `typewriter habit', but this is
not entirely true. It used to be a lot more common
than it is nowadays, and there are rational arguments
against it: the full stop (point, period) at the end of a
sentence, where extra punctuation is most visible,
is rather small, so it carries some extra visual space
of its own above it. This book does not use extra space
after punctuation.
%%\spoint Other non-letters
%\subsection{Other non-letters}
%\label{sec:sf-through-paren}
%\spoint Other non-letters
\subsection{Other non-letters}
\label{sec:sf-through-paren}
%The zero value of the space factor code makes
%characters that are not a letter and not punctuation
%`transparent' for the space factor.
The zero value of the space factor code makes
characters that are not a letter and not punctuation
`transparent' for the space factor.
%\message{check break after Example}
%\begin{example}
%\begin{verbatim}
%a% \sfcode`a=1000, space factor becomes 1000
%.% \sfcode`.=3000, spacefactor becomes 3000
% % subsequent spaces will be increased.
%a% \sfcode`a=1000, space factor becomes 1000
%.% \sfcode`.=3000, space factor becomes 3000
%)% \sfcode`)=0, space factor stays 3000
% % subsequent spaces will be increased.
%\end{verbatim}
%\end{example}
\message{check break after Example}
\begin{example}
\begin{verbatim}
a% \sfcode`a=1000, space factor becomes 1000
.% \sfcode`.=3000, spacefactor becomes 3000
% subsequent spaces will be increased.
a% \sfcode`a=1000, space factor becomes 1000
.% \sfcode`.=3000, space factor becomes 3000
)% \sfcode`)=0, space factor stays 3000
% subsequent spaces will be increased.
\end{verbatim}
\end{example}
%%\spoint Other influences on the space factor
%\subsection{Other influences on the space factor}
%\spoint Other influences on the space factor
\subsection{Other influences on the space factor}
%The space factor is 1000 when \TeX\ starts forming a
%horizontal list, in particular after \cs{indent}, \cs{noindent},
%and directly after a display. It is also 1000 after
%a \cs{vrule}, an accent, or a \gr{box} (in horizontal mode), but
%it is not influenced by \cs{unhbox} or \cs{unhcopy}
%commands.
The space factor is 1000 when \TeX\ starts forming a
horizontal list, in particular after \cs{indent}, \cs{noindent},
and directly after a display. It is also 1000 after
a \cs{vrule}, an accent, or a \gr{box} (in horizontal mode), but
it is not influenced by \cs{unhbox} or \cs{unhcopy}
commands.
%In the first column of a \cs{valign} the space factor of
%the surrounding horizontal list is carried over; similarly,
%after a vertical alignment the space factor is set to the
%value reached in the last column.
In the first column of a \cs{valign} the space factor of
the surrounding horizontal list is carried over; similarly,
after a vertical alignment the space factor is set to the
value reached in the last column.
%\endofchapter
\endofchapter
\end{document}