Debian Codegraph @

texmf-dist/doc/fonts/chess/dutch-tt.tex

raw
1 %
2 % dutch-tt.tex
3 % ----------------
4 % A plain TeX torture test for the chess.sty style in combination with
5 % dutch.sty.
6 % Author : Piet Tutelaers (internet: [email protected])
7 % Version: 1.2 (June 1991)
8 %
9 \input dutch.sty
10 \input chess.sty
11
12 \tracinglostchars=1
13
14 {\bf Torture test for {\tt chess.sty}}
15
16 Check if language support for Dutch is working:
17 \board{tpldklpt}
18 {iiiiiiii}
19 { * * * *}
20 {* * * * }
21 { * * * *}
22 {* * * * }
23 {IIIIIIII}
24 {TPLDKLPT}
25
26 $$\showboard$$
27
28 Let's define a position:
29 \position
30 \White(Ke1,Th1,h7,b2)
31 \Black(Ke8,Ta8,a5,c2)
32 \global\movecount=50
33 \global\Whitefalse
34 \endposition
35
36 $$\showboard$$
37
38 The castling test:
39 \ply e8c8!?
40 \ply e1g1
41
42 Both players have castled.
43 \ply c8e8?
44 \ply g1e1?
45
46 They move back their kings... Chess.sty does not check the
47 validity of moves.
48 \ply e8c8
49 \ply e1g1??
50
51 But now these moves are not typeset as castling moves because the kings have
52 moved.
53
54 And now the `en passant' test:
55 \ply a5a4
56 \move b2b4+ a4b3ep
57
58 A short analysis test: |54. b3+ a*b3| and White looses his pawn.
59 Better seems |54.Pf7 but not 54.Pg6 because then 54:Tg8!|.
60 And the promotion test (comment thanks to Jaap Sprey!):
61
62 \move h7h8 c2c1L!?
63
64 $$\showboard$$
65
66 Activation of analysis mode does not work inside arguments of macros but
67 you can group them around the macro!
68
69 |\centerline{55.Pf3 Pc6}|
70
71 Sometimes you want to use the {\tt \char124} character for other
72 purposes than to trigger the analysis mode. Use then the {\tt nochess}
73 environment. Within this environment you can reactivate the analysis
74 mode with the {\tt chess} environment.
75
76 \nochess
77 |55.Pf3 Pc6|
78
79 \chess
80 \centerline{55.Pf3 Pc6}
81 \endchess
82
83 |55.Pf3 Pc6|
84 \endnochess
85
86 |KRQDRTBLFPCS| that's it!
87 \bye
88