Debian Codegraph @

texmf-dist/doc/latex/multi-sudoku/multi-sudoku-documentation.tex

raw
1 % !TeX spellcheck = en_GB
2 % This work may be distributed and/or modified under the conditions of the LaTeX project public license (LPPL), version 1.3c.
3 % The details of this license's version is in https://www.latex-project.org/lppl/lppl-1-3c.txt
4 \documentclass[a4paper,12pt]{article}
5 \usepackage[british]{babel}
6 \usepackage{multi-sudoku} % Assuming the package is in the working directory
7 \usepackage{geometry}
8 \usepackage{lmodern}
9 \usepackage{hyperref}
10 \usepackage{xcolor}
11 \geometry{margin=3cm}
12
13 \def\myemail{\texttt{[email protected]}}
14
15 \title{The \texttt{multi-sudoku} Package\\\large User Guide}
16
17 \author{Luis F. Bartolo Alegre
18 \\\small
19 Email: \myemail}
20
21 \date{Version 1.00 -- \today}
22
23 \begin{document}
24
25 \maketitle
26
27 \tableofcontents
28 \newpage
29
30
31
32 \section{Introduction}
33 \label{sec:Intro}
34
35 \subsection{What is \texttt{multi-sudoku}?}
36
37 The \texttt{multi-sudoku} package provides tools for typesetting Sudoku grids of various sizes in \LaTeX. Unlike other Sudoku packages which are typically limited to the standard 9×9 layout, this package supports a broad range of grid sizes -- from trivial 1×1 puzzles to extended 49×49 Sudokus -- that's the limit for now!
38
39 Grids are drawn with our \texttt{sudoku} environment, which is based on using \LaTeX's native \texttt{tabular} environment.
40 %
41 We include intuitive options to control dimensions, font size, and grid thickness. Entries in the grid are inserted as in a regular table, thus making it simple to create, customise, and fill Sudoku puzzles manually.
42
43
44 \subsection{Key features}
45 \label{sec:Features}
46
47 \begin{itemize}
48 \item Supports various Sudoku grid sizes:
49 1×1, 2×2, 4×4, 9×9, 16×16, 25×25, 36×36, 49×49.
50
51 \item Easy manual entry of values using standard tabular syntax.
52
53 \item Per-grid and global styling options for Sudoku size (\texttt{size}), cell side length (\texttt{length}), font size (\texttt{fontsize}), grid line thickness (\texttt{thickness}).
54
55 \item Lightweight: no external drawing libraries like TikZ required.
56
57 \item Compatible with plain \LaTeX{} workflows.
58 \end{itemize}
59
60
61 \subsection{Why another Sudoku package?}
62 \label{sec:Why}
63
64 Unlike other packages that focus solely on standard Sudoku, \texttt{multi-sudoku} was designed from the ground up to support multiple puzzle sizes and offer control over visual layout. This flexibility makes it ideal not just for standard 9×9 Sudokus, but also for educators, researchers, and enthusiasts working with mini-puzzles, non-standard formats, or large-scale variants.
65
66
67 \subsection{Requirements}
68 \label{sec:Requirements}
69
70 The package relies only on standard \LaTeX{} tools and the following commonly available packages:
71 %
72 \texttt{pgfkeys},
73 %
74 \texttt{array},
75 %
76 \texttt{xparse},
77 %
78 \texttt{calc},
79 %
80 \texttt{kvoptions},
81 %
82 \texttt{ifthen}.
83 %
84 These are usually bundled in all major \LaTeX{} distributions (e.g., TeX Live, MiKTeX).
85
86
87 \subsection{Licensing and author}
88 \label{sec:Licensing}
89
90 \begin{description}
91 \item[Author:] Luis F. Bartolo Alegre
92
93 \item[Email:] \myemail
94
95 \item[Version:] 1.00 (2025/7/31)
96
97 \item[Licence:] LaTeX project public license (LPPL), version 1.3c.
98 \end{description}
99
100
101
102 \section{Installation and loading}
103
104
105 \subsection{Installation}
106 \label{sec:Installation}
107
108 The \texttt{multi-sudoku} package can be installed by copying the \texttt{multi-sudoku.sty} file into a directory where \LaTeX{} can find it, like the main folder of your project.
109
110
111 \subsection{Loading the package}
112 \label{sec:Loading}
113
114 To use \texttt{multi-sudoku}, add the following line to your document preamble:
115
116 \begin{verbatim}
117 \usepackage{multi-sudoku}
118 \end{verbatim}
119
120 The package loads with default options suitable for standard 9×9 Sudoku grids.
121 %
122 You can set global options at package load time, the following being the default ones:
123
124 \begin{verbatim}
125 \usepackage[
126 size=9x9,
127 length=1.5em,
128 thickness=1.5pt,
129 fontsize=\small
130 ]{multi-sudoku}
131 \end{verbatim}
132 %
133 where:
134 \begin{itemize}
135 \item \texttt{size} specifies the grid size (e.g., \texttt{9x9}, \texttt{16x16}).
136
137 \item \texttt{length} sets the cell side length.
138
139 \item \texttt{thickness} sets the thickness of grid lines.
140
141 \item \texttt{fontsize} sets the font size inside cells.
142 \end{itemize}
143 \clearpage
144
145
146
147 \section{Basic usage}
148 \label{sec:Basic}
149
150 The \texttt{multi-sudoku} package defines the \texttt{sudoku} environment, which draws a Sudoku grid of the specified size. The content of the grid is input just like a standard \texttt{tabular} environment, with one cell per Sudoku square.
151
152 Below is a basic example of a blank 9×9 Sudoku grid, in which the values are entered into the cells as usual in a \texttt{tabular}:
153 \bigskip
154
155 \begin{center}
156 \begin{minipage}{.6\linewidth}
157 \begin{verbatim}
158 \begin{sudoku}
159 5 & & & & 7 & & & & 9 \nl
160 & & 3 & & & & 1 & & \nl
161 & 1 & & 9 & & & & 6 &
162 \NL
163 & & 8 & & & 6 & & 3 & \nl
164 & 9 & & & 5 & & & 1 & \nl
165 6 & & & & & 1 & & &
166 \NL
167 & 2 & & 3 & & & 6 & & \nl
168 & & & & 2 & & & 7 & \nl
169 1 & & & & & 8 & & & 4
170 \end{sudoku}
171 \end{verbatim}
172 \end{minipage}
173 \end{center}
174
175 And here is the compiled result:
176
177 \begin{center}
178 \begin{sudoku}
179 5 & & & & 7 & & & & 9 \nl
180 & & 3 & & & & 1 & & \nl
181 & 1 & & 9 & & & & 6 &
182 \NL
183 & & 8 & & & 6 & & 3 & \nl
184 & 9 & & & 5 & & & 1 & \nl
185 6 & & & & & 1 & & &
186 \NL
187 & 2 & & 3 & & & 6 & & \nl
188 & & & & 2 & & & 7 & \nl
189 1 & & & & & 8 & & & 4
190 \end{sudoku}
191 \end{center}
192
193
194 \paragraph{Note:}
195
196 The \verb|\nl| command inserts a new row with a standard horizontal line above it (used for regular cell boundaries). In contrast, the \verb|\NL| command inserts a new row preceded by a thicker horizontal line -- typically used to separate Sudoku subgrids. The thickness of this line is controlled by the \texttt{thickness} option, which can be set globally or locally (see section~\ref{sec:Options}).
197 \clearpage
198
199
200
201 \section{Supported sizes}
202 \label{sec:Supported}
203
204 The \texttt{multi-sudoku} package supports the following Sudoku grid sizes, where each size corresponds to a Sudoku composed of $n \times n$ cells arranged as $k^2$ blocks of size $k \times k$:
205
206 \begin{center}
207 \begin{tabular}{cl}
208 \hline
209 \textbf{size option} & \textbf{description} \\
210 \hline
211 1x1 & Trivial Sudoku: a single cell \\
212 2x2 & Four 1×1 subgrids (pseudo-Sudoku, mostly for demonstration) \\
213 4x4 & Four 2×2 subgrids \\
214 9x9 & Standard Sudoku: nine 3×3 subgrids (default size) \\
215 16x16 & Sixteen 4×4 subgrids \\
216 25x25 & Twenty-five 5×5 subgrids \\
217 36x36 & Thirty-six 6×6 subgrids \\
218 49x49 & Forty-nine 7×7 subgrids \\
219 \hline
220 \end{tabular}
221 \end{center}
222
223 \noindent
224 Attempting to use unsupported sizes will result in an error.
225
226 \paragraph{Note:}
227
228 The column layouts for each supported grid size have been manually defined, which limits the package to a fixed set of predefined sizes. If you have ideas for how to generate these column arrangements recursively -- so that arbitrary grid sizes could be supported -- feel free to get in touch.
229
230
231
232 \section{Options and customisation}
233 \label{sec:Options}
234
235 The package offers several options that control the appearance and layout of Sudoku grids. These can be set either globally when loading the package or locally as environment options.
236
237 \subsection{Global options}
238
239 Set these options when loading the package via \verb|\usepackage|:
240
241 \begin{itemize}
242 \item \texttt{size} \\
243 Defines the size of the Sudoku grid. Defaults to \texttt{9x9}. Examples: \texttt{4x4}, \texttt{16x16}.
244
245 \item \texttt{length} \\
246 Specifies the length of the side of each Sudoku cell. Default is \texttt{1.5em}. Accepts any length unit (\texttt{em}, \texttt{pt}, \texttt{cm}, etc.).
247
248 \item \texttt{thickness} \\
249 Sets the thickness of the grid lines (especially the thicker subgrid boundaries). Default is \texttt{1.5pt}.
250
251 \item \texttt{fontsize} \\
252 Sets the font size inside each cell. Default is \verb|\small|. Can be any valid font size command (e.g., \verb|\footnotesize|, \verb|\normalsize|).
253 \end{itemize}
254
255 For example, let us load the following in the preamble:
256
257 \begin{center}
258 \begin{minipage}{.3\linewidth}
259 \begin{verbatim}
260 \usepackage[
261 size=4x4,
262 length=3.25,
263 thickness=1pt,
264 fontsize=\large
265 ]{multi-sudoku}
266 \end{verbatim}
267 \end{minipage}
268 \end{center}
269
270 Moreover, let us, within that very file, lead the following command:
271
272 \begin{center}
273 \begin{minipage}{.8\linewidth}
274 \begin{verbatim}
275 \begin{sudoku}
276 $C_{111}$ & $C_{121}$ & $C_{134}$ & $C_{144}$
277 \nl
278 $C_{211}$ & $C_{221}$ & $C_{234}$ & $C_{244}$
279 \NL
280 $C_{312}$ & $C_{322}$ & $C_{333}$ & $C_{343}$
281 \nl
282 $C_{412}$ & $C_{422}$ & $C_{433}$ & $C_{443}$
283 \end{sudoku}
284 \end{verbatim}
285 \end{minipage}
286 \end{center}
287
288 Thus, we will obtain the following result:
289
290 \begin{center}
291 \begin{sudoku}[size=4x4,length=3.25em, thickness=1pt, fontsize=\large]
292 $C_{111}$ & $C_{121}$ & $C_{134}$ & $C_{144}$
293 \nl
294 $C_{211}$ & $C_{221}$ & $C_{234}$ & $C_{244}$
295 \NL
296 $C_{312}$ & $C_{322}$ & $C_{333}$ & $C_{343}$
297 \nl
298 $C_{412}$ & $C_{422}$ & $C_{433}$ & $C_{443}$
299 \end{sudoku}
300 \end{center}
301
302 \clearpage
303
304
305 \subsection{Local options}
306
307 You can override global options for individual Sudoku environments by passing key-value options as an optional argument to the \texttt{sudoku} environment. Below are some examples assuming the default options.
308
309
310 \paragraph{Example 1:} The trivial 1×1 Sudoku with otherwise default settings -- and solved!
311
312 \subparagraph{Command:}
313
314 \begin{center}
315 %\begin{minipage}{.4\linewidth}
316 \begin{verbatim}
317 \begin{sudoku}[size=1x1]
318 1
319 \end{sudoku}
320 \end{verbatim}
321 %\end{minipage}
322 \end{center}
323
324
325 \subparagraph{Output:}
326
327 \begin{center}
328 \begin{sudoku}[size=1x1]
329 1
330 \end{sudoku}
331 \end{center}
332
333
334 \paragraph{Example 2:} A 2×2 pseudo-Sudoku with otherwise default settings.
335
336 \subparagraph{Command:}
337
338 \begin{center}
339 %\begin{minipage}{.4\linewidth}
340 \begin{verbatim}
341 \begin{sudoku}[size=2x2]
342 1 & 4
343 \NL
344 2 & 3
345 \end{sudoku}
346 \end{verbatim}
347 %\end{minipage}
348 \end{center}
349
350
351 \subparagraph{Output:}
352
353 \begin{center}
354 \begin{sudoku}[size=2x2]
355 1 & 4
356 \NL
357 2 & 3
358 \end{sudoku}
359 \end{center}
360
361
362 \paragraph{Example 3:} A 4×4 Sudoku with \verb|\LARGE| font size.
363
364 \subparagraph{Command:}
365
366 \begin{center}
367 %\begin{minipage}{.4\linewidth}
368 \begin{verbatim}
369 \begin{sudoku}[size=4x4, fontsize=\LARGE]
370 1 & & 4 & \nl
371 & 3 & & 2
372 \NL
373 3 & & 2 & \nl
374 & 4 & & 1
375 \end{sudoku}
376 \end{verbatim}
377 %\end{minipage}
378 \end{center}
379
380
381 \subparagraph{Output:}
382
383 \begin{center}
384 \begin{sudoku}[size=4x4,length=25pt,fontsize=\LARGE]
385 1 & & 4 & \nl
386 & 3 & & 2
387 \NL
388 3 & & 2 & \nl
389 & 4 & & 1
390 \end{sudoku}
391 \end{center}
392
393
394 \paragraph{Example 4:}
395 A standard 9×9 Sudoku with grid lines set to 3pt thickness. The \texttt{size} option can be omitted unless a different default was specified globally.
396
397
398 \subparagraph{Command:}
399
400 \begin{center}
401 %\begin{minipage}{.6\linewidth}
402 \begin{verbatim}
403 \begin{sudoku}[size=9x9, thickness=3pt]
404 5 & & & & 7 & & & & 9 \nl
405 & & 3 & & & & 1 & & \nl
406 & 1 & & 9 & & & & 6 &
407 \NL
408 & & 8 & & & 6 & & 3 & \nl
409 & 9 & & & 5 & & & 1 & \nl
410 6 & & & & & 1 & & &
411 \NL
412 & 2 & & 3 & & & 6 & & \nl
413 & & & & 2 & & & 7 & \nl
414 1 & & & & & 8 & & & 4
415 \end{sudoku}
416 \end{verbatim}
417 %\end{minipage}
418 \end{center}
419
420
421 \subparagraph{Output:}
422
423 \begin{center}
424 \begin{sudoku}[thickness=3pt]
425 5 & & & & 7 & & & & 9 \nl
426 & & 3 & & & & 1 & & \nl
427 & 1 & & 9 & & & & 6 &
428 \NL
429 & & 8 & & & 6 & & 3 & \nl
430 & 9 & & & 5 & & & 1 & \nl
431 6 & & & & & 1 & & &
432 \NL
433 & 2 & & 3 & & & 6 & & \nl
434 & & & & 2 & & & 7 & \nl
435 1 & & & & & 8 & & & 4
436 \end{sudoku}
437 \end{center}
438
439 \clearpage
440
441
442 \paragraph{Example 5:} A 16×16 Sudoku with font size set to \verb|\scriptsize| and cell side length set to 1em.
443
444 \subparagraph{Command:}
445
446 \begin{center}
447 %\begin{minipage}{.4\linewidth}
448 \begin{verbatim}
449 \begin{sudoku}[size=16x16, length=1em, fontsize=\scriptsize]
450 ... % grid contents
451 \end{sudoku}
452 \end{verbatim}
453 %\end{minipage}
454 \end{center}
455
456
457 \subparagraph{Output:}
458
459 \begin{center}
460 \begin{sudoku}[size=16x16, length=1em, fontsize=\scriptsize]
461 A & & & & & & 7 & & & & & & & 3 & & \nl
462 & & 2 & & & 5 & & & & C & & & & & & 6 \nl
463 & & & F & 1 & & & & & & & D & & & 8 & \nl
464 9 & & & & & & 3 & & B & & & & & & &
465 \NL
466 & 3 & & & 6 & & & & & & & & 1 & & & \nl
467 & & & 7 & & & & 4 & & 5 & & & & & 2 & \nl
468 & & D & & & & & & 2 & & & 3 & & & & \nl
469 B & & & & & 1 & & & & & & & & F & &
470 \NL
471 & & 9 & & & & & & D & & 4 & & & & & \nl
472 4 & & & & & & 1 & & & E & & & & & & C \nl
473 & 5 & & & 3 & & & & & & & & & & B & \nl
474 & & & C & & & & 9 & & & & & 7 & & &
475 \NL
476 7 & & & & & & & & & & 5 & & & & & \nl
477 & & & 1 & & & & 6 & & & & & & 8 & & \nl
478 & 6 & & & & & & & & & 2 & & & & & \nl
479 & & & 8 & & & & & 4 & & & & & & & 1
480 \end{sudoku}
481 \end{center}
482 \clearpage
483
484
485 \paragraph{Example 6:}
486 A 25×25 Sudoku with cell side length set to 1.25em.
487
488 \subparagraph{Command:}
489
490 \begin{center}
491 \begin{minipage}{\linewidth}
492 \begin{verbatim}
493 \begin{sudoku}[size=25x25, length=1.25em]
494 ... % grid contents
495 \end{sudoku}
496 \end{verbatim}
497 \end{minipage}
498 \end{center}
499
500
501 \subparagraph{Output:}
502
503 \begin{center}
504 \begin{sudoku}[size=25x25, length=1.25em]
505 1 & & 4 & 9 & & & 7 & & A & & & & & 3 & 5 & & & & 5 & & & 8 & & 6 & \nl
506 & & 2 & & 8 & 5 & & 1 & & C & 6 & & 8 & & 9 & 6 & & 4 & & & 7 & & & & \nl
507 & & & F & 1 & 3 & & & 3 & & & D & & & 8 & & & 7 & & & & & 2 & & 1 \nl
508 9 & 4 & & & 7 & & 3 & & B & & & 2 & & 1 & & & & 5 & & & & 6 & 4 & & \nl
509 & 3 & & & 6 & 9 & 7 & & & & 1 & & 1 & & & & 2 & & & 8 & & & & 9 &
510 \NL
511 & & 6 & 7 & 4 & & & 4 & & 5 & & & & 7 & 2 & & & 3 & & & & 1 & & & \nl
512 & & D & & 8 & 7 & & & 2 & & 1 & 3 & & & 6 & & & 9 & 5 & & & & & 7 & \nl
513 B & & & & 4 & 1 & & & & & & 6 & & F & & & 8 & & & & 3 & & & 2 & \nl
514 & & 9 & 5 & & & 3 & & D & & 4 & & 2 & & 8 & & 7 & & & & & & 9 & & 6 \nl
515 4 & & & 6 & 2 & & 1 & 8 & & E & & & & 9 & 4 & C & & & 7 & & 1 & & 5 & &
516 \NL
517 & 5 & & 9 & 3 & 6 & & & 7 & & & & & & B & 1 & & & 4 & & & 3 & & & \nl
518 & & & C & & & 8 & 9 & & & & 5 & 7 & & & & & 2 & 1 & & & & & & 4 \nl
519 7 & 1 & & & & & 4 & & & 3 & 5 & & 6 & & & & & & & & 9 & & & 8 & \nl
520 & & & 1 & 8 & & & 6 & & & & & 3 & 8 & & 7 & & & & 2 & & & & 1 & \nl
521 & 6 & & & 7 & & & & & 4 & 2 & & & & 9 & & 3 & & & 5 & & & & &
522 \NL
523 & 8 & & 8 & & & & & 4 & & 7 & & & & & 1 & & & 6 & & & 7 & & & 3 \nl
524 & & & 3 & & & & 7 & & 9 & & & 1 & & & & & & & & 4 & 6 & & & \nl
525 & & & & & 2 & & & 1 & & & & & & 5 & & & 3 & & & & & 8 & & 9 \nl
526 & & & & & & 6 & & & & 8 & & & 4 & & & & & & 7 & 9 & & & & \nl
527 & & & & & 5 & & & & & & & 7 & & & & & & 4 & & 1 & & & 6 &
528 \NL
529 & & & & & & 5 & & & & 9 & & & & 6 & & & 8 & & & & 2 & & & \nl
530 & & 7 & & & & & 1 & & 3 & & & & 2 & & & & & & 5 & & & 8 & 4 & \nl
531 & 1 & & & & & & & 8 & & & & & & & & & & & & & 9 & & & 9 \nl
532 & & & 4 & & & & & 7 & & 6 & & & & & & 1 & & & & & & & 3 & \nl
533 & & & & 9 & & & & & 5 & & & & & & & & 6 & & & & & & &
534 \end{sudoku}
535 \end{center}
536 \clearpage
537
538
539 \paragraph{Example 7:}
540 A 36×36 Sudoku with cell side length set to 1em and font size set to \verb|\scriptsize|.
541
542 \subparagraph{Command:}
543
544 \begin{center}
545 \begin{verbatim}
546 \begin{sudoku}[size=36x36, length=1em, fontsize=\scriptsize]
547 ... % grid contents
548 \end{sudoku}
549 \end{verbatim}
550 \end{center}
551
552
553 \subparagraph{Output:}
554
555 \begin{center}
556 \begin{sudoku}[size=36x36, length=1em, fontsize=\scriptsize]
557 4 & 9 & & B & 1 & & & & 7 & & & 5 & & & 6 & & & A & & & & & & & 3 & & & 2 & & & & & & & & \nl
558 & 6 & & & 2 & & D & & & C & 8 & & & 7 & & 9 & & & & & 1 & & & & & & & & & & & & & & & \nl
559 3 & & & F & 4 & 5 & & & & & & & D & & & & 8 & & & & & & & & & & & & & 7 & & & & & & \nl
560 9 & & & & & 3 & & 1 & & B & & 4 & & & 7 & & & & 6 & & & & & & & & & & & & & & & & & \nl
561 & 3 & 5 & & 6 & & & & 2 & & & & 9 & 1 & & & & & & & & & 8 & & & & & & & 4 & & & & & & \nl
562 & & & 7 & & & & 8 & 4 & & 5 & & & & & & & & 9 & & & & 3 & & & & & & & & & & & & & \NL
563 & & D & & 7 & & & & & 2 & 6 & & 3 & & & & 5 & & & & & & & & & & & 4 & & & & & & & & \nl
564 B & & & & & 1 & 7 & & & & & & & F & & 2 & & & & 9 & & & & & & & & & & & & & & & & \nl
565 & 8 & 9 & & & & & & & D & & 4 & & & & 5 & & & & & & & & & & & 1 & & & & & & & & & \nl
566 4 & & & & 6 & & 1 & & & & E & & 7 & & & & 8 & & & & & & & 3 & & & & & & & & & & & & \nl
567 & 7 & 6 & 7 & & & & & 4 & 2 & 5 & & & & & & & & 1 & & & 8 & & & & & & & & & & & & & & \nl
568 & & & 7 & & & & 9 & 4 & & 5 & & 1 & & & & 7 & & & & & & & & & & 6 & & & & & & & & & \NL
569 & 5 & 8 & & 3 & & 2 & & 6 & & & & 4 & & B & & & & & & & 7 & & & & & & & 9 & & & & & & & \nl
570 & & & C & & 4 & & 9 & & & & 3 & 7 & & & 8 & & & 1 & & & & 2 & & & & & & & 5 & & & & & & \nl
571 7 & & & & 9 & & & & & & 5 & & 1 & & & & & & & 3 & & & & & & & & & & & 4 & & & & & \nl
572 & & 2 & 1 & & & & 6 & & & & & & 8 & & 7 & & & & & 9 & & & & & & & & & & & & & & & \nl
573 & & & 7 & & & 5 & & 4 & & 5 & & & & & 3 & & & & & & & & 8 & & & & & & 1 & & & & & & \nl
574 & & & 7 & & 1 & & & 4 & & 5 & 6 & & & & & & & & 7 & & & & & 9 & & & & & & & & & & & \NL
575 & 5 & & & 3 & & 7 & & & & & 1 & & & B & & 4 & & & & 6 & & & & & 2 & & & & & & & & & & \nl
576 & & & C & & & 8 & 9 & & 6 & & & 7 & & & & & 1 & & & & & & & & & & & & & & 5 & & & & \nl
577 8 & & & & & & & & & & 5 & 7 & & & & & & 9 & & & 1 & & & & 3 & & & & & & & 4 & & & & \nl
578 & & & 1 & & 6 & & 6 & & & & & 2 & 8 & & & & & & & 7 & & 4 & & & & & & & & & & & & & \nl
579 & & 7 & & & & & & 4 & & 5 & & & 3 & & & & & & & 8 & & & 1 & & & & & & & & 9 & & & & \nl
580 & & & 7 & & & & & 4 & & 5 & & & & & & 7 & & 2 & & & & & 6 & & & & & 8 & & & & & & & \NL
581 & 5 & & & 3 & & 2 & & & & & & & & B & & & 7 & & & & & 4 & & & & 8 & & & & & & & & & \nl
582 & & & C & 1 & & & 9 & & & 7 & & 7 & & & & & & 6 & & & & & & 1 & & & & 5 & & & & & & & \nl
583 7 & & & & & & 4 & & & & 5 & & & & & 9 & & & & 3 & & & & & & & 7 & & & & 1 & & & & & \nl
584 & & & 1 & & & & 6 & & 8 & & & & 8 & & & & & 2 & & & & 5 & & & & & & & & & & & & & \nl
585 & 7 & & & 7 & & & & 4 & & 5 & & & & & 4 & & & & & 7 & & & & 3 & & & & & & 9 & & & & & \nl
586 & & & 7 & & & & & 4 & & 5 & & 3 & & & & & & & & & & & 7 & & & 2 & & & & & 5 & & & & \NL
587 & 5 & & & 3 & & & 1 & & & 8 & & & & B & & & & & 6 & & & & & & 4 & & & & 7 & & & & & & \nl
588 & & & C & & & & 9 & & & & 4 & 7 & & & & & & 1 & & 5 & & & & & & & & & 8 & & & & & & \nl
589 9 & & & & & & & & & & 5 & & & & & & & 3 & & & 7 & & & & 2 & & & & & & & 4 & & & & \nl
590 & & & 1 & & & & 6 & & & & 8 & & & & & & & 9 & & & & & & & & & 5 & & & & & & & & \nl
591 & & & 7 & & & & & 4 & & 5 & & & 1 & & & 7 & & & & & 8 & & & & & & & & & & & & & &
592 \end{sudoku}
593 \end{center}
594 \clearpage
595
596
597 \paragraph{Example 8:}
598 A 49×49 Sudoku with cell side length set to .75emem and font size set to \verb|\tiny|.
599
600 \subparagraph{Command:}
601
602 \begin{center}
603 \begin{verbatim}
604 \begin{sudoku}[size=49x49, length=.75em, fontsize=\tiny]%
605 ... % grid contents
606 \end{sudoku}
607 \end{verbatim}
608 \end{center}
609
610
611 \subparagraph{Output:}
612
613 \begin{center}
614 \begin{sudoku}[size=49x49, length=.75em, fontsize=\tiny]%
615 9 & & 1 & & & 7 & & 5 & & & & & 2 & & 6 & & & 8 & & & 3 & & & & 9 & & 4 & & 1 & & & 7 & & 5 & & 8 & & 2 & & & 6 & & 3 & & 7 & & 1 & & 9 \nl
616 7 & & & 3 & & 8 & & & 4 & & & 1 & & 5 & & & & & & 7 & & 6 & & 1 & & 8 & & & & & 4 & & 9 & & 2 & & 5 & & & & 3 & & 7 & & 6 & & 1 & & 8 \nl
617 & 6 & & & 9 & & 2 & & & 5 & & 4 & & & 7 & & 3 & & & 8 & & & 1 & & & 6 & & 9 & & & 2 & & & 7 & & 1 & & 8 & & & 3 & & 5 & & 7 & & 9 & & \nl
618 8 & & 4 & & & 6 & & 1 & & & 7 & 9 & & 5 & & & 3 & & 2 & & & 8 & & 6 & & & 1 & & 4 & & & 9 & & & 5 & & & 7 & & 3 & & 9 & & 6 & & & 1 & & \nl
619 & 2 & & & 7 & & & 3 & & 6 & 8 & & 4 & & & 9 & & 1 & & & 5 & & & 7 & & 2 & & 9 & & 3 & & & 6 & & & 8 & & 4 & & 1 & & & 7 & & 5 & & & 9 & \nl
620 1 & & & 5 & & & 7 & & 2 & & 8 & & & 3 & & & 6 & & 4 & & & 9 & & 1 & & & 5 & & 7 & & 8 & & & 3 & & & 6 & & 4 & & & 9 & & 1 & & & 5 & & 7 \nl
621 & 3 & & 8 & & & 5 & & 7 & & & 6 & & & 9 & & & 1 & & 3 & & & 4 & & 7 & & 5 & & 6 & & & 9 & & & 3 & & & 4 & & & 7 & & 5 & & 6 & & 9 & & 1
622 \NL
623 6 & & 1 & & & 4 & & & 2 & & & 7 & & 8 & & & 5 & & & 3 & & 1 & & 4 & & 9 & & & 2 & & & 7 & & 8 & & & 5 & & & 3 & & 1 & & 4 & & 9 & & & 2 \nl
624 & 7 & & & 3 & & 1 & & & 9 & & 5 & & & 2 & & 6 & & & 8 & & & 4 & & 3 & & 1 & & & 5 & & & 2 & & 6 & & & 8 & & & 4 & & 3 & & 1 & & 9 & & 5 \nl
625 2 & & & 9 & & 5 & & & 4 & & & 8 & & 1 & & & 7 & & & 6 & & & 9 & & 5 & & & 4 & & 3 & & & 8 & & 1 & & & 7 & & & 6 & & & 9 & & 5 & & & 4 \nl
626 & & 8 & & & 6 & & 7 & & & 1 & & 9 & & & 3 & & 5 & & & 2 & & & 8 & & 6 & & 7 & & & 1 & & & 3 & & 5 & & & 2 & & & 8 & & 6 & & 7 & & & \nl
627 5 & & 9 & & 7 & & & 4 & & 2 & & & & 8 & & & 1 & & 3 & & & 5 & & 9 & & 7 & & & 4 & & 2 & & & 6 & & & 8 & & & 1 & & 3 & & & 5 & & 9 & & 7 \nl
628 & 1 & & & 8 & & & 9 & & & 4 & & & 7 & & & 5 & & & 2 & & & 6 & & 1 & & & 8 & & & 9 & & & 4 & & & 7 & & & 5 & & & 2 & & & 6 & & 1 & \nl
629 3 & & & 2 & & 9 & & & 5 & & & 7 & & & 1 & & & 4 & & & & 3 & & & 2 & & 9 & & & 5 & & & 7 & & & 1 & & & 4 & & & 8 & & 3 & & & 2 & &
630 \NL
631 & 4 & & & 7 & & 6 & & & 1 & & 9 & & & 3 & & & 5 & & & 2 & & & 4 & & 7 & & 6 & & & 1 & & 9 & & & 3 & & & 5 & & & 2 & & & 4 & & 7 & & 6 \nl
632 9 & & 5 & & & 3 & & & 8 & & 7 & & & 4 & & & 1 & & & 6 & & 9 & & 5 & & & 3 & & & 8 & & 7 & & & 4 & & & 1 & & & 6 & & 9 & & 5 & & & & 8 \nl
633 & 8 & & 7 & & & 4 & & & 1 & & 6 & & & 9 & & & 5 & & & 3 & & & 8 & & 7 & & & 4 & & & 1 & & 6 & & & 9 & & & 5 & & & 3 & & & 8 & & 7 & \nl
634 1 & & & 5 & & & 2 & & 9 & & & 6 & & & 3 & & & 8 & & & 4 & & & 7 & & 1 & & & 5 & & & 2 & & 9 & & & 6 & & & 3 & & & 8 & & & 4 & & & 1 \nl
635 & 9 & & & 4 & & 7 & & & 3 & & & 8 & & & 5 & & & 2 & & & 6 & & & 1 & & 9 & & & 4 & & & 7 & & & 3 & & & 8 & & & 5 & & & 2 & & & & \nl
636 4 & & 7 & & & 1 & & 5 & & & 9 & & & 6 & & & 3 & & & 8 & & & 4 & & 7 & & & 1 & & 5 & & & 9 & & & 6 & & & 3 & & & 8 & & & 4 & & 7 & & \nl
637 & 2 & & 6 & & & 3 & & & 8 & & 4 & & & 7 & & & 1 & & & 5 & & & 9 & & 2 & & & 6 & & & 3 & & & 8 & & 4 & & & 7 & & & 1 & & & 5 & & & 9
638 \NL
639 5 & & 1 & & 9 & & & 7 & & & 2 & & & 4 & & & 8 & & & 3 & & & 6 & & 5 & & 1 & & 9 & & & 7 & & & 2 & & & 4 & & & 8 & & & 3 & & & 6 & & 5 \nl
640 & 3 & & & 6 & & 8 & & & 9 & & & 5 & & & 2 & & & 7 & & & 4 & & 3 & & & 6 & & & 8 & & & 1 & & 9 & & & 5 & & & 2 & & & 7 & & & 4 & & \nl
641 2 & & & 5 & & 7 & & & & 3 & & & 9 & & & 6 & & & 1 & & & 8 & & 2 & & & 5 & & & 7 & & & 4 & & & 3 & & & 9 & & & 6 & & & 1 & & & 8 & \nl
642 & 8 & & & 1 & & & 5 & & & 7 & & & 2 & & & 4 & & & 9 & & & 3 & & & 8 & & & 1 & & & 5 & & & 7 & & & 2 & & & 4 & & & 9 & & & 3 & & \nl
643 7 & & & 4 & & & 9 & & & 6 & & & 1 & & & 8 & & & 3 & & & 5 & & & 7 & & & 4 & & & 9 & & & 6 & & & 1 & & & 8 & & & 3 & & & 5 & & & 7 \nl
644 & 5 & & & 3 & & & 1 & & & 9 & & & 7 & & & 2 & & & 6 & & & 4 & & & 5 & & & 3 & & & 1 & & & 9 & & & 7 & & & 2 & & & 6 & & & 4 & & \nl
645 9 & & 6 & & & 4 & & & 8 & & & 5 & & & 1 & & & 7 & & & 3 & & & 9 & & 6 & & & 4 & & & 8 & & & 5 & & & 1 & & & 7 & & & 3 & & & 9 & & 6
646 \NL
647 & 1 & & 7 & & & 2 & & & 9 & & & 4 & & & 3 & & & 8 & & & 6 & & & 1 & & & 7 & & & 2 & & & 9 & & & 4 & & & 3 & & & 8 & & & 6 & & & 1 \nl
648 4 & & & 9 & & 3 & & & 5 & & & 7 & & & 1 & & & 8 & & & 2 & & & 4 & & & 9 & & 3 & & & 5 & & & 7 & & & 1 & & & 8 & & & 2 & & & 4 & & \nl
649 & 7 & & & 5 & & & 8 & & & 3 & & & 6 & & & 9 & & & 1 & & & 4 & & & 7 & & & 5 & & & 8 & & & 3 & & & 6 & & & 9 & & & 1 & & & 4 & & \nl
650 3 & & 2 & & & 9 & & & 1 & & & 5 & & & 7 & & & 4 & & & 6 & & & 3 & & 2 & & & 9 & & & 1 & & & 5 & & & 7 & & & 4 & & & 6 & & & 3 & & 2 \nl
651 & 6 & & & 8 & & & 4 & & & 7 & & & 1 & & & 5 & & & 9 & & & 2 & & & 6 & & & 8 & & & 4 & & & 7 & & & 1 & & & 5 & & & 9 & & & 2 & & \nl
652 8 & & 9 & & & 1 & & & 6 & & & 3 & & & 5 & & & 7 & & & 8 & & 9 & & & 1 & & & 6 & & & 3 & & & 5 & & & 7 & & & 8 & & 9 & & & 1 & & & 6 \nl
653 & 4 & & 3 & & & 7 & & & 2 & & & 9 & & & 8 & & & 1 & & & 5 & & & 4 & & 3 & & & 7 & & & 2 & & & 9 & & & 8 & & & 1 & & & 5 & & & 4 &
654 \NL
655 1 & & & 5 & & 8 & & & 9 & & & 6 & & & 4 & & & 7 & & & 3 & & & 1 & & & 5 & & 8 & & & 9 & & & 6 & & & 4 & & & 7 & & & 3 & & & 1 & & \nl
656 & 9 & & & 2 & & & 7 & & & 5 & & & 1 & & & 8 & & & 4 & & & 6 & & & 9 & & & 2 & & & 7 & & & 5 & & & 1 & & & 8 & & & 4 & & & 6 & & \nl
657 2 & & 6 & & & 4 & & & 8 & & & 3 & & & 7 & & & 9 & & & 1 & & & 2 & & 6 & & & 4 & & & 8 & & & 3 & & & 7 & & & 9 & & & 1 & & & 2 & & 6 \nl
658 & 5 & & & 3 & & & 1 & & & 9 & & & 6 & & & 4 & & & 7 & & & 5 & & & 3 & & & 1 & & & 9 & & & 6 & & & 4 & & & 7 & & & 5 & & & 3 & & \nl
659 7 & & & 8 & & & 2 & & & 5 & & & 9 & & & 1 & & & 3 & & & 6 & & & 7 & & & 8 & & & 2 & & & 5 & & & 9 & & & 1 & & & 3 & & & 6 & & & 7 \nl
660 & 1 & & & 9 & & & 4 & & & 6 & & & 3 & & & 7 & & & 8 & & & 2 & & & 1 & & & 9 & & & 4 & & & 6 & & & 3 & & & 7 & & & 8 & & & 2 & & \nl
661 4 & & 3 & & & 7 & & & 1 & & & 5 & & & 8 & & & 9 & & & 2 & & & 4 & & 3 & & & 7 & & & 1 & & & 5 & & & 8 & & & 9 & & & 2 & & & 4 & & 3
662 \NL
663 & 6 & & & 8 & & & 2 & & & 7 & & & 4 & & & 1 & & & 5 & & & 9 & & & 6 & & & 8 & & & 2 & & & 7 & & & 4 & & & 1 & & & 5 & & & 9 & & \nl
664 5 & & & 9 & & & 3 & & & 6 & & & 1 & & & 8 & & & 7 & & & 4 & & & 5 & & & 9 & & & 3 & & & 6 & & & 1 & & & 8 & & & 7 & & & 4 & & & \nl
665 & 2 & & 4 & & & 7 & & & 9 & & & 5 & & & 3 & & & 8 & & & 1 & & & 2 & & & 4 & & & 7 & & & 9 & & & 5 & & & 3 & & & 8 & & & 1 & & & \nl
666 9 & & 7 & & & 1 & & & 8 & & & 4 & & & 6 & & & 5 & & & 2 & & & 9 & & 7 & & & 1 & & & 8 & & & 4 & & & 6 & & & 5 & & & 2 & & & 9 & & 7 \nl
667 & 3 & & & 6 & & & 9 & & & 1 & & & 7 & & & 4 & & & 8 & & & 3 & & & 6 & & & 9 & & & 1 & & & 7 & & & 4 & & & 8 & & & 3 & & & 6 & & \nl
668 1 & & & 5 & & & 2 & & & 8 & & & 3 & & & 9 & & & 7 & & & 6 & & & 1 & & & 5 & & & 2 & & & 8 & & & 3 & & & 9 & & & 7 & & & 6 & & & 1 \nl
669 & 8 & & & 4 & & & 7 & & & 9 & & & 6 & & & 5 & & & 1 & & & 2 & & & 8 & & & 4 & & & 7 & & & 9 & & & 6 & & & 5 & & & 1 & & & 2 & &
670 \end{sudoku}
671 \end{center}
672 \clearpage
673
674
675 \section{Compatibility}
676 \label{sec:Compatibility}
677
678 \begin{itemize}
679 \item The package relies on \texttt{pgfkeys}, \texttt{array}, \texttt{xparse}, \texttt{kvoptions}, and \texttt{ifthen}, so these must be installed and up to date.
680
681 \item It may be incompatible with other Sudoku-related packages that redefine tabular environments or grid drawing.
682
683 \item Since the package uses fixed tabular layouts for each supported size, unsupported sizes will trigger an error.
684
685 \item The column types \texttt{S} and \texttt{T} are predefined by the package: \texttt{S} corresponds to standard cells, while \texttt{T} represents thick vertical borders. To ensure proper grid rendering, avoid redefining these column types.
686
687 \item Cell content should be plain text or use simple text-formatting commands. If mathematical expressions are needed, they should be enclosed in standard math environments such as \verb|$...$| or \verb|\(...\)|.
688 \end{itemize}
689
690
691
692 \section{Closing}
693 \label{sec:Closing}
694
695 Please report bugs or suggestions to \myemail.
696
697 \phantom{.}\hfill
698 Happy puzzling!
699
700
701
702 \end{document}
703