summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/ptexdir/tests/kinsoku_table.tex
blob: 52b21fdbf86bc73cf8aa0c82a62368a5b33ff64e (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
%#!uptex -ini
\let\dump\relax
\input plain
\newcount\fuga\newcount\dflt
\fuga="3300
\iffalse
  \global\let\prebreakpenalty=\inhibitxspcode
  \dflt=3
\else
  \dflt=0
\fi

\scrollmode
\newcount\hoge\hoge="3000
\loop\ifnum\hoge<\fuga
  \message{\the\hoge}\prebreakpenalty\hoge=2
  \advance\hoge 3\relax \repeat

\message{<\the\prebreakpenalty"3003, \the\prebreakpenalty"4000>}% 2, D
{
  \prebreakpenalty"3003=\dflt\relax
  \global\prebreakpenalty"4000=1\relax% error
\message{<\the\prebreakpenalty"3003, \the\prebreakpenalty"4000>}% D, D
}

\message{<\the\prebreakpenalty"3003, \the\prebreakpenalty"4000>}% 2, D

{
  \global\prebreakpenalty"3003=\dflt\relax
  \prebreakpenalty"4000=1\relax% no error
\message{<\the\prebreakpenalty"3003, \the\prebreakpenalty"4000>}% D, 1
}
\message{<\the\prebreakpenalty"3003, \the\prebreakpenalty"4000>}% D, D

\prebreakpenalty"4000=1\relax% no error

\message{<\the\prebreakpenalty"3003, \the\prebreakpenalty"4000,
  \the\prebreakpenalty"3549>}% D, 1, D

\prebreakpenalty"4000=\dflt\relax

\prebreakpenalty"3549=1\relax% no error

\message{<\the\prebreakpenalty"3003, \the\prebreakpenalty"4000,
  \the\prebreakpenalty"3549>}% D, D, 1


\end