summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/chess/dutch-tt.ltx
blob: 9dcee979ffc66616391ba331bd7a9a261c006a9a (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
%
% dutch-tt.ltx
% ----------------
% A LaTeX test for the chess.sty style in combination with dutch. 
% Author : Piet Tutelaers (internet: rcpt@urc.tue.nl)
% Version: 1.2 (11 Jun 1991)
%
\documentstyle[twocolumn,dutch,chess]{article}
\tracinglostchars=1
\begin{document}

\subsection*{Torture test for \verb|chess.sty|}

\newgame

Let's play the first moves of Mestel's opening:
\move e2e4 c7c6
\move e4e5 d7d5  
\move g1f3 d8d6
\ply  e5d6

This capture is not longer treated as an `enpassant' Queen capture (thanks
Jonathan).

$$\showboard$$

Check if language support for Dutch is working:
\board{tpldklpt}
      {iiiiiiii}
      { * * * *}
      {* * * * }
      { * * * *}
      {* * * * }
      {IIIIIIII}
      {TPLDKLPT}

$$\showboard$$

\begin{position}
\White(Ke1,Th1,h7,b2)
\Black(Ke8,Ta8,a5,c2)
\global\movecount=50
\global\Whitefalse
\end{position}

$$\showboard$$

The castling test:
\ply         e8c8!?
\ply  e1g1

Both players have castled.
\ply         c8e8?
\ply  g1e1?

They move back their kings... Chess.sty does not check the
validity of moves.
\ply         e8c8
\ply  e1g1??

But now these moves are not typeset as castling moves because the kings have
moved.

And now the `en passant' test:
\ply         a5a4
\move b2b4+  a4b3ep

A short analysis test: |54. b3+ a*b3| and White looses his pawn.
Better seems |54.Pf7 but not 54.Pg6 because then 54:Tg8!|.
And the promotion test (comment thanks to Jaap Sprey!):
\move  h7h8	c2c1L!?

$$\showboard$$

Activation of analysis mode does not work inside arguments of macros but
you can group them around the macro!

|\centerline{55.Pf3 Pc6}|

Sometimes you want to use the {\tt \char124} character for other
purposes than to trigger the analysis mode.  Use then the {\tt nochess}
environment.  Within this environment you can reactivate the analysis
mode with the {\tt chess} environment. 

\begin{nochess}
\begin{tabular}{|c|}
no analysis mode!
\end{tabular}

\begin{chess}
\centerline{55.Pf3 Pc6}
\end{chess}

|55.Pf3 Pc6|
\end{nochess}

|KRQDRTBLFPCS| that's it!
\end{document}