diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/logicpuzzle/hitori.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/logicpuzzle/hitori.sty | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/hitori.sty b/Master/texmf-dist/tex/latex/logicpuzzle/hitori.sty new file mode 100644 index 00000000000..e8307962299 --- /dev/null +++ b/Master/texmf-dist/tex/latex/logicpuzzle/hitori.sty @@ -0,0 +1,79 @@ +%% +%% Copyright (C) 2013 by: +%% Josef Kleber +%% <josef.kleber@gmx.de> +%% +%% 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{hitori}[2013/04/05 hitori.sty v1.0 - Josef Kleber (C) 2013]% +% +\RequirePackage{logicpuzzle}% +% +\newcommand*\LP@HT@init@prefix{LP@HT}% +\newcommand*\LP@HT@init@package{hitori}% +% +\LP@define@key{\LP@HT@init@prefix}{\LP@HT@init@package}{rows}{5}% +\LP@define@key{\LP@HT@init@prefix}{\LP@HT@init@package}{columns}{5}% +\LP@define@key{\LP@HT@init@prefix}{\LP@HT@init@package}{scale}{1}% +\LP@define@key{\LP@HT@init@prefix}{\LP@HT@init@package}{counterstyle}{none}% +\LP@define@key{\LP@HT@init@prefix}{\LP@HT@init@package}{bgcolor}{}% +\LP@define@key{\LP@HT@init@prefix}{\LP@HT@init@package}{width}{5.1cm}% +\LP@define@key{\LP@HT@init@prefix}{\LP@HT@init@package}{cvoffset}{-23pt}% +\LP@define@key{\LP@HT@init@prefix}{\LP@HT@init@package}{title}{}% +\LP@define@key{\LP@HT@init@prefix}{\LP@HT@init@package}{titleindent}{0cm}% +\LP@define@key{\LP@HT@init@prefix}{\LP@HT@init@package}{titlewidth}{5.1cm}% +\LP@define@choicekey@fontsize{\LP@HT@init@prefix}{\LP@HT@init@package}{Large}% +% +\ExecuteOptionsX{rows,columns,width,fontsize,scale,bgcolor,cvoffset,counterstyle,title,titleindent,titlewidth}% +% +\ProcessOptionsX\relax% +% +\LP@init@counter{\LP@HT@init@prefix}% +% +\let\hitoricell\setcell% +% +\newcommand*\hitorisetup[1]% +{% + \setkeys{hitori.sty}{#1}% +}% +% +\newenvironment{hitori}[1][]% +{% + \setkeys{hitori}{#1}% + \LP@set@package{hitori}% + \LP@set@env@prefix{LP@HT}% + \setcounter{LP@HT@rows}{\LP@HT@rows}% + \setcounter{LP@HT@columns}{\LP@HT@columns}% + \stepcounter{LP@HT@rows}% + \stepcounter{LP@HT@columns}% + \begin{minipage}[t]{\LP@HT@width}% + \ifthenelse{\equal{\LP@HT@title}{}}% + {\par\enspace\par}% empty + {\enspace\par\noindent\hspace{\LP@HT@titleindent}\parbox{\LP@HT@titlewidth}{\strut\LP@titleformat\LP@HT@title}\vspace{3mm}\par}% + \begin{tikzpicture}[scale=\LP@HT@scale]% + \LP@drawbackground{1}{1}{\LP@HT@columns}{\LP@HT@rows}{\LP@HT@bgcolor}% + \LP@drawgrid{1}{1}{\LP@HT@columns}{\LP@HT@rows}{1cm}% +}% +{% + \end{tikzpicture}% + \LP@drawcounter{\LP@HT@counterstyle}% + \stepcounter{LP@puzzlecounter}% + \end{minipage}% +}% +% +\endinput%
\ No newline at end of file |