| 1 |
|
| 2 |
Installation of the chess macros |
| 3 |
-------------------------------- |
| 4 |
|
| 5 |
If you are already using the chess1.1 package then proceed with |
| 6 |
`Upgrading to 1.2' otherwise proceed with `Installation of the fonts and |
| 7 |
the chess-style'. |
| 8 |
|
| 9 |
1. Upgrading to 1.2 |
| 10 |
------------------- |
| 11 |
To use version 1.2 of the chess macros you must: |
| 12 |
- install the babel package |
| 13 |
- install the new chess.sty file |
| 14 |
- rename font chessfig10 into chessf10 (both the tfm-file and the pk-file) |
| 15 |
- read the CHANGES12 file. |
| 16 |
|
| 17 |
1.1 Install the babel package |
| 18 |
----------------------------- |
| 19 |
I have included only those parts of the babel-3.0b package that are used by |
| 20 |
the chess macros and example files. You can get the complete babel-package |
| 21 |
from one of the following sources: |
| 22 |
bitnet: |
| 23 |
* [email protected] (Europe) |
| 24 |
To get a list of all available files send the following |
| 25 |
message: |
| 26 |
get tex-nl filelist |
| 27 |
To get the babel package send the message (you will need |
| 28 |
`uudecode' and `zoo' in order to unpack the archive): |
| 29 |
send babel zoouue |
| 30 |
* ymir.claremont.edu (USA) |
| 31 |
internet: sol.cs.ruu.nl (Europe) |
| 32 |
via anonymous ftp |
| 33 |
from TEX/NTG/babel.zoo |
| 34 |
|
| 35 |
In order to use the new chess macros you will need: |
| 36 |
babel.switch |
| 37 |
chess12/inputs/babel[22|33].switch |
| 38 |
chess12/inputs/babel.sty |
| 39 |
chess12/inputs/latexhax.sty |
| 40 |
chess12/inputs/english.sty |
| 41 |
chess12/inputs/dutch.sty |
| 42 |
[ chess12/inputs/german.sty |
| 43 |
chess12/inputs/french.sty |
| 44 |
chess12/inputs/YOUR-LANGUAGE.sty ] |
| 45 |
|
| 46 |
Babel.switch is the file that handles language switching. If you use an |
| 47 |
old version of TeX (pre 3.0) then you have to use babel22.switch otherwise |
| 48 |
you will need babel33.switch. Only in the last case you will have full |
| 49 |
language support. Install the above files by copying them to a directory |
| 50 |
which is in your TEXINPUTS path. Copy either babel22.switch or |
| 51 |
babel33.switch as babel.switch to the same directory. |
| 52 |
|
| 53 |
1.2 Install the new chess.sty file |
| 54 |
---------------------------------- |
| 55 |
Copy chess12/inputs/chess.sty to a directory which is in your TEXINPUTS path. |
| 56 |
|
| 57 |
1.3 Rename font chessfig10 into chessf10 |
| 58 |
---------------------------------------- |
| 59 |
Rename your chessfig10.tfm into chessf10.tfm and your chessfig10.300pk |
| 60 |
into chessf10.300pk. This change is a service for our MSDOS users |
| 61 |
(including the TUGboat editors). |
| 62 |
|
| 63 |
You are ready to use the new macros. Read the file CHANGES12 to know |
| 64 |
what changes might be of importance to you. |
| 65 |
|
| 66 |
|
| 67 |
2. Installing the fonts and the chess-style |
| 68 |
------------------------------------------- |
| 69 |
Lots of people have a laserprinter with a Canon Engine (300dpi, write |
| 70 |
black). For those people I have included the pkfonts and the tfm-files. |
| 71 |
Installation of the chess-style and chessfonts, in this case, consists of |
| 72 |
the following steps (otherwise proceed with 3.): |
| 73 |
|
| 74 |
Installation of the chess macros should be very simple. The package consists |
| 75 |
of four different parts: |
| 76 |
A) style files: |
| 77 |
chess12/inputs/chess.sty (chess) |
| 78 |
chess12/inputs/babel22.switch (babel) |
| 79 |
chess12/inputs/babel33.switch (babel) |
| 80 |
chess12/inputs/babel.sty (babel) |
| 81 |
chess12/inputs/latexhax.sty (babel) |
| 82 |
chess12/inputs/english.sty (babel) |
| 83 |
chess12/inputs/dutch.sty (babel) |
| 84 |
[ chess12/inputs/a4.sty (optional) |
| 85 |
chess12/inputs/a4wide.sty (optional) |
| 86 |
chess12/inputs/fancyheadings.sty (optional) |
| 87 |
chess12/inputs/2side.tex (optional) ] |
| 88 |
|
| 89 |
These files consists of the chess macros and part of the babel |
| 90 |
package (see 1.2 how the full package can be obtained). Find out |
| 91 |
where your style (.sty) files are kept. (If you don't have |
| 92 |
permission to put the files on that place then you can put them |
| 93 |
where you like. But in this case you have to add that place to the |
| 94 |
TEXINPUTS search path so that TeX and LaTeX can locate them. Try to |
| 95 |
find out how that works for your system.) |
| 96 |
|
| 97 |
If you use an old version of TeX (before 3.0) then you must copy |
| 98 |
babel22.switch otherwise babel33.switch as babel.switch to the |
| 99 |
place you have choosen. The rest of the files can be copied |
| 100 |
straight away. If you have already babel then you only need to |
| 101 |
copy chess.sty. The files between [ ... ] are optional. I have |
| 102 |
included them for completeness because they are used somewhere |
| 103 |
in the example files. |
| 104 |
|
| 105 |
===> step a) install chess and babel style files |
| 106 |
[eventually adapt your TEXINPUTS search path] |
| 107 |
|
| 108 |
B) TeX font metric files: |
| 109 |
chess12/fonts/chess20.tfm (chess) |
| 110 |
chess12/fonts/chessf10.tfm (chess) |
| 111 |
[ chess12/fonts/chess10.tfm (chess) |
| 112 |
chess12/fonts/chess30.tfm (chess) ] |
| 113 |
|
| 114 |
This part is needed by TeX and LaTeX too because they contain the |
| 115 |
metrics and kerning information of the fonts. Put the files in the |
| 116 |
same directory as where the other .tfm files are kept. (If you |
| 117 |
don't have permission to put the files there then you can put them |
| 118 |
where you like. But in this case you have to add that place to the |
| 119 |
TEXFONTS search path so that TeX and LaTeX can locate them. Try to |
| 120 |
find out how that works for your system.) |
| 121 |
|
| 122 |
The files between [ ... ] are not used by the chess.sty macros. If |
| 123 |
you want to use them you may copy them also to the destination you |
| 124 |
have choosen. The file chess12/doc/boards.ltx shows how you can use |
| 125 |
them in LaTeX. |
| 126 |
|
| 127 |
===> step b) install .tfm files |
| 128 |
[eventually adapt your TEXFONTS search path] |
| 129 |
|
| 130 |
C) TeX packed font files: |
| 131 |
chess12/pkfonts/chess20.300pk (chess) |
| 132 |
chess12/pkfonts/chessf10.300pk (chess) |
| 133 |
[ chess12/pkfonts/chess10.300pk (chess) |
| 134 |
chess12/pkfonts/chess30.300pk (chess) ] |
| 135 |
|
| 136 |
This is perhaps the most cumbersome step in the installation. Not |
| 137 |
because it is really difficult but because there are so many |
| 138 |
different printers, previewers and drivers. Not to speak of the |
| 139 |
bloody limit of the three character extension of MSDOS. |
| 140 |
|
| 141 |
Try to find out how and where the pk-files are kept on your system |
| 142 |
(if you use the old fashioned pxl or gf-files you are really out of |
| 143 |
date!). If your system keeps the pk-files in directories ordered |
| 144 |
by fontsize the above fonts have perhaps to be renamed into: |
| 145 |
/usr/local/lib/tex/pkfonts/chess20.300pk (UNIX) |
| 146 |
TEX_ROOT:[fonts.300]chess20.pk (VAX-VMS/DECUS-TeX) |
| 147 |
TeX:pk/300/chess20.300pk (??AmigaTeX??) |
| 148 |
emtex\pixel.lj\300dpi\chess20.pk (emTeX) |
| 149 |
|
| 150 |
If you don't have permission to put the files on the place where the |
| 151 |
other pk-files are kept then you can put them where you like. But in |
| 152 |
this case you have to add that place to the search path of your |
| 153 |
favourite driver (TEXPKS for the PostScript driver `dvips' available on |
| 154 |
almost every system--recommended!) and previewer (XDVIFONTS for |
| 155 |
xdvi, this previewer runs on X-based terminals). Try to find out how |
| 156 |
that works on your system. |
| 157 |
|
| 158 |
===> step c) install pk-files |
| 159 |
[eventually adapt your driver and previewer search paths] |
| 160 |
|
| 161 |
D) Documentation and example files |
| 162 |
chess12/doc/boards.ltx LaTeX source demonstrating the 3 chess fonts |
| 163 |
chess12/doc/TUGboat.ltx TUGboat article (LaTeX main-source) |
| 164 |
chess12/doc/TUGgame.ltx TUGboat article (LaTeX inputted-source) |
| 165 |
chess12/doc/tal.ltx Fisher vs. Tal (LaTeX source) |
| 166 |
chess12/doc/tal.tex Fisher vs. Tal (TeX source) |
| 167 |
chess12/doc/Symbols.tex Informator symbols (TeX-version) |
| 168 |
chess12/doc/Symbols.ltx Informator symbols (LaTeX-version) |
| 169 |
chess12/doc/Kasparov.ltx Informator style example |
| 170 |
chess12/doc/SchaakMaatje.ltx our chess club magazine (Dutch!) |
| 171 |
chess12/doc/dutch-tt.ltx dutch LaTeX torture test |
| 172 |
chess12/doc/dutch-tt.tex dutch TeX torture test |
| 173 |
|
| 174 |
===> step d) print documentation |
| 175 |
[eventually adapt your TEXINPUTS search path so chess12/inputs |
| 176 |
is temporary included] |
| 177 |
|
| 178 |
You are now ready to use the chess macros. Print the documentation |
| 179 |
available in chess12/doc. The main documentation consists of the |
| 180 |
article (TUGboat.ltx and TUGgame.ltx) that will appear in TUGboat |
| 181 |
and the complete game of Fisher against Tal (tal.ltx and tal.tex). |
| 182 |
For testing the chessfonts on your printer or previewer I have |
| 183 |
included boards.ltx with its dvi-file and its PostScript output (.ps). |
| 184 |
For those who are not afraid to read Dutch there is a SchaakMaatje.ltx |
| 185 |
the magazine I made for our chess club. This example shows how the |
| 186 |
language support for Dutch is used. |
| 187 |
For testing new versions of chess.sty you may use the torture tests. |
| 188 |
|
| 189 |
3. Generating the fonts. |
| 190 |
------------------------ |
| 191 |
To generate the chess fonts you need METAFONT (the actual program needed |
| 192 |
is `mf'). |
| 193 |
|
| 194 |
To install font <font> (ex. chess20) you must: |
| 195 |
a) generate `<font>.tfm' and `<font>.<dpi>gf' (<dpi> is |
| 196 |
a number depending on the resolution of your output device: 100 for |
| 197 |
the AmigaTeX previewer, 300 for most popular laserprinters): |
| 198 |
|
| 199 |
mf "\mode:=<mode>; mag:=magstep(<magstep>); input <font>" |
| 200 |
|
| 201 |
Here <mode> should be: |
| 202 |
localfont if METAFONT is installed properly and localfont has been |
| 203 |
set to the parameters needed for your local printer |
| 204 |
amiga if you want to generate fonts for the AmigaTeX previewer. |
| 205 |
|
| 206 |
Anyway <mode> should have a value that guarantees that you use the |
| 207 |
optimal settings when METAFONT generates fonts for YOUR printer or |
| 208 |
previewer. |
| 209 |
|
| 210 |
Here <magstep> should be a suitable value to generate the wanted |
| 211 |
magnification. Zero (0) generates a true sized font, 1 a font that |
| 212 |
is 1.2 times and -1 a font that is 1/1.2 times magnified. Normally |
| 213 |
you do need only true sized fonts (<magstep>=0) but with the |
| 214 |
AmigaTeX previewer it is handy to have magsteps -0.5, 0 and 1. |
| 215 |
|
| 216 |
b) Although some printer drivers accept gf-files and pxl-files, pk-files |
| 217 |
are preferred because they occupy less disk space. To convert from |
| 218 |
gf to pk format you need the program `gftopk': |
| 219 |
|
| 220 |
gftopk <font>.<dpi>gf |
| 221 |
|
| 222 |
c) Proceed with 2. |
| 223 |
|
| 224 |
4. Other remarks |
| 225 |
----------------- |
| 226 |
If you use xdvi (UNIX and VAX-VMS) as previewer, as I do on my NCD16 |
| 227 |
terminal at work, you don't need extra previewer fonts. To get nice |
| 228 |
chessdiagrams with this previewer you need to set the density (S) to 33. |
| 229 |
|
| 230 |
To get optimal convenience with the previewer of your AmigaTeX, in case |
| 231 |
you don't have a hard disk as I do, you can make an extra font disk (ex. |
| 232 |
Black.Myfonts), thanks to the unique font cashing scheme implemented by |
| 233 |
Tomas Rokicki. Consult your AmigaTeX manual. |
| 234 |
|
| 235 |
The chessdiag.mf METAFONT source in chess12/mf draws a `mate in three |
| 236 |
problem' on the screen if your `mf' has graphical support. To draw on |
| 237 |
the screen you need the following command: |
| 238 |
mf "\mode=localfont; mag=magstep(2); screenchars; input chessdiag" |
| 239 |
|
| 240 |
If you like to make a nice T-shirt or magnified chessboard, try: |
| 241 |
mf "\mode=proof; mag=magstep(0); input chess20" |
| 242 |
gftodvi chess20.2600gf |
| 243 |
dvips chess20 |
| 244 |
|
| 245 |
Success! |
| 246 |
|
| 247 |
Geldrop, Oct 1991 |
| 248 |
Piet Tutelaers |
| 249 |
internet: [email protected] |