Journal home page
General information Submit an item Download style files Copyright Contact us 

Sudoku  a simple yet challenging puzzleThere were several excellent entries in this contest — well, four to be exact, but each showed great ingenuity in using TeX to solve these challenging puzzles. You are invited to review their solutions and the LaTeX and TeX macros they used.
The contest: Typeset this grid using TeX macros. You may use LaTeX, ConTeXt, plain TeX, AMSTeX, or your favorite set of macros. Beginners category. Typeset the grid as shown above. This category is open to those who have been using TeX for less than one year. There were no entries in this category. Regular category. Create a new macro, \sudoku{file}, which reads a sudoku puzzle file and then typesets the grid. A sudoku puzzle file is a simple text file with nine lines, and each line has nine characters: the digits 19 or (.) for a blank square. There were two winners in this category: Dave Morris (University of Lethbridge, Canada), and Peter Wilson (Herries Press, WA). Dave Morris's macros, an example using his macros, and a pdf showing his result. Peter Wilson's macros and pdf. For Wizards only. Create a new macro, \sudokusolve{file}, which which reads an easy sudoku puzzle file, solves it, and then typesets the solved grid. There were two winners in this category: Zachary Catlin (Purdue University), and Peter Wilson (Herries Press, WA). Peter's solver, and a pdf.
Peter Wilson notes that he has continued work on his Sudoku macros, and plans to contribute a "sudokubundle" to CTAN soon which includes a Sudoku typesetter, solver, and puzzle generator. Also on CTAN is Paul Abraham's Sudoku package for typesetting puzzles. 