diff options
author | Karl Berry <karl@freefriends.org> | 2006-07-14 22:41:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-07-14 22:41:47 +0000 |
commit | 8e31fe3c99d1f1b6a0eda074f89b206fd70aa9e5 (patch) | |
tree | efbc3f506952613e17f980d9f1334255d63be10e /Master | |
parent | bb8fed912dec0ce6c7a7c8171411cd77ee7b1929 (diff) |
sudoku update
git-svn-id: svn://tug.org/texlive/trunk@1841 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/sudoku/CHANGES | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/sudoku/sudoku.pdf | bin | 65040 -> 67384 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/sudoku/sudoku.dtx | 62 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/sudoku/sudoku.ins | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/sudoku/sudoku.sty | 19 | ||||
-rw-r--r-- | Master/texmf-dist/tpm/sudoku.tpm | 8 |
6 files changed, 77 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/sudoku/CHANGES b/Master/texmf-dist/doc/latex/sudoku/CHANGES index 555f604ba5b..af9a457c426 100644 --- a/Master/texmf-dist/doc/latex/sudoku/CHANGES +++ b/Master/texmf-dist/doc/latex/sudoku/CHANGES @@ -1,2 +1,7 @@ Version 1.0 (June 2005)
Initial version
+
+Version 1.0.1 (March 2006)
+Added ability to specify line thicknesses
+Filled in corners of grid
+Updated email address to paul.abraham@linuxdirect.org
diff --git a/Master/texmf-dist/doc/latex/sudoku/sudoku.pdf b/Master/texmf-dist/doc/latex/sudoku/sudoku.pdf Binary files differindex 3e926d5c572..de50a737715 100644 --- a/Master/texmf-dist/doc/latex/sudoku/sudoku.pdf +++ b/Master/texmf-dist/doc/latex/sudoku/sudoku.pdf diff --git a/Master/texmf-dist/source/latex/sudoku/sudoku.dtx b/Master/texmf-dist/source/latex/sudoku/sudoku.dtx index b6e6129c9a3..c74c72afa92 100644 --- a/Master/texmf-dist/source/latex/sudoku/sudoku.dtx +++ b/Master/texmf-dist/source/latex/sudoku/sudoku.dtx @@ -1,7 +1,7 @@ % \iffalse meta-comment % % sudoku.dtx -% Copyright 2005 Paul Abraham <paul.abraham@hotpop.com> +% Copyright 2005,2006 Paul Abraham <paul.abraham@linuxdirect.org> % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -24,7 +24,7 @@ % \iffalse %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<package>\ProvidesPackage{sudoku} -%<package> [2005/06/29 v1.0 Sudoku grid] +%<package> [2006/03/25 v1.0.1 Sudoku grid] % %<*driver> \documentclass{ltxdoc} @@ -40,7 +40,7 @@ %</driver> % \fi % -% \CheckSum{84} +% \CheckSum{104} % % \CharacterTable % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -59,6 +59,7 @@ % Right brace \} Tilde \~} % % \changes{v1.0}{2005/06/29}{Initial version} +% \changes{v1.0.1}{2006/03/25}{Added ability to specify line thickness} % % \GetFileInfo{sudoku.sty} % @@ -68,7 +69,7 @@ % % \title{The \textsf{sudoku} package\thanks{This document % corresponds to \textsf{sudoku}~\fileversion, dated \filedate.}} -% \author{Paul Abraham \\ \texttt{paul.abraham@hotpop.com}} +% \author{Paul Abraham \\ \texttt{paul.abraham@linuxdirect.org}} % % \maketitle % @@ -113,13 +114,23 @@ % This length contains the size of the grid, defaulting to \verb|10cm|. % It can be changed with \verb|\setlength\sudokusize{|\meta{size}|}|. % +% \DescribeMacro{\sudokuthickline} +% This length determines the thickness of the thick lines and defaults +% to \verb|2pt|. It can be changed with +% \verb|\setlength\sudokuthickline{|\meta{size}|}|. +% +% \DescribeMacro{\sudokuthinline} +% This length determines the thickness of the thin lines and defaults +% to \verb|0.4pt|. It can be changed with +% It can be changed with \verb|\setlength\sudokuthinline{|\meta{size}|}|. +% % \DescribeEnv{sudoku-block} % This environment draws the sudoku grid. The contents of each cell % in the grid are delimited by the vertical bar (\verb+|+) character. % % \DescribeEnv{sudoku} -% This environment starts a |center| environment, then uses the -% |sudoku-block| environment to draw the grid. +% This environment starts a \verb|center| environment, then uses the +% \verb|sudoku-block| environment to draw the grid. % % \section{Examples} % @@ -212,6 +223,7 @@ % %\iffalse % 2005/06/29 v1.0 Initial version +% 2006/03/25 v1.0.1 Added ability to specify line thickness %\fi % % \section{Implementation} @@ -247,16 +259,38 @@ % \end{macrocode} % % Now we can draw the grid. Each 3$\times$3 box has thicker borders -% than the rest of the grid. +% than the rest of the grid. From version 1.0.1, the line thickness +% can be determined by changing \verb|\sudokuthinline| and +% \verb|\sudokuthickline|. % % \begin{macrocode} -\newcommand*\@sudoku@grid{% - \thinlines +\newcommand*\@sudoku@grid{ +% \end{macrocode} +% +% First draw the thin lines. +% +% \begin{macrocode} + \linethickness{\sudokuthinline}% \multiput(0,0)(1,0){10}{\line(0,1){9}}% \multiput(0,0)(0,1){10}{\line(1,0){9}} - \thicklines +% \end{macrocode} +% +% Now draw the thick lines. +% +% \begin{macrocode} + \linethickness{\sudokuthickline}% \multiput(0,0)(3,0){4}{\line(0,1){9}}% \multiput(0,0)(0,3){4}{\line(1,0){9}} +% \end{macrocode} +% +% Finally try and fill in the four corners of the grid. +% +% \begin{macrocode} + \linethickness{0.5\sudokuthickline}% + \put(0,0){\framebox(0,0){}}% + \put(9,0){\framebox(0,0){}}% + \put(0,9){\framebox(0,0){}}% + \put(9,9){\framebox(0,0){}} } % \end{macrocode} % @@ -271,6 +305,14 @@ \setlength\sudokusize{10cm} % \end{macrocode} % +% Set line thicknesses to 0.4pt and 2pt for thin and thick lines. +% \begin{macrocode} +\newdimen\sudokuthinline +\setlength\sudokuthinline{0.4pt} +\newdimen\sudokuthickline +\setlength\sudokuthickline{2pt} +% \end{macrocode} +% % Make the size of each square $1/9$ of the size of sudoku grid. % \begin{macrocode} \newenvironment{sudoku-block}{% diff --git a/Master/texmf-dist/source/latex/sudoku/sudoku.ins b/Master/texmf-dist/source/latex/sudoku/sudoku.ins index 2ae2b8359bb..fe8f6dc9dce 100644 --- a/Master/texmf-dist/source/latex/sudoku/sudoku.ins +++ b/Master/texmf-dist/source/latex/sudoku/sudoku.ins @@ -1,5 +1,5 @@ %% sudoku.ins -%% Copyright 2005 Paul Abraham <paul.abraham@hotpop.com> +%% Copyright 2005,2006 Paul Abraham <paul.abraham@linuxdirect.org> %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -23,7 +23,7 @@ This is a generated file. -Copyright 2005 Paul Abraham <paul.abraham@hotpop.com> +Copyright 2005,2006 Paul Abraham <paul.abraham@linuxdirect.org> This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either diff --git a/Master/texmf-dist/tex/latex/sudoku/sudoku.sty b/Master/texmf-dist/tex/latex/sudoku/sudoku.sty index bd3121d4a1c..b955e2854b1 100644 --- a/Master/texmf-dist/tex/latex/sudoku/sudoku.sty +++ b/Master/texmf-dist/tex/latex/sudoku/sudoku.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright 2005 Paul Abraham <paul.abraham@hotpop.com> +%% Copyright 2005,2006 Paul Abraham <paul.abraham@linuxdirect.org> %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -28,7 +28,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{sudoku} - [2005/06/29 v1.0 Sudoku grid] + [2006/03/25 v1.0.1 Sudoku grid] \newcounter{@sudoku@row} \newcounter{@sudoku@col} \newcommand*\@sudoku@separator[1]{% @@ -49,17 +49,26 @@ \catcode`\|=\active \gdef\@sudoku@activate{\let|=\@sudoku@separator} \endgroup -\newcommand*\@sudoku@grid{% - \thinlines +\newcommand*\@sudoku@grid{ + \linethickness{\sudokuthinline}% \multiput(0,0)(1,0){10}{\line(0,1){9}}% \multiput(0,0)(0,1){10}{\line(1,0){9}} - \thicklines + \linethickness{\sudokuthickline}% \multiput(0,0)(3,0){4}{\line(0,1){9}}% \multiput(0,0)(0,3){4}{\line(1,0){9}} + \linethickness{0.5\sudokuthickline}% + \put(0,0){\framebox(0,0){}}% + \put(9,0){\framebox(0,0){}}% + \put(0,9){\framebox(0,0){}}% + \put(9,9){\framebox(0,0){}} } \newcommand*\sudokuformat[1]{\Huge\sffamily#1} \newdimen\sudokusize \setlength\sudokusize{10cm} +\newdimen\sudokuthinline +\setlength\sudokuthinline{0.4pt} +\newdimen\sudokuthickline +\setlength\sudokuthickline{2pt} \newenvironment{sudoku-block}{% \catcode`\|=\active \@sudoku@activate diff --git a/Master/texmf-dist/tpm/sudoku.tpm b/Master/texmf-dist/tpm/sudoku.tpm index 6da99f7cd0b..f73c470357c 100644 --- a/Master/texmf-dist/tpm/sudoku.tpm +++ b/Master/texmf-dist/tpm/sudoku.tpm @@ -3,7 +3,7 @@ <rdf:Description about="http://texlive.dante.de/texlive/Package/sudoku.zip"> <TPM:Name>sudoku</TPM:Name> <TPM:Type>Package</TPM:Type> - <TPM:Date>2006/01/11 23:58:09</TPM:Date> + <TPM:Date>2006/03/25 18:45:00</TPM:Date> <TPM:Version></TPM:Version> <TPM:Creator>karl</TPM:Creator> <TPM:Title>Create sudoku grids.</TPM:Title> @@ -23,16 +23,16 @@ to print them from there if you have this package installed. <TPM:Author></TPM:Author> <TPM:Size>83314</TPM:Size> <TPM:Build/> - <TPM:RunFiles size="4671"> + <TPM:RunFiles size="5034"> texmf-dist/tex/latex/sudoku/sudoku.sty texmf-dist/tpm/sudoku.tpm </TPM:RunFiles> - <TPM:DocFiles size="66140"> + <TPM:DocFiles size="68639"> texmf-dist/doc/latex/sudoku/CHANGES texmf-dist/doc/latex/sudoku/README texmf-dist/doc/latex/sudoku/sudoku.pdf </TPM:DocFiles> - <TPM:SourceFiles size="12503"> + <TPM:SourceFiles size="14346"> texmf-dist/source/latex/sudoku/sudoku.dtx texmf-dist/source/latex/sudoku/sudoku.ins </TPM:SourceFiles> |