%% %% Copyright (C) 2013 by: %% Josef Kleber %% %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3 of this license %% or (at your option) any later version. The latest version of this %% license is in: %% %% http://www.latex-project.org/lppl.txt %% %% and version 1.3 or later is part of all distributions of LaTeX version %% 2003/12/01 or later. %% %% This work has the LPPL maintenance status "author-maintained". %% %% The Current Maintainer of this work is Josef Kleber. %% %% This work consists of all files listed in manifest.txt. %% % \ProvidesPackage{bokkusu}[2013/03/25 bokkusu.sty v1.2 - Josef Kleber (C) 2013]% % \RequirePackage{logicpuzzle}% % \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% \let\sumV\LP@rightcolumn% % \newcommand*\bokkususetup[1]% {% \setkeys{bokkusu.sty}{#1}% }% % \newenvironment{bokkusu}[1][]% {% \setkeys{bokkusu}{#1}% \LP@set@package{bokkusu}% \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{\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@BK@counterstyle}% \stepcounter{LP@puzzlecounter}% \end{minipage}% }% % \endinput%