Generating Sudoku Puzzles
AS
Aman Saurav
3 min read
#puzzles
#logic
Want to create a Sudoku book? The sudoku package generates clean, professional grids.
Usage
This package provides the sudoku environment. You fill in the known numbers and leave the unknowns as |.
\usepackage{sudoku}
\begin{sudoku}
|2|5| | |3| |9| |1|.
| |1| | | |4| | | |.
|4| |7| | | |2| |8|.
| | |5|2| | | | | |.
| | | | |9|8|1| | |.
| |4| | | |3| | | |.
| | | |3|6| | |7|2|.
| |7| | | | | | |3|.
|9| |3| | | |6| |4|.
\end{sudoku}
Styling
- Change grid line thickness.
- Change font size.
- Highlight specific cells using
\cellcolor.
