diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/logicpuzzle/hakyuu.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/logicpuzzle/hakyuu.sty | 232 |
1 files changed, 232 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/hakyuu.sty b/Master/texmf-dist/tex/latex/logicpuzzle/hakyuu.sty new file mode 100644 index 00000000000..07ace4e5bc3 --- /dev/null +++ b/Master/texmf-dist/tex/latex/logicpuzzle/hakyuu.sty @@ -0,0 +1,232 @@ +%% +%% 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{hakyuu}[2013/03/16 hakyuu.sty v1.0 - Josef Kleber (C) 2013]% +% +\RequirePackage{logicpuzzle}% +% +% options +\newcommand*\LP@HY@width{5.1cm}% +\newcommand*\LP@HY@fontsize\Large% +\newcommand*\LP@HY@rows{5}% +\newcommand*\LP@HY@columns{5}% +\newcommand*\LP@HY@scale{1}% +\newcommand*\LP@HY@bgcolor{}% +\newcommand*\LP@HY@cvoffset{-39pt}% +\newcommand*\LP@HY@title{}% +\newcommand*\LP@HY@titleindent{0cm}% +\newcommand*\LP@HY@titlewidth{5.1cm}% +% +\newcounter{LP@HY@rows}% +\newcounter{LP@HY@columns}% +% +\setcounter{LP@HY@rows}{\LP@HY@rows}% +\setcounter{LP@HY@columns}{\LP@HY@columns}% +\stepcounter{LP@HY@rows}% +\stepcounter{LP@HY@columns}% +% +\define@key{hakyuu.sty}{rows}[5]% +{% + \renewcommand*\LP@HY@rows{#1}% +}% +% +\define@key{hakyuu.sty}{columns}[5]% +{% + \renewcommand*\LP@HY@columns{#1}% +}% +% +\define@key{hakyuu.sty}{scale}[1]% +{% + \renewcommand*\LP@HY@scale{#1}% +}% +% +\define@key{hakyuu.sty}{counterstyle}[none]% +{% + \renewcommand*\LP@counterstyle{#1}% +}% +% +\define@key{hakyuu.sty}{bgcolor}[]% +{% + \renewcommand*\LP@HY@bgcolor{#1}% +}% +% +\define@choicekey*{hakyuu.sty}{fontsize}[\LP@HY@fontsize\nr]{tiny,scriptsize,footnotesize,small,normalsize,large,Large,LARGE,huge,Huge}[Large]% +{% + \ifcase\nr\relax% + \renewcommand*\LP@HY@fontsize{\tiny}% + \or% + \renewcommand*\LP@HY@fontsize{\scriptsize}% + \or% + \renewcommand*\LP@HY@fontsize{\footnotesize}% + \or% + \renewcommand*\LP@HY@fontsize{\small}% + \or% + \renewcommand*\LP@HY@fontsize{\normalsize}% + \or% + \renewcommand*\LP@HY@fontsize{\large}% + \or% + \renewcommand*\LP@HY@fontsize{\Large}% + \or% + \renewcommand*\LP@HY@fontsize{\LARGE}% + \or% + \renewcommand*\LP@HY@fontsize{\huge}% + \or% + \renewcommand*\LP@HY@fontsize{\Huge}% + \fi% +}% +% +\define@key{hakyuu.sty}{width}[5.1cm]% +{% + \renewcommand*\LP@HY@width{#1}% +}% +% +\define@key{hakyuu.sty}{title}[]% +{% + \renewcommand*\LP@HY@title{#1}% +}% +% +\define@key{hakyuu.sty}{cvoffset}[-22pt]% +{% + \renewcommand*\LP@HY@cvoffset{#1}% +}% +% +\define@key{hakyuu.sty}{titleindent}[0cm]% +{% + \renewcommand*\LP@HY@titleindent{#1}% +}% +% +\define@key{hakyuu.sty}{titlewidth}[5.1cm]% +{% + \renewcommand*\LP@HY@titlewidth{#1}% +}% +% +\define@key{hakyuu}{rows}% +{% + \renewcommand*\LP@HY@rows{#1}% +}% +% +\define@key{hakyuu}{columns}% +{% + \renewcommand*\LP@HY@columns{#1}% +}% +% +\define@key{hakyuu}{scale}% +{% + \renewcommand*\LP@HY@scale{#1}% +}% +% +\define@key{hakyuu}{bgcolor}% +{% + \renewcommand*\LP@HY@bgcolor{#1}% +}% +% +\define@key{hakyuu}{counterstyle}% +{% + \renewcommand*\LP@counterstyle{#1}% +}% +% +\define@choicekey*{hakyuu}{fontsize}[\LP@HY@fontsize\nr]{tiny,scriptsize,footnotesize,small,normalsize,large,Large,LARGE,huge,Huge}[Large]% +{% + \ifcase\nr\relax% + \renewcommand*\LP@HY@fontsize{\tiny}% + \or% + \renewcommand*\LP@HY@fontsize{\scriptsize}% + \or% + \renewcommand*\LP@HY@fontsize{\footnotesize}% + \or% + \renewcommand*\LP@HY@fontsize{\small}% + \or% + \renewcommand*\LP@HY@fontsize{\normalsize}% + \or% + \renewcommand*\LP@HY@fontsize{\large}% + \or% + \renewcommand*\LP@HY@fontsize{\Large}% + \or% + \renewcommand*\LP@HY@fontsize{\LARGE}% + \or% + \renewcommand*\LP@HY@fontsize{\huge}% + \or% + \renewcommand*\LP@HY@fontsize{\Huge}% + \fi% +}% +% +\define@key{hakyuu}{width}% +{% + \renewcommand*\LP@HY@width{#1}% +}% +% +\define@key{hakyuu}{title}% +{% + \renewcommand*\LP@HY@title{#1}% +}% +% +\define@key{hakyuu}{cvoffset}% +{% + \renewcommand*\LP@HY@cvoffset{#1}% +}% +% +\define@key{hakyuu}{titleindent}% +{% + \renewcommand*\LP@HY@titleindent{#1}% +}% +% +\define@key{hakyuu}{titlewidth}% +{% + \renewcommand*\LP@HY@titlewidth{#1}% +}% +% +\ExecuteOptionsX{rows,columns,width,fontsize,scale,bgcolor,cvoffset,counterstyle,title,titleindent,titlewidth}% +% +\ProcessOptionsX\relax% +% +\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@counterstyle}% + \stepcounter{LP@puzzlecounter}% + \end{minipage}% +}% +% +\endinput%
\ No newline at end of file |