Settings Help
CTAN
Comprehensive TeX Archive Network
Home Upload Browse

Direc­tory tex-archive/macros/latex/contrib/gene/crossword

			     cwpuzzle.sty
				  -
     a LaTeX package for typesetting crossword puzzles and more

			   Gerd Neugebauer


CROSSWORD PUZZLES

Since I know only of  one additional package for typesetting crossword
puzzles on  CTAN --  named crosswrd.sty --  I will compare  it against
this  package  to  show  the  advantages  and  disadvantages  of  both
packages.

I  have developed  cwpuzzle.sty because I  needed to  typeset a puzzle
which required   more features than  those  provided by crosswrd.  The
feature I was missing was the inclusion of  rectangular regions in the
puzzles  containing  ads or  other  texts not  directly related to the
characters to be filled in.

I have generalized this  requirement by allowing  arbitrary rectangles
to be left free. Thus it is possible to typeset  puzzles which have no
rectangular border (See the documentation for examples).

Another idea was to have different types of puzzles generated from the
same source:

- The  classical puzzle contains numbers for  the  words and clues for
  the words to be filled in.

- The numbered  puzzle contains numbers  in each  cell where identical
  numbers represent  identical letters. The goal is  to find out which
  number corresponds to which letter.

- The fill-in type of  puzzle consists of a grid  and a list of words.
  The goal is to place all words in the grid.

crosswrd supports the first type of puzzle only. cwpuzzle supports all
of them.

The input for both packages is  completely different. crosswrd assumes
that a user uses this package to develop a puzzle. Thus it is tailored
towards a human   user.    It checks  for  consistency and    requires
non-redundant input.  (As a unpleasant side effect fragile macros used
in clues have to be protected)

cwpuzzle   needs  some  redundancy  in  the   input  for the   sake of
flexibility. But  it seems quite natural to  specify  the frame of the
puzzle  and the clues separately. Especially  for those types where no
clues are needed at all.

cwpuzzle currently assumes that words  are terminated by a black block
(or the border of the puzzle). crosswrd also supports also the variant
where words are terminated  by a thicker   border. This might also  be
incorporated into a future release of cwpuzzle.

In  cwpuzzle it  is also  possible  to  specify whether the  crossword
puzzle     or it's   solution should   be   produced   (from the  same
source). Thus it  is possible to include the  puzzle in one issue of a
journal  and  the solution  into another,  or to  typeset the solution
several pages after the puzzle.

cwpuzzle provides a larger  number of options and  hooks which  can be
used to customize the result. E.g it is possible to modify the size of
the boxes or the  fonts used as  well  as the appearance of  graphical
elements like the black blocks.


MORE CELL-BASED PUZZLES

In addition to crossword puzzles Sudoku and Kakuro are supported. They
are also grid-based. Thus it was easy to facilityte the infrastructure
already in place for them.

There  is a  package  for sudoku  on  CTAN. But  it  does not  support
solutions yet.


LOCATION

cwpuzzle is located in the CTAN directory

	tex-archive/macros/latex/contrib/gene/crossword

Run  tex on  cwpuzzle.ins to  produce  the package  and (pdf)latex  on
cwpuzzle.dtx to  get the documentation  (or the Makefile to  do both).
Per default the Makefile produces the documentation as PDF.

Files

Name Size Date Notes
Makefile 1585 2014-01-12 10:03:25
README 3410 2014-01-12 09:18:04
cwpuzzle.dtx 75434 2014-01-12 10:36:15
cwpuzzle.ins 1657 2014-01-12 09:15:21
cwpuzzle.pdf 363016 2014-01-12 10:36:22

Down­load the com­plete con­tents of this di­rec­tory in one zip archive (348.2k).

cross­word – Type­set cross­word puz­zles

An ex­tended grid-based puz­zle pack­age, de­signed to take all in­put (both grid and clues) from the same file. The pack­age can type­set grids with holes in them (for ad­ver­tise­ments, or other sorts of stuff), and can deal with sev­eral sorts of puz­zle:

  • The clas­si­cal puz­zle con­tains num­bers for the words and clues for the words to be filled in.
  • The num­bered puz­zle con­tains num­bers in each cell where iden­ti­cal num­bers rep­re­sent iden­ti­cal let­ters. The goal is to find out which num­ber cor­re­sponds to which let­ter.
  • The fill-in type of puz­zle con­sists of a grid and a list of words. The goal is to place all words in the grid.
  • Su­doku and Kakuro puz­zles in­volve fill­ing in grids of num­bers ac­cord­ing to their own rules.
For­mat may be block-sep­a­rated, or sep­a­rated by thick lines. In­put to the pack­age is some­what re­dun­dant: spec­i­fi­ca­tion of the grid is sep­a­rate from spec­i­fi­ca­tion of the clues (if they're nec­es­sary). The au­thor con­sid­ers this style both ‘nat­u­ral’ and ro­bust.

Doc­u­men­ta­tion
Ver­sion1.9 2014-01-12
Li­censeFree li­cense not oth­er­wise listed, or more than one free li­cense ap­plies
Copy­right1995-2014 Gerd Neuge­bauer
Main­tainerGerd Neuge­bauer
Con­tained inTeXLive as cross­word
MiKTeX as cross­word
Topics cross­word puz­zle
pro­cess game di­a­grams, game­books, and other amuse­ments
See also crosswrd
Guest Book Sitemap Contact 2014-04-20 10:21 CEST