Debian Codegraph @

texmf-dist/doc/latex/crossword/README.md

raw
1
2 # cwpuzzle.sty
3 ---
4 a LaTeX package for typesetting crossword puzzles and more
5
6 Gerd Neugebauer
7
8
9 ## Crossword Puzzles
10
11 Since I know only of one additional package for typesetting crossword
12 puzzles on CTAN -- named `crosswrd.sty` -- I will compare it against
13 this package to show the advantages and disadvantages of both
14 packages.
15
16 I have developed `cwpuzzle.sty` because I needed to typeset a puzzle
17 which required more features than those provided by `crosswrd`. The
18 feature I was missing was the inclusion of rectangular regions in the
19 puzzles containing ads or other texts not directly related to the
20 characters to be filled in.
21
22 I have generalized this requirement by allowing arbitrary rectangles
23 to be left free. Thus it is possible to typeset puzzles which have no
24 rectangular border (See the documentation for examples).
25
26 Another idea was to have different types of puzzles generated from the
27 same source:
28
29 - The classical puzzle contains numbers for the words and clues for
30 the words to be filled in.
31
32 - The numbered puzzle contains numbers in each cell where identical
33 numbers represent identical letters. The goal is to find out which
34 number corresponds to which letter.
35
36 - The fill-in type of puzzle consists of a grid and a list of words.
37 The goal is to place all words in the grid.
38
39 `crosswrd` supports the first type of puzzle only. cwpuzzle supports
40 all of them.
41
42 The input for both packages is completely different. crosswrd assumes
43 that a user uses this package to develop a puzzle. Thus it is tailored
44 towards a human user. It checks for consistency and requires
45 non-redundant input. (As a unpleasant side effect fragile macros used
46 in clues have to be protected)
47
48 `cwpuzzle` needs some redundancy in the input for the sake of
49 flexibility. But it seems quite natural to specify the frame of the
50 puzzle and the clues separately. Especially for those types where no
51 clues are needed at all.
52
53 cwpuzzle currently assumes that words are terminated by a black block
54 (or the border of the puzzle). crosswrd also supports also the variant
55 where words are terminated by a thicker border. This might also be
56 incorporated into a future release of cwpuzzle.
57
58 In `cwpuzzle` it is also possible to specify whether the crossword
59 puzzle or it's solution should be produced (from the same
60 source). Thus it is possible to include the puzzle in one issue of a
61 journal and the solution into another, or to typeset the solution
62 several pages after the puzzle.
63
64 `cwpuzzle` provides a larger number of options and hooks which can be
65 used to customize the result. E.g it is possible to modify the size of
66 the boxes or the fonts used as well as the appearance of graphical
67 elements like the black blocks.
68
69
70 ## More Cell-based Puzzles
71
72 In addition to crossword puzzles **Sudoku** and **Kakuro** are
73 supported. They are also grid-based. Thus it was easy to facilitate
74 the infrastructure already in place for them.
75
76 There is a package for sudoku on CTAN. But it does not support
77 solutions yet.
78
79
80 ## Location
81
82 cwpuzzle is located in the CTAN directory
83
84 https://ctan.org/tex-archive/macros/latex/contrib/gene/crossword
85
86 The source repository can be found under
87
88 https://codeberg.org/gene-TeX-libraries/cwpuzzle
89
90
91 ## Installation
92
93 ### ... in TeX distributions
94
95 If you are lucky then cwpuzzle is already installed in your TeX
96 distribution or available via the package manager:
97
98 - in TeX Live as `crossword`
99 - in MiKTeX as `crossword`
100
101
102 ### ... manually
103
104 Run tex on `cwpuzzle.ins` to produce the package and latex and
105 makeindex on `cwpuzzle.dtx` to get the documentation
106
107 ```
108 tex cwpuzzle.ins
109 lualatex cwpuzzle.dtx
110 lualatex cwpuzzle.dtx
111 makeindex -s gind.ist cwpuzzle
112 makeindex -s gglo.ist -o cwpuzzle.gls cwpuzzle.glo
113 lualatex cwpuzzle.dtx
114
115 ```
116
117 Or use the `makefile` to do both.
118 Per default the `makefile` produces the documentation as PDF.
119
120 ```
121 make -f makefile
122 ```
123
124 Finally move the file `cwpuzzle.sty` into a directory where your TeX
125 distribution searches for style files.
126
127
128 ## Version and copyright
129
130 The relevant information about version and copyright are contained in
131 the file `cwpuzzle.dtx`.