| 1 |
% |
| 2 |
% TUGboat.ltx |
| 3 |
% ----------- |
| 4 |
% LaTeX source of TUGboat article |
| 5 |
% Author : Piet Tutelaers (internet: [email protected]) |
| 6 |
% Version: 1.2 (Dec 1991) |
| 7 |
% Documents new features from chess.sty version 1.2 and reflects |
| 8 |
% changes. See header of chess.sty for a complete list. |
| 9 |
|
| 10 |
\documentstyle[chess,ltugboat]{article} |
| 11 |
\title{A Font and a Style for Typesetting Chess using \LaTeX\ or \TeX} |
| 12 |
\author{Piet Tutelaers} |
| 13 |
\address{Computer Center\\ |
| 14 |
Eindhoven University of Technology\\ |
| 15 |
\POBox 513\\ |
| 16 |
5600 MB Eindhoven, NL} |
| 17 |
\netaddress[\network{internet}]{[email protected]} |
| 18 |
|
| 19 |
\begin{document} |
| 20 |
\maketitle |
| 21 |
|
| 22 |
\noindent |
| 23 |
The Berkeley Font Catalogue~\cite{Berkeley} demonstrates how a chess font |
| 24 |
in combination with troff can be used to typeset chess diagrams. This |
| 25 |
article has inspired me to build a chess font with \MF\ from the nice |
| 26 |
font, see diagram~1, I once bought from Schaakhuis De Haan (Arnhem, |
| 27 |
The Netherlands). |
| 28 |
\begin{figure} |
| 29 |
\input{epsf.sty} |
| 30 |
\epsfxsize=7cm |
| 31 |
$$\epsffile{board.epsf}$$ |
| 32 |
\centerline{Diagram~1: Original font} |
| 33 |
\centerline{(original size of board $9\times 9$ cm)} |
| 34 |
\end{figure} |
| 35 |
This `font' consists of a set of chess boards and separate sets of |
| 36 |
chess pieces. The pieces have to be pasted on the board after pulling |
| 37 |
them from a sheet of paper. This nowadays is still common practice |
| 38 |
for publishers. Before I used \MF\ I made enlargements of the |
| 39 |
pieces on graph-paper using my stereo microscope for which I have a |
| 40 |
drawing prism. This graph-paper makes it easy to read the coordinates |
| 41 |
of points that need to be given to \MF. For the development of the |
| 42 |
font I have used Amiga\MF\ which has graphical support. The design |
| 43 |
of the chess style has been done with Amiga\TeX. Both programs run |
| 44 |
comfortably on my private Amiga1000 with 2.5 Megabytes of internal |
| 45 |
memory. |
| 46 |
|
| 47 |
A chess font consists of 26 characters, with one character for the empty |
| 48 |
light square and one for the empty dark square. For each chess piece |
| 49 |
(Pawn, kNight, Bishop, Rook, Queen, King) there are four characters to |
| 50 |
represent that piece (White, Black) on both squares (light, dark). The |
| 51 |
troff chess font has also extra characters for the border of the board. |
| 52 |
These borders are added by the chess diagram macros as horizontal and |
| 53 |
vertical rules in my approach. Table~1 shows all characters from font |
| 54 |
{\tt chess10} (the size of a square being 10 points). |
| 55 |
\begin{table} |
| 56 |
\begin{flushleft}\tt |
| 57 |
\newfont{\CH}{chess10} |
| 58 |
\begin{tabular}{cccccccccc} |
| 59 |
P & \CH P & O & \CH O & p & \CH p & o & \CH o & 0 & \CH 0 \\ |
| 60 |
N & \CH N & M & \CH M & n & \CH n & m & \CH m & Z & \CH Z \\ |
| 61 |
B & \CH B & A & \CH A & b & \CH b & a & \CH a \\ |
| 62 |
R & \CH R & S & \CH S & r & \CH r & s & \CH s \\ |
| 63 |
Q & \CH Q & L & \CH L & q & \CH q & l & \CH l \\ |
| 64 |
K & \CH K & J & \CH J & k & \CH k & j & \CH j |
| 65 |
\end{tabular} |
| 66 |
\end{flushleft} |
| 67 |
\caption{Character encodings of {\tt chess10}} |
| 68 |
\end{table} |
| 69 |
|
| 70 |
There is an extra font {\tt chessf10} that contains only the so-called |
| 71 |
chess figurines (King, Queen, Rook, Bishop, kNight). With this font the |
| 72 |
move 25.~N5|*|g3, in short algebraic notation, can be typeset as |25. N5*g3|. |
| 73 |
Next to {\tt chess10} there are {\tt chess20} and {\tt chess30}. The 20-point |
| 74 |
version is used in the chess style because the diagrams made with |
| 75 |
it fit nicely in a twocolumn A4 page. But it would be easy to make |
| 76 |
another size font by changing only one parameter. |
| 77 |
|
| 78 |
The king has given me the biggest trouble to {\manual META}fy. If you |
| 79 |
compare the original font with my {\manual META}imitation, you will see |
| 80 |
a few differences. For one thing, the chess board has no labels for |
| 81 |
rows and lines. These can be added to the diagram macros if desired. |
| 82 |
The pieces in the original font use shadings to get a better contrast |
| 83 |
with the dark squares. The rest of the differences have to be ascribed |
| 84 |
to my insufficient knowledge of \MF. |
| 85 |
|
| 86 |
I have long hesitated to publish my {\manual META}copies of the chess |
| 87 |
font in \TUB. I have seriously tried to find the designer or owner of |
| 88 |
the original font. According to the Dutch firm that has taken over |
| 89 |
Schaakhuis De Haan, I could safely publish them because the fonts are |
| 90 |
not sold any longer. I hope this article helps in finding the designer |
| 91 |
of this very nice chess font and that he is not upset with my {\manual |
| 92 |
META}copy of it. |
| 93 |
|
| 94 |
Having a nice set of chess fonts is one thing; typesetting chess using |
| 95 |
them is another thing. When I accepted the editorship of our |
| 96 |
`Schaakmaatje', as my chess club `Schaakclub Geldrop' calls its |
| 97 |
chess magazine, I used \TeX\ and some macros to typeset chess diagrams. |
| 98 |
After giving the \LaTeX\ course at our Computer Center, I definitely |
| 99 |
wanted to move to this macro set. Especially the many available styles, |
| 100 |
and the need to have a simple macro for typesetting tables, makes |
| 101 |
\LaTeX\ a lot simpler to use. |
| 102 |
|
| 103 |
\begin{position} |
| 104 |
\White(Kc2,Bf8,Nb4,b3,g7) |
| 105 |
\Black(Ka3,b6) |
| 106 |
\end{position} |
| 107 |
|
| 108 |
\begin{figure} |
| 109 |
$$\showboard$$ |
| 110 |
\centerline{Diagram~2: White mates in three moves} |
| 111 |
\end{figure} |
| 112 |
|
| 113 |
\subsubsection*{Chess playing macros} |
| 114 |
When some macros to play chess in \TeX{} appeared in \TUB~\cite{Appelt}, |
| 115 |
I used the ideas presented to make my own chess style. As a typical |
| 116 |
example of an annotated chess game I have used a part of the game Fisher |
| 117 |
played against Tal during the Candidates' Tournament of 1959. In this |
| 118 |
tournament the sixteen aged Fisher lost four times from Tal who by |
| 119 |
winning this tournament earned the right to meet Botvinnik for the world |
| 120 |
championship. The game shows a real fight between two very offensive |
| 121 |
players. The game itself is annotated by Fisher. Both the input |
| 122 |
and the output are included on page~\pageref{chessgame}. |
| 123 |
|
| 124 |
To typeset the main line with automatic updating of the chess position, |
| 125 |
{\tt chess.sty} has the macro \verb+\newgame+, which starts a new game, and |
| 126 |
the environment {\tt position}, to set up a position other than the |
| 127 |
initial one. The chess position after the 25th move in the game |
| 128 |
Fisher--Tal (see diagram~3 on page~\pageref{chessgame}) is defined with: |
| 129 |
\begin{quote}\small |
| 130 |
\begin{verbatim} |
| 131 |
\begin{position} |
| 132 |
\White(Kh1,Qe6,Re1,a2,b2,c2,g2,h2) |
| 133 |
\Black(Kf8,Qb8,Rd7,Rg8,Be7,a6,b4,h7) |
| 134 |
\global\Whitetrue\global\movecount=25 |
| 135 |
\end{position} |
| 136 |
\end{verbatim} |
| 137 |
\end{quote}% |
| 138 |
\noindent |
| 139 |
\verb+\Whitetrue+ gives the turn to White; \verb+\Whitefalse+ gives it |
| 140 |
to Black. Setting the move counter is achieved with |
| 141 |
\verb+\movecount=25+. The \verb+\global+ is needed because both |
| 142 |
commands are used inside an environment. |
| 143 |
|
| 144 |
{\samepage |
| 145 |
There exists another macro \verb+\board+ for defining a chess position in |
| 146 |
case automatic updating is not wanted. This macro is used for the mate in |
| 147 |
three problem (see diagram~2): |
| 148 |
\begin{quote}\small |
| 149 |
\begin{verbatim} |
| 150 |
\board{ * * B *} |
| 151 |
{* * * P } |
| 152 |
{ p * * *} |
| 153 |
{* * * * } |
| 154 |
{ N * * *} |
| 155 |
{kP* * * } |
| 156 |
{ *K* * *} |
| 157 |
{* * * * } |
| 158 |
\end{verbatim} |
| 159 |
\end{quote}} |
| 160 |
\begin{nochess} % prevent the `|' to become active! |
| 161 |
\noindent |
| 162 |
Notice that the user of {\tt chess.sty} doesn't need to know the character |
| 163 |
encodings from table~1! He only needs to know the abbreviations of pieces |
| 164 |
(uppercase for White and lowercase for Black) and that empty squares are |
| 165 |
represented by a \verb*+ + (light) or a \verb+*+ (dark). |
| 166 |
|
| 167 |
To show the board in either case, one needs to call the macro |
| 168 |
\verb+\showboard+ or \verb+$$\showboard$$+ if the board should be centered. |
| 169 |
|
| 170 |
To automatically update a position defined by the {\tt position} |
| 171 |
environment there are two macros: \verb+\ply+ and \verb+\move+. If |
| 172 |
White's move is not followed by some analysis, the macro \verb+\move+ |
| 173 |
can be used. Otherwise the move has to be broken down into two plies |
| 174 |
(half moves) with \verb+\ply+. The argument(s) of \verb+\ply+ and |
| 175 |
\verb+\move+ contain the from square followed by the to square of the |
| 176 |
moving piece, or the King in case of castling. A square is represented |
| 177 |
as a column \verb+[a-h]+ followed by the row \verb+[1-8]+. In |
| 178 |
correspondence chess a similar notation is used except for the columns |
| 179 |
which are also denoted as decimals \verb+[1-8]+. I think that using |
| 180 |
letters is less confusing and reflects the way at least in Europe |
| 181 |
chess players think. |
| 182 |
|
| 183 |
If a pawn arrives at its final destination, it becomes a Queen, Rook, |
| 184 |
Bishop or kNight \verb+{Q|R|B|N}+. If the promotion piece is omitted a |
| 185 |
default Queen is taken. Moves can also be commented with things like |
| 186 |
\verb+!+~for good moves, \verb+??+~for exceptional bad moves, and so |
| 187 |
on. So the syntax, in a free style of Extended Backus Naur Form, of an |
| 188 |
argument for both \verb+\ply+ and \verb+\move+ can be described as: |
| 189 |
\begin{quote}\small |
| 190 |
\begin{verbatim} |
| 191 |
[a-h][1-8][a-h][1-8]{{Q|R|B|N}comment} |
| 192 |
\end{verbatim} |
| 193 |
\end{quote} |
| 194 |
\end{nochess} |
| 195 |
\noindent |
| 196 |
The translation of this move representation to long algebraic notation |
| 197 |
is carried out by the `invisible' macro \verb+\@ply+. For example: |
| 198 |
\verb+\@ply g1f3+ will result in |Ng1-f3| in case square f3 is empty |
| 199 |
or |Ng1*f3| in case of a capture, \verb+\@ply e1c1+ will result in |
| 200 |
|0-0-0|. |
| 201 |
|
| 202 |
To update and query the chess board, represented by 64 macros |
| 203 |
(\verb+\a1+, \verb+\a2+,\dots\verb+\h8+), \verb+\@ply+ uses the |
| 204 |
private macros \verb+\@set+ and \verb+\@get+. The value of a square |
| 205 |
can either be empty (letter \verb+E+), a White piece (\verb+Q+, |
| 206 |
\verb+R+, \verb+B+, \verb+N+, \verb+P+) or a Black piece (\verb+q+, |
| 207 |
\verb+r+, \verb+b+, \verb+n+, \verb+p+). To update the chess position |
| 208 |
\verb+\@ply g1f3+ does a \verb+\@set[g1](E)+ to make the square g1 |
| 209 |
empty and a \verb+\@set[f3](N)+ to move the kNight to f3. The macro |
| 210 |
\verb+\@ply+ handles castling and the special pawn moves en passant |
| 211 |
capture and promotion. Because of its length the macro \verb+\@ply+ |
| 212 |
is not included. Basically, it is just a set of nested conditionals |
| 213 |
to cover all cases. Instead the macros \verb+\@set+ and \verb+\@get+, |
| 214 |
that might be of interest to other \TeX\ applications, are included |
| 215 |
here, together with \verb+\@showchar+ (the macro that maps a square |
| 216 |
value to the correct character encoding using \verb+\@get+) and |
| 217 |
\verb+\@emptyboard+ (a macro for clearing the chess board using |
| 218 |
\verb+\@set+). |
| 219 |
|
| 220 |
{\small |
| 221 |
\begin{verbatim} |
| 222 |
\def\@set[#1#2](#3){ |
| 223 |
%arguments: [a-h1-8](<letter>) |
| 224 |
\expandafter |
| 225 |
\xdef\csname#1#2\endcsname{#3}} |
| 226 |
|
| 227 |
\def\@get#1[#2#3]{%arguments:\cs[a-h1-8] |
| 228 |
\edef#1{\csname#2#3\endcsname}} |
| 229 |
|
| 230 |
\newcount\@c % column |
| 231 |
\newcount\@r % row |
| 232 |
\newcount\@sum % row+column |
| 233 |
|
| 234 |
\def\@col{\ifcase\@c\or a\or b\or c\or |
| 235 |
d\or e\or f\or g\or h\fi} |
| 236 |
\def\@showchar{ |
| 237 |
\@get\piece[\@col\the\@r] |
| 238 |
\if\piece E \ifodd\@sum 0\else Z\fi\else |
| 239 |
\if\piece P \ifodd\@sum P\else O\fi\else |
| 240 |
\if\piece p \ifodd\@sum p\else o\fi\else |
| 241 |
\if\piece R \ifodd\@sum R\else S\fi\else |
| 242 |
\if\piece B \ifodd\@sum B\else A\fi\else |
| 243 |
\if\piece N \ifodd\@sum N\else M\fi\else |
| 244 |
\if\piece r \ifodd\@sum r\else s\fi\else |
| 245 |
\if\piece b \ifodd\@sum b\else a\fi\else |
| 246 |
\if\piece n \ifodd\@sum n\else m\fi\else |
| 247 |
\if\piece K \ifodd\@sum K\else J\fi\else |
| 248 |
\if\piece Q \ifodd\@sum Q\else L\fi\else |
| 249 |
\if\piece k \ifodd\@sum k\else j\fi\else |
| 250 |
\if\piece q \ifodd\@sum q\else l\fi\else |
| 251 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi} |
| 252 |
|
| 253 |
% inner loop needs extra { ... } |
| 254 |
|
| 255 |
\def\@emptyboard{ |
| 256 |
\@r=1 |
| 257 |
\loop |
| 258 |
{\@c=1 |
| 259 |
\loop |
| 260 |
\@set[\@col\the\@r](E) |
| 261 |
\ifnum\@c<8 \advance\@c by1 |
| 262 |
\repeat} |
| 263 |
\ifnum\@r<8 \advance\@r by 1 |
| 264 |
\repeat |
| 265 |
} |
| 266 |
\end{verbatim}} |
| 267 |
|
| 268 |
\begin{nochess} % prevent the `|' to become active! |
| 269 |
\subsubsection*{Analysis mode} |
| 270 |
In order to save space tournament bulletins often prefer short algebraic |
| 271 |
notation. In this notation the from square of a piece is omitted. If a |
| 272 |
move otherwise would be ambigious, because another piece can reach the |
| 273 |
same destination, the letter of the column or the number of the row from |
| 274 |
the originating square is added. The short and long algebraic notation |
| 275 |
is also used in analysis mode when we annotate moves from the main line |
| 276 |
or a variation. To make the typesetting of these move notations easy |
| 277 |
and compact, I have introduced a pair of \verb+|+\ldots\verb+|+ to |
| 278 |
activate the algebraic notation. Unfortunately this character pair can |
| 279 |
not be used within arguments of macros. But you can of course use the |
| 280 |
pair outside the macro like \verb+|\centerline{25. Kf8!}|+. Or if you |
| 281 |
prefer you can use the {\tt chess}-environment instead. Because \LaTeX\ |
| 282 |
uses this character in the {\tt tabular} environment to draw vertical |
| 283 |
rules I have made an environment {\tt nochess} that can be used to |
| 284 |
prevent that the \verb+|+ character will activate the analysing mode. |
| 285 |
Within the {\tt nochess} environment you can use the environment {\tt |
| 286 |
chess} to get analysis mode again. Here follow some examples to show |
| 287 |
how short and long algebraic notation can be generated in analysing |
| 288 |
mode: |
| 289 |
\begin{tabular}{ll} |
| 290 |
\multicolumn{1}{c}{\bf input} & \multicolumn{1}{c}{\bf output} \\[.2pt] |
| 291 |
\verb^|21. Nf3-e5??, 0-0!|^ & \begin{chess}21. Nf3-e5??, 0-0!\end{chess} \\ |
| 292 |
\verb^|21.: Ke8*f8|^ & \begin{chess}21.: Ke8*f8 \end{chess} \\ |
| 293 |
\verb^|21. Nfe5, K*f8|^ & \begin{chess}21. Nfe5, K*f8 \end{chess} \\ |
| 294 |
\verb^|21.: f8Q+|^ & \begin{chess}21.: f8Q+ \end{chess} |
| 295 |
\end{tabular} |
| 296 |
\end{nochess} |
| 297 |
\noindent |
| 298 |
In the analysing mode some characters have a special meaning. The |
| 299 |
`\verb+*+' becomes a `|*|' to denote a capture, the `\verb+-+' is |
| 300 |
mapped to `|-|' and the `\verb+:+' is used as an abbreviation for |
| 301 |
`|:|' as one need if the analysis starts with a Black move. |
| 302 |
|
| 303 |
The chess macros have also support for different languages thanks to the |
| 304 |
possibilities of the babel package from Johannes Braams~\cite{Braams}. |
| 305 |
This package can be used within plain \TeX\ and \LaTeX\ in \TeX3.0 or in |
| 306 |
older versions. The names of the chess pieces can be choosen according |
| 307 |
to their Dutch abbreviations by specifying the language {\tt dutch} |
| 308 |
before the {\tt chess} style: |
| 309 |
\begin{quote}\small |
| 310 |
\begin{verbatim} |
| 311 |
\documentstyle[dutch,chess]{...} |
| 312 |
\end{verbatim} |
| 313 |
\end{quote} |
| 314 |
\noindent |
| 315 |
In Dutch the letters K (`koning'), D (`dame'), T (`toren'), L (`loper') |
| 316 |
and P (`paard') are used to denote the king, queen, rook, bishop and |
| 317 |
knight respectivally. These letters are used in the macros \verb+\move+ |
| 318 |
and \verb+\ply+, only if you provide a promotion piece, within the |
| 319 |
analysis mode and in the {\tt position} environment. In the |
| 320 |
\verb+\board+ macro we use the same letters to denote the White pieces |
| 321 |
and the corresponding lowercase letters to indicate the Black piece. In |
| 322 |
this macro we need also a letter to represent the pawn. Because both |
| 323 |
`pion' (pawn) and `paard' (knight) start with a `p' I have choosen the |
| 324 |
letter `I' for the `pIon'. |
| 325 |
|
| 326 |
Hopefully the examples above and the extract of the game Fisher--Tal on |
| 327 |
page~\pageref{chessgame} are further self explaining. |
| 328 |
|
| 329 |
% Redefine chess.sty to get similar layout as in Informator |
| 330 |
\makeatletter |
| 331 |
\def\@dots{\ldots} |
| 332 |
\resetat |
| 333 |
% |
| 334 |
\subsubsection*{Tournament style} |
| 335 |
To illustrate the tournament style I have included the complete |
| 336 |
example game of Fisher against Tal from~\cite{Fisher} in the style |
| 337 |
that is used in the Chess Informant~\cite{informant}. In this book |
| 338 |
special symbols are used for often used chess terminology. |
| 339 |
Table~\ref{symbols} shows the list of the symbols I needed in the |
| 340 |
Fisher game. In ~\cite{Fisher} the moves |50: Kc7 51. Rb5| are |
| 341 |
omitted. But this is corrected in his later book~\cite{Fisher80}. |
| 342 |
|
| 343 |
\begin{table}\small |
| 344 |
\begin{tabular}{lll} |
| 345 |
& \bf (La)TeX & \bf meaning \\[.1cm] |
| 346 |
\wbetter & \verb+\wbetter+ & White stands slightly better \\ |
| 347 |
\bbetter & \verb+\bbetter+ & Black stands slightly better \\ |
| 348 |
\wupperhand & \verb+\wupperhand+ & White has the upper hand \\ |
| 349 |
\bupperhand & \verb+\bupperhand+ & Black has the upper hand \\ |
| 350 |
\wdecisive & \verb+\wdecisive+ & White has a decisive advantage \\ |
| 351 |
\bdecisive & \verb+\bdecisive+ & Black has a decisive advantage \\ |
| 352 |
\withattack & \verb+\withattack+ & with attack \\ |
| 353 |
\betteris & \verb+\betteris+ & better is \\ |
| 354 |
\seppawns & \verb+\seppawns+ & separated pawns |
| 355 |
\end{tabular} |
| 356 |
\caption{Informant symbols}\label{symbols} |
| 357 |
\end{table} |
| 358 |
% Some macros to improve readability... |
| 359 |
\newenvironment{mainline}[2]{\bf\newcommand{\result}{#1}% |
| 360 |
\newcommand{\commentator}{#2}\begin{chess}}% |
| 361 |
{\end{chess}\finito{\result}{\commentator}} |
| 362 |
\newenvironment{variation}{[\begingroup\rm\ignorespaces}% |
| 363 |
{\endgroup]\ignorespaces} |
| 364 |
\newcommand{\finito}[2]{{\bf\hfill#1\hfill[#2]\par}} |
| 365 |
% |
| 366 |
\centerline{\sc Bobby Fisher -- Mikhail Tal} |
| 367 |
\smallskip |
| 368 |
\centerline{Belgrade (ct/27) 1959} |
| 369 |
\smallskip |
| 370 |
% |
| 371 |
\begin{mainline}{0~:~1}{Fisher} |
| 372 |
1. e4 c5 |
| 373 |
2. Nf3 d6 |
| 374 |
3. d4 cd4 |
| 375 |
4. Nd4 Nf6 |
| 376 |
5. Nc3 a6 |
| 377 |
6. Bc4 e6 |
| 378 |
7. Bb3 |
| 379 |
\begin{variation} |
| 380 |
7. 0-0 Be7 8. Bb3 Qc7 9. f4 b5 10. f5 b4 11. fe6!? (11. Nce2 e5 12. |
| 381 |
Nf3 Bb7\bbetter) bc3 12. ef7 Kf8 13 Bg5 Ng4!\bupperhand |
| 382 |
\end{variation} |
| 383 |
b5! |
| 384 |
\begin{variation} |
| 385 |
7: Be7? 8. f4 0-0 9. Qf3 Qc7 10. f5! (10. 0-0? b5 11. f5 b4! 12. Na4 |
| 386 |
e5 13. Ne2 Bb7\bbetter) e5 11. Nde2 b5 12. a3 Bb7 13. |
| 387 |
g4\wupperhand\withattack |
| 388 |
\end{variation} |
| 389 |
8. f4!? b4! |
| 390 |
9. Na4 Ne4 |
| 391 |
10. 0-0 g6? |
| 392 |
\begin{variation} |
| 393 |
\betteris 10: Bb7 |
| 394 |
\end{variation} |
| 395 |
11. f5! gf5 |
| 396 |
\begin{variation} |
| 397 |
11: ef5? 12. Bd5 Ra7 13. Nf5! gf5 14. Qd4 |
| 398 |
\end{variation} |
| 399 |
12. Nf5! Rg8 |
| 400 |
\begin{variation} |
| 401 |
\betteris 12: d5 13. Nh6 Bh6 14. Bh6; |
| 402 |
12: ef5? 13. Qd5 Ra7 14. Qd4 |
| 403 |
\end{variation} |
| 404 |
13. Bd5! Ra7 |
| 405 |
\begin{variation} |
| 406 |
13: ed5 14. Qd5 Bf5 15. Rf5 Ra7 16. Qe4 Re7 17. Qb4 Re2 18. Bg5! Rg5 |
| 407 |
19. Rg5 Qg5 20. Rb8\wdecisive \nochess PANOV \endnochess |
| 408 |
\end{variation} |
| 409 |
14. Be4? |
| 410 |
\begin{variation} |
| 411 |
\betteris 14. Be3! Nc5 15. Qh5! Rg6 (15: Na4 16 Ba7 ed5 17 Rae1) |
| 412 |
16. Rae1! \nochess KEVITZ\endnochess |
| 413 |
\end{variation} |
| 414 |
ef5 |
| 415 |
15. Bf5 Re7! |
| 416 |
16. Bc8 Qc8 |
| 417 |
17. Bf4? |
| 418 |
\begin{variation} |
| 419 |
\betteris 17. c3! Qc6 18. Rf2; |
| 420 |
17. Qd6? Rg2 18. Kg2 Re2 19. Kf3 Bd6 20. Ke2 Qc2\bdecisive |
| 421 |
\end{variation} |
| 422 |
Qc6! |
| 423 |
18. Qf3 Qa4 |
| 424 |
\begin{variation} |
| 425 |
18: Qf3 19. Rf3 Re2 20. Rf2 Rf2 21. Kf2\wbetter\seppawns |
| 426 |
\end{variation} |
| 427 |
19. Bd6 Qc6! |
| 428 |
20. Bb8 Qb6 |
| 429 |
\begin{variation} |
| 430 |
20: Qf3? 21. Rf3 Bg7 22. c3\wdecisive |
| 431 |
\end{variation} |
| 432 |
21. Kh1 Qb8 |
| 433 |
22. Qc6 |
| 434 |
\begin{variation} |
| 435 |
22. Rae1 Kd8! 23. Rd1 Kc7! (23: Kc8? 24. Qc6\wdecisive) 24. Qf4 |
| 436 |
(24. Rd4 Qb7!) Kb7 25. Rd6 Qc7 26. Qb4 Kc8 27. Ra6 Qb7! 28. Qb7 Kb7 |
| 437 |
29. Raf6 Rg7\equal; |
| 438 |
22: Rg6? 23. Qf7 Kd7 24. Rd1! Rd6 25. Rd6 Kd6 26. Rf6!\wdecisive |
| 439 |
\end{variation} |
| 440 |
Rd7 |
| 441 |
23. Rae1 |
| 442 |
\begin{variation} |
| 443 |
23. Rad1 Bd6 24. Rf7 (24. Rf6 Rg6 25. Rdd6 Qd6!) Qc7; |
| 444 |
23. Rf7 Qd6 |
| 445 |
\end{variation} |
| 446 |
Be7 |
| 447 |
\begin{variation} |
| 448 |
23: Kd8? 24. Rf7! Be7 25. Rfe7 Re7 26. Rd1\wdecisive |
| 449 |
\end{variation} |
| 450 |
24. Rf7 Kf7 |
| 451 |
25. Qe6 Kf8! |
| 452 |
\begin{variation} |
| 453 |
25: Kg7? 26. Qd7\wdecisive |
| 454 |
\end{variation} |
| 455 |
26. Qd7 |
| 456 |
\begin{variation} |
| 457 |
26. Rf1? Kg7 27. Rf7 Kh8 (28. Qd7 Rd8 29. Qg4 Qe5\bdecisive) |
| 458 |
\end{variation} |
| 459 |
Qd6 |
| 460 |
27. Qb7 Rg6 |
| 461 |
28. c3! a5 |
| 462 |
\begin{variation} |
| 463 |
28: bc3 29. Qc8 Bd8 30. Qc3\equal |
| 464 |
\end{variation} |
| 465 |
29. Qc8 |
| 466 |
\begin{variation} |
| 467 |
\betteris 29. cb4! Qb4 (29: ab4 30. a3! ba3 31. ba3 Qa3\equal) |
| 468 |
30. Qf3 Kg7 31. Qe2\equal |
| 469 |
\end{variation} |
| 470 |
Kg7 |
| 471 |
30. Qc4 Bd8 |
| 472 |
31. cb4 ab4 |
| 473 |
\begin{variation} |
| 474 |
31: Qb4 32. Qe2\equal |
| 475 |
\end{variation} |
| 476 |
32. g3? |
| 477 |
\begin{variation} |
| 478 |
32. Qe4 (32: Bc7 33. Qe7 Kg8 34. Qe8 Qf8 35. Qe4) |
| 479 |
\end{variation} |
| 480 |
Qc6 |
| 481 |
33. Re4 Qc4 |
| 482 |
34. Rc4 Rb6! |
| 483 |
\begin{variation} |
| 484 |
34: Be7? 35. a3! |
| 485 |
\end{variation} |
| 486 |
35. Kg2 Bf6 |
| 487 |
36. Kf3 Ke5 |
| 488 |
37. Ke3 Bg5 |
| 489 |
38. Ke2 Kd5 |
| 490 |
39. Kd3 Bf6 |
| 491 |
40. Rc2? Be5 |
| 492 |
41. Re2 Rf6 |
| 493 |
42. Rc2 Rf3 |
| 494 |
43. Ke2 Rf7 |
| 495 |
44. Kd3 Bd4! |
| 496 |
45. a3 |
| 497 |
\begin{variation} |
| 498 |
45. b3? Rf3 46. Ke2 Rf2 47. Qd3 Rc2 48. Kc2 Ke5\wdecisive |
| 499 |
\end{variation} |
| 500 |
b3 |
| 501 |
46. Rc8 |
| 502 |
\begin{variation} |
| 503 |
46. Re2 Rf3 47. Kd2 Bb2; |
| 504 |
46. Rd2 Rf3 47. Ke2 Rf2 |
| 505 |
\end{variation} |
| 506 |
Bb2 |
| 507 |
47. Rd8 Kc6 |
| 508 |
48. Rb8 Rf3 |
| 509 |
49. Kc4 Rc3 |
| 510 |
50. Kb4 Kc7 % The Black move and the next White move were forgotten in |
| 511 |
51. Rb5 Ba1 % Fisher's book ``My 60 Memorable Games'' and patiently copied |
| 512 |
52. a4 b2! % by some other authors (Bijl and Euwe) |
| 513 |
\begin{variation} |
| 514 |
53. Kc3 b1Q! |
| 515 |
\end{variation} |
| 516 |
\end{mainline} |
| 517 |
\smallskip |
| 518 |
\noindent |
| 519 |
The \LaTeX\ input of the above game looks like: |
| 520 |
{\small |
| 521 |
\begin{verbatim} |
| 522 |
% Some macros to improve readability... |
| 523 |
\newcommand{\finito}[2]{% |
| 524 |
{\bf\hfill#1\hfill[#2]\par}} |
| 525 |
\newenvironment{mainline}[2]{\bf |
| 526 |
\newcommand{\result}{#1}% |
| 527 |
\newcommand{\commentator}{#2}% |
| 528 |
\begin{chess}}% |
| 529 |
{\end{chess}\finito{\result}% |
| 530 |
{\commentator}} |
| 531 |
\newenvironment{variation}{[\begingroup |
| 532 |
\rm\ignorespaces}% |
| 533 |
{\endgroup]\ignorespaces} |
| 534 |
... |
| 535 |
\begin{mainline}{0~:~1}{Fisher} |
| 536 |
1. e4 c5 2. Nf3 d6 3. d4 cd4 |
| 537 |
4. Nd4 Nf6 5. Nc3 a6 6. Bc4 e6 |
| 538 |
... |
| 539 |
13. Bd5! Ra7 |
| 540 |
\begin{variation} |
| 541 |
13: ed5 14. Qd5 Bf5 15. Rf5 Ra7 |
| 542 |
16. Qe4 Re7 17. Qb4 Re2 |
| 543 |
18. Bg5! Rg5 19. Rg5 Qg5 |
| 544 |
20. Rb8\wdecisive |
| 545 |
\nochess PANOV \endnochess |
| 546 |
\end{variation} |
| 547 |
14. Be4? |
| 548 |
... |
| 549 |
\end{mainline} |
| 550 |
\end{verbatim}} |
| 551 |
\smallskip |
| 552 |
\noindent |
| 553 |
The mainline is typeset in boldface and the variations in roman. When we |
| 554 |
need to typeset a name we have to avoid the analysis mode by using the |
| 555 |
{\tt nochess} environment. The {\tt nochess} environment can be used in |
| 556 |
\LaTeX\ style (\verb+\begin{nochess}+\ldots\verb+\end{nochess}+) or in |
| 557 |
the shorter \TeX\ style (\verb+\nochess+\ldots\verb+\endnochess+). |
| 558 |
|
| 559 |
\subsubsection*{Using plain \TeX} |
| 560 |
To use {\tt chess.sty} in plain \TeX\ you need the following line |
| 561 |
for including the chess macros: |
| 562 |
\begin{quote}\small |
| 563 |
\begin{verbatim} |
| 564 |
\input chess.sty |
| 565 |
\end{verbatim} |
| 566 |
\end{quote} |
| 567 |
|
| 568 |
\noindent |
| 569 |
The {\tt nochess} and {\tt position} environments from {\tt chess.sty} |
| 570 |
should be replaced by \verb+\nochess+ \ldots \verb+\endnochess+ and |
| 571 |
\verb+\position+ \ldots \verb+\endposition+ pairs. |
| 572 |
|
| 573 |
\subsubsection*{Further wishes} |
| 574 |
The chess font and the chess style form a good basis for publishing |
| 575 |
about chess as is demonstrated by~\cite{Anjo,Rix}. But there are |
| 576 |
still some wishes to make the writing really enjoyable. My first wish |
| 577 |
would be a program with a chess board interface on which I can set up |
| 578 |
a position, play a variation and add text to the computer generated |
| 579 |
chess moves, go back to the main line, play another variation, and so |
| 580 |
on. I have seen a X11-based chess interface using hyperbuttons which |
| 581 |
provides a good starting point to make such a program! |
| 582 |
|
| 583 |
Surely the chess style can be improved and other style conventions |
| 584 |
added. If anybody does so, please let he send me his improvements. |
| 585 |
|
| 586 |
\subsubsection*{Availability} |
| 587 |
This article, the chess fonts and the corresponding style file with the |
| 588 |
complete game of Fisher against Tal and other examples can be retrieved |
| 589 |
(files {\tt chess.tar.Z} and {\tt chess.README}) from the file server |
| 590 |
{\tt sol.cs.ruu.nl (131.211.80.5)} via anonymous ftp from the |
| 591 |
directory {\tt TEX}. |
| 592 |
|
| 593 |
\subsubsection*{Acknowledgements} |
| 594 |
I would like to thank Victor Eijkhout for his help and criticism he |
| 595 |
gave me to improve both the chess style and the readability of this |
| 596 |
article. My thanks go also to Hugo van der Wolf for polishing my |
| 597 |
English, and to the {\tt UseNet} users who have sent me bugreports and |
| 598 |
have reported inconveniences present in version 1.0. Most of them are |
| 599 |
solved and will be made available in version 1.2. |
| 600 |
|
| 601 |
\begin{thebibliography}{9} |
| 602 |
\bibitem{Anjo} |
| 603 |
{\em Tournooimagazine van de Halve Finale Ned. Kam\-pioen\-schap Schaken}, |
| 604 |
ed. by Anjo Anjowierden, Enschede. 1990. |
| 605 |
\bibitem{Appelt} |
| 606 |
{\em Typesetting Chess}, by Wolfgang Appelt, \tubissue{9}{3}, December 1988. |
| 607 |
\bibitem{Berkeley} |
| 608 |
{\em Berkeley Font Catalogue}, Ultrix--32 Supplementary Documents, |
| 609 |
Digital Equipment Corporation, Merrimack, New Hamshire, 1984. |
| 610 |
\bibitem{Braams} |
| 611 |
{\em Babel, a multilingual style-option system for use |
| 612 |
with \LaTeX's standard document styles}, by Johannes Braams, |
| 613 |
\tubissue{12}{2}, June 1991. |
| 614 |
\bibitem{Fisher} |
| 615 |
{\em My 60 Memorable Games}, by Bobby Fischer, |
| 616 |
Faber and Faber, London. 1969. ISBN 0-571-09312-4 |
| 617 |
\bibitem{Fisher80} |
| 618 |
{\em Fisher's Chess Games}, by Bobby Fischer, |
| 619 |
Oxford University Press, Oxford. 1980. ISBN 0-19-217566-1 |
| 620 |
\bibitem{informant} |
| 621 |
{\em Chess Informant 51}, ed. by Aleksandar Ma\-ta\-novi\'c, |
| 622 |
\v{S}ahovski Informator, Belgrade. 1991. ISBN 86-7297-024-1 |
| 623 |
\bibitem{Rix} |
| 624 |
{\em Dragon, The Bulletin of the Cambridge University Chess Club}, ed. |
| 625 |
by Steve Rix and John Wilson, December 1991. Cambridge. |
| 626 |
\end{thebibliography} |
| 627 |
|
| 628 |
\makesignature |
| 629 |
\input{TUGgame.ltx} |
| 630 |
\end{document} |