diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/logicpuzzle/bokkusu.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/logicpuzzle/bokkusu.sty | 224 |
1 files changed, 30 insertions, 194 deletions
diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/bokkusu.sty b/Master/texmf-dist/tex/latex/logicpuzzle/bokkusu.sty index f7712888537..d740fb1c64b 100644 --- a/Master/texmf-dist/tex/latex/logicpuzzle/bokkusu.sty +++ b/Master/texmf-dist/tex/latex/logicpuzzle/bokkusu.sty @@ -20,195 +20,31 @@ %% This work consists of all files listed in manifest.txt. %% % -\ProvidesPackage{bokkusu}[2013/03/09 bokkusu.sty v1.1 - Josef Kleber (C) 2013]% +\ProvidesPackage{bokkusu}[2013/03/25 bokkusu.sty v1.2 - Josef Kleber (C) 2013]% % \RequirePackage{logicpuzzle}% % -% options -\newcommand*\BK@width{6.7cm}% -\newcommand*\BK@fontsize\Large% -\newcommand*\BK@rows{5}% -\newcommand*\BK@columns{5}% -\newcommand*\BK@scale{1}% -\newcommand*\BK@color{black}% -\newcommand*\BK@bgcolor{}% -\newcommand*\BK@cvoffset{-23pt}% -\newcommand*\BK@title{}% -\newcommand*\BK@titleindent{0.75cm}% -\newcommand*\BK@titlewidth{5.85cm}% -% -\newcounter{BK@rows}% -\newcounter{BK@columns}% -% -\setcounter{BK@rows}{\BK@rows}% -\setcounter{BK@columns}{\BK@columns}% -\stepcounter{BK@rows}% -\stepcounter{BK@columns}% -% -\define@key{bokkusu.sty}{rows}[5]% -{% - \renewcommand*\BK@rows{#1}% -}% -% -\define@key{bokkusu.sty}{columns}[5]% -{% - \renewcommand*\BK@columns{#1}% -}% -% -\define@key{bokkusu.sty}{scale}[1]% -{% - \renewcommand*\BK@scale{#1}% -}% -% -\define@key{bokkusu.sty}{counterstyle}[none]% -{% - \renewcommand*\LP@counterstyle{#1}% -}% -% -\define@key{bokkusu.sty}{color}[black]% -{% - \renewcommand*\BK@color{#1}% -}% -% -\define@key{bokkusu.sty}{bgcolor}[]% -{% - \renewcommand*\BK@bgcolor{#1}% -}% -% -\define@choicekey*{bokkusu.sty}{fontsize}[\BK@fontsize\nr]{tiny,scriptsize,footnotesize,small,normalsize,large,Large,LARGE,huge,Huge}[Large]% -{% - \ifcase\nr\relax% - \renewcommand*\BK@fontsize{\tiny}% - \or% - \renewcommand*\BK@fontsize{\scriptsize}% - \or% - \renewcommand*\BK@fontsize{\footnotesize}% - \or% - \renewcommand*\BK@fontsize{\small}% - \or% - \renewcommand*\BK@fontsize{\normalsize}% - \or% - \renewcommand*\BK@fontsize{\large}% - \or% - \renewcommand*\BK@fontsize{\Large}% - \or% - \renewcommand*\BK@fontsize{\LARGE}% - \or% - \renewcommand*\BK@fontsize{\huge}% - \or% - \renewcommand*\BK@fontsize{\Huge}% - \fi% -}% -% -\define@key{bokkusu.sty}{width}[6.7cm]% -{% - \renewcommand*\BK@width{#1}% -}% -% -\define@key{bokkusu.sty}{title}[]% -{% - \renewcommand*\BK@title{#1}% -}% -% -\define@key{bokkusu.sty}{cvoffset}[-38pt]% -{% - \renewcommand*\BK@cvoffset{#1}% -}% -% -\define@key{bokkusu.sty}{titleindent}[0.75cm]% -{% - \renewcommand*\BK@titleindent{#1}% -}% -% -\define@key{bokkusu.sty}{titlewidth}[5.85cm]% -{% - \renewcommand*\BK@titlewidth{#1}% -}% -% -\define@key{bokkusu}{rows}% -{% - \renewcommand*\BK@rows{#1}% -}% -% -\define@key{bokkusu}{columns}% -{% - \renewcommand*\BK@columns{#1}% -}% -% -\define@key{bokkusu}{scale}% -{% - \renewcommand*\BK@scale{#1}% -}% -% -\define@key{bokkusu}{color}% -{% - \renewcommand*\BK@color{#1}% -}% -% -\define@key{bokkusu}{bgcolor}% -{% - \renewcommand*\BK@bgcolor{#1}% -}% -% -\define@key{bokkusu}{counterstyle}% -{% - \renewcommand*\LP@counterstyle{#1}% -}% -% -\define@choicekey*{bokkusu}{fontsize}[\BK@fontsize\nr]{tiny,scriptsize,footnotesize,small,normalsize,large,Large,LARGE,huge,Huge}[Large]% -{% - \ifcase\nr\relax% - \renewcommand*\BK@fontsize{\tiny}% - \or% - \renewcommand*\BK@fontsize{\scriptsize}% - \or% - \renewcommand*\BK@fontsize{\footnotesize}% - \or% - \renewcommand*\BK@fontsize{\small}% - \or% - \renewcommand*\BK@fontsize{\normalsize}% - \or% - \renewcommand*\BK@fontsize{\large}% - \or% - \renewcommand*\BK@fontsize{\Large}% - \or% - \renewcommand*\BK@fontsize{\LARGE}% - \or% - \renewcommand*\BK@fontsize{\huge}% - \or% - \renewcommand*\BK@fontsize{\Huge}% - \fi% -}% -% -\define@key{bokkusu}{width}% -{% - \renewcommand*\BK@width{#1}% -}% -% -\define@key{bokkusu}{title}% -{% - \renewcommand*\BK@title{#1}% -}% -% -\define@key{bokkusu}{cvoffset}% -{% - \renewcommand*\BK@cvoffset{#1}% -}% -% -\define@key{bokkusu}{titleindent}% -{% - \renewcommand*\BK@titleindent{#1}% -}% -% -\define@key{bokkusu}{titlewidth}% -{% - \renewcommand*\BK@titlewidth{#1}% -}% +\newcommand*\LP@BK@init@prefix{LP@BK}% +\newcommand*\LP@BK@init@package{bokkusu}% +% +\LP@define@key{\LP@BK@init@prefix}{\LP@BK@init@package}{rows}{5}% +\LP@define@key{\LP@BK@init@prefix}{\LP@BK@init@package}{columns}{5}% +\LP@define@key{\LP@BK@init@prefix}{\LP@BK@init@package}{scale}{1}% +\LP@define@key{\LP@BK@init@prefix}{\LP@BK@init@package}{counterstyle}{none}% +\LP@define@key{\LP@BK@init@prefix}{\LP@BK@init@package}{color}{black}% +\LP@define@key{\LP@BK@init@prefix}{\LP@BK@init@package}{bgcolor}{}% +\LP@define@key{\LP@BK@init@prefix}{\LP@BK@init@package}{width}{6.7cm}% +\LP@define@key{\LP@BK@init@prefix}{\LP@BK@init@package}{cvoffset}{-38pt}% +\LP@define@key{\LP@BK@init@prefix}{\LP@BK@init@package}{title}{}% +\LP@define@key{\LP@BK@init@prefix}{\LP@BK@init@package}{titleindent}{0.75cm}% +\LP@define@key{\LP@BK@init@prefix}{\LP@BK@init@package}{titlewidth}{5.85cm}% +\LP@define@choicekey@fontsize{\LP@BK@init@prefix}{\LP@BK@init@package}{Large}% % \ExecuteOptionsX{rows,columns,width,fontsize,scale,color,bgcolor,cvoffset,counterstyle,title,titleindent,titlewidth}% -% \ProcessOptionsX\relax% % +\LP@init@counter{\LP@BK@init@prefix}% +% \let\valueH\LP@bottomrow% \let\valueV\LP@leftcolumn% \let\sumH\LP@toprow% @@ -223,22 +59,22 @@ {% \setkeys{bokkusu}{#1}% \LP@set@package{bokkusu}% - \LP@set@env@prefix{BK}% - \setcounter{BK@rows}{\BK@rows}% - \setcounter{BK@columns}{\BK@columns}% - \stepcounter{BK@rows}% - \stepcounter{BK@columns}% - \begin{minipage}[t]{\BK@width}% - \ifthenelse{\equal{\BK@title}{}}% + \LP@set@env@prefix{LP@BK}% + \setcounter{LP@BK@rows}{\LP@BK@rows}% + \setcounter{LP@BK@columns}{\LP@BK@columns}% + \stepcounter{LP@BK@rows}% + \stepcounter{LP@BK@columns}% + \begin{minipage}[t]{\LP@BK@width}% + \ifthenelse{\equal{\LP@BK@title}{}}% {\par\enspace\par}% empty - {\enspace\par\noindent\hspace{\BK@titleindent}\parbox{\BK@titlewidth}{\strut\LP@titleformat\BK@title}\vspace{3mm}\par}% - \begin{tikzpicture}[scale=\BK@scale]% - \LP@drawbackground{1}{1}{\BK@columns}{\BK@rows}{\BK@bgcolor}% - \LP@drawgrid{1}{1}{\BK@columns}{\BK@rows}{1cm}% + {\enspace\par\noindent\hspace{\LP@BK@titleindent}\parbox{\LP@BK@titlewidth}{\strut\LP@titleformat\LP@BK@title}\vspace{3mm}\par}% + \begin{tikzpicture}[scale=\LP@BK@scale]% + \LP@drawbackground{1}{1}{\LP@BK@columns}{\LP@BK@rows}{\LP@BK@bgcolor}% + \LP@drawgrid{1}{1}{\LP@BK@columns}{\LP@BK@rows}{1cm}% }% {% \end{tikzpicture}% - \LP@drawcounter{\LP@counterstyle}% + \LP@drawcounter{\LP@BK@counterstyle}% \stepcounter{LP@puzzlecounter}% \end{minipage}% }% |