%% %% 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{hakyuu}[2013/03/27 hakyuu.sty v1.1 - Josef Kleber (C) 2013]% % \RequirePackage{logicpuzzle}% % \newcommand*\LP@HY@init@prefix{LP@HY}% \newcommand*\LP@HY@init@package{hakyuu}% % \LP@define@key{\LP@HY@init@prefix}{\LP@HY@init@package}{rows}{5}% \LP@define@key{\LP@HY@init@prefix}{\LP@HY@init@package}{columns}{5}% \LP@define@key{\LP@HY@init@prefix}{\LP@HY@init@package}{scale}{1}% \LP@define@key{\LP@HY@init@prefix}{\LP@HY@init@package}{counterstyle}{none}% \LP@define@key{\LP@HY@init@prefix}{\LP@HY@init@package}{bgcolor}{}% \LP@define@key{\LP@HY@init@prefix}{\LP@HY@init@package}{width}{5.1cm}% \LP@define@key{\LP@HY@init@prefix}{\LP@HY@init@package}{cvoffset}{-23pt}% \LP@define@key{\LP@HY@init@prefix}{\LP@HY@init@package}{title}{}% \LP@define@key{\LP@HY@init@prefix}{\LP@HY@init@package}{titleindent}{0cm}% \LP@define@key{\LP@HY@init@prefix}{\LP@HY@init@package}{titlewidth}{5.1cm}% \LP@define@choicekey@fontsize{\LP@HY@init@prefix}{\LP@HY@init@package}{Large}% % \ExecuteOptionsX{rows,columns,width,fontsize,scale,bgcolor,cvoffset,counterstyle,title,titleindent,titlewidth}% % \ProcessOptionsX\relax% % \LP@init@counter{\LP@HY@init@prefix}% % \let\hakyuucell\setcell% % \newcommand*\hakyuusetup[1]% {% \setkeys{hakyuu.sty}{#1}% }% % \newenvironment{hakyuu}[1][]% {% \setkeys{hakyuu}{#1}% \LP@set@package{hakyuu}% \LP@set@env@prefix{LP@HY}% \setcounter{LP@HY@rows}{\LP@HY@rows}% \setcounter{LP@HY@columns}{\LP@HY@columns}% \stepcounter{LP@HY@rows}% \stepcounter{LP@HY@columns}% \begin{minipage}[t]{\LP@HY@width}% \ifthenelse{\equal{\LP@HY@title}{}}% {\par\enspace\par}% empty {\enspace\par\noindent\hspace{\LP@HY@titleindent}\parbox{\LP@HY@titlewidth}{\strut\LP@titleformat\LP@HY@title}\vspace{3mm}\par}% \begin{tikzpicture}[scale=\LP@HY@scale]% \LP@drawbackground{1}{1}{\LP@HY@columns}{\LP@HY@rows}{\LP@HY@bgcolor}% \LP@drawgrid{1}{1}{\LP@HY@columns}{\LP@HY@rows}{1cm}% }% {% \end{tikzpicture}% \LP@drawcounter{\LP@HY@counterstyle}% \stepcounter{LP@puzzlecounter}% \end{minipage}% }% % \endinput%