Debian Codegraph @

texmf-dist/doc/latex/multi-sudoku/README.txt

raw
1 multi-sudoku
2 ============
3
4 Version: 1.00 (2025/7/31)
5 Author: Luis F. Bartolo Alegre
6 Email: [email protected]
7 License: LaTeX project public license (LPPL), version 1.3c
8
9
10 Description
11 -----------
12 The multi-sudoku package provides tools to typeset Sudoku grids of various sizes in LaTeX.
13 Unlike typical Sudoku packages limited to the standard 9×9 grid, multi-sudoku supports multiple sizes
14 ranging from 1×1 up to 49×49 grids.
15
16 Grids are created using the sudoku environment, which is based on LaTeX's native tabular environment.
17 The package allows easy manual entry of grid values using standard tabular syntax, with intuitive options
18 to control grid size, cell dimensions, font size, and grid line thickness.
19
20
21 Key Features
22 ------------
23 - Supports Sudoku grid sizes: 1×1, 2×2, 4×4, 9×9, 16×16, 25×25, 36×36, 49×49.
24 - Manual entry of Sudoku values using familiar tabular commands.
25 - Customisable grid size, cell length, font size, and grid line thickness.
26 - Lightweight: no external drawing packages (e.g., TikZ) required.
27 - Compatible with plain LaTeX workflows.
28
29
30 Requirements
31 ------------
32 - LaTeX engine with the following packages installed:
33 pgfkeys, array, xparse, calc, kvoptions, ifthen.
34 - These packages are commonly included in major LaTeX distributions like TeX Live and MiKTeX.
35
36
37 Installation
38 ------------
39 Copy the file `multi-sudoku.sty` to a directory where LaTeX can find it,
40 for example your project folder or your local texmf tree.
41
42
43 Usage
44 -----
45 Load the package in your document preamble with:
46
47 \usepackage{multi-sudoku}
48
49 The package loads with default options suitable for a 9×9 Sudoku grid:
50
51 \usepackage[
52 size=9x9,
53 length=1.5em,
54 thickness=1.5pt,
55 fontsize=\small
56 ]{multi-sudoku}
57
58 Options:
59 - size: grid size (e.g., 4x4, 16x16). Default is 9x9.
60 - length: length of each cell's side. Default is 1.5em.
61 - thickness: thickness of grid lines, especially subgrid borders. Default is 1.5pt.
62 - fontsize: font size inside grid cells. Default is \small.
63
64 To typeset a Sudoku grid, use the sudoku environment:
65
66 Example (blank 9x9 grid snippet):
67
68 \begin{sudoku}
69 5 & & & & 7 & & & & 9 \nl
70 & & 3 & & & & 1 & & \nl
71 & 1 & & 9 & & & & 6 & \NL
72 ...
73 \end{sudoku}
74
75 Commands:
76 - \nl inserts a new row with a standard horizontal line.
77 - \NL inserts a new row preceded by a thicker horizontal line (for subgrid separation).
78
79 You may override global options locally by passing key-value options to the sudoku environment:
80
81 \begin{sudoku}[size=4x4, length=3em, thickness=1pt, fontsize=\large]
82 ...
83 \end{sudoku}
84
85
86 Supported Sizes
87 ---------------
88 - 1x1 (trivial single cell)
89 - 2x2 (pseudo-Sudoku)
90 - 4x4
91 - 9x9 (standard Sudoku)
92 - 16x16
93 - 25x25
94 - 36x36
95 - 49x49
96
97 Attempting to use unsupported sizes will cause an error.
98
99
100 Compatibility
101 -------------
102 - Relies on pgfkeys, array, xparse, kvoptions, ifthen.
103 - May conflict with other Sudoku or tabular-altering packages.
104 - Uses predefined column layouts and custom column types S and T. Avoid redefining these.
105 - Cell content should be text or math enclosed in math mode.
106
107
108 Support and Contact
109 -------------------
110 Please report bugs or suggestions to: [email protected]
111
112 Happy puzzling!