summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/logicpuzzle/chaossudoku.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/logicpuzzle/chaossudoku.sty')
-rw-r--r--Master/texmf-dist/tex/latex/logicpuzzle/chaossudoku.sty189
1 files changed, 18 insertions, 171 deletions
diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/chaossudoku.sty b/Master/texmf-dist/tex/latex/logicpuzzle/chaossudoku.sty
index 6f6ab6204bf..618cb2a83fe 100644
--- a/Master/texmf-dist/tex/latex/logicpuzzle/chaossudoku.sty
+++ b/Master/texmf-dist/tex/latex/logicpuzzle/chaossudoku.sty
@@ -20,184 +20,31 @@
%% This work consists of all files listed in manifest.txt.
%%
%
-\ProvidesPackage{chaossudoku}[2013/03/16 chaossudoku.sty v1.0 - Josef Kleber (C) 2013]%
+\ProvidesPackage{chaossudoku}[2013/03/27 chaossudoku.sty v1.1 - Josef Kleber (C) 2013]%
%
\RequirePackage{logicpuzzle}%
%
-% options
-\newcommand*\LP@CS@width{5.1cm}%
-\newcommand*\LP@CS@fontsize\Large%
-\newcommand*\LP@CS@rows{5}%
-\newcommand*\LP@CS@columns{5}%
-\newcommand*\LP@CS@scale{1}%
-\newcommand*\LP@CS@bgcolor{}%
-\newcommand*\LP@CS@cvoffset{-39pt}%
-\newcommand*\LP@CS@title{}%
-\newcommand*\LP@CS@titleindent{0cm}%
-\newcommand*\LP@CS@titlewidth{5.1cm}%
-%
-\newcounter{LP@CS@rows}%
-\newcounter{LP@CS@columns}%
-%
-\setcounter{LP@CS@rows}{\LP@CS@rows}%
-\setcounter{LP@CS@columns}{\LP@CS@columns}%
-\stepcounter{LP@CS@rows}%
-\stepcounter{LP@CS@columns}%
-%
-\define@key{chaossudoku.sty}{rows}[5]%
-{%
- \renewcommand*\LP@CS@rows{#1}%
-}%
-%
-\define@key{chaossudoku.sty}{columns}[5]%
-{%
- \renewcommand*\LP@CS@columns{#1}%
-}%
-%
-\define@key{chaossudoku.sty}{scale}[1]%
-{%
- \renewcommand*\LP@CS@scale{#1}%
-}%
-%
-\define@key{chaossudoku.sty}{counterstyle}[none]%
-{%
- \renewcommand*\LP@counterstyle{#1}%
-}%
-%
-\define@key{chaossudoku.sty}{bgcolor}[]%
-{%
- \renewcommand*\LP@CS@bgcolor{#1}%
-}%
-%
-\define@choicekey*{chaossudoku.sty}{fontsize}[\LP@CS@fontsize\nr]{tiny,scriptsize,footnotesize,small,normalsize,large,Large,LARGE,huge,Huge}[Large]%
-{%
- \ifcase\nr\relax%
- \renewcommand*\LP@CS@fontsize{\tiny}%
- \or%
- \renewcommand*\LP@CS@fontsize{\scriptsize}%
- \or%
- \renewcommand*\LP@CS@fontsize{\footnotesize}%
- \or%
- \renewcommand*\LP@CS@fontsize{\small}%
- \or%
- \renewcommand*\LP@CS@fontsize{\normalsize}%
- \or%
- \renewcommand*\LP@CS@fontsize{\large}%
- \or%
- \renewcommand*\LP@CS@fontsize{\Large}%
- \or%
- \renewcommand*\LP@CS@fontsize{\LARGE}%
- \or%
- \renewcommand*\LP@CS@fontsize{\huge}%
- \or%
- \renewcommand*\LP@CS@fontsize{\Huge}%
- \fi%
-}%
-%
-\define@key{chaossudoku.sty}{width}[5.1cm]%
-{%
- \renewcommand*\LP@CS@width{#1}%
-}%
-%
-\define@key{chaossudoku.sty}{title}[]%
-{%
- \renewcommand*\LP@CS@title{#1}%
-}%
-%
-\define@key{chaossudoku.sty}{cvoffset}[-22pt]%
-{%
- \renewcommand*\LP@CS@cvoffset{#1}%
-}%
-%
-\define@key{chaossudoku.sty}{titleindent}[0cm]%
-{%
- \renewcommand*\LP@CS@titleindent{#1}%
-}%
-%
-\define@key{chaossudoku.sty}{titlewidth}[5.1cm]%
-{%
- \renewcommand*\LP@CS@titlewidth{#1}%
-}%
-%
-\define@key{chaossudoku}{rows}%
-{%
- \renewcommand*\LP@CS@rows{#1}%
-}%
-%
-\define@key{chaossudoku}{columns}%
-{%
- \renewcommand*\LP@CS@columns{#1}%
-}%
-%
-\define@key{chaossudoku}{scale}%
-{%
- \renewcommand*\LP@CS@scale{#1}%
-}%
-%
-\define@key{chaossudoku}{bgcolor}%
-{%
- \renewcommand*\LP@CS@bgcolor{#1}%
-}%
-%
-\define@key{chaossudoku}{counterstyle}%
-{%
- \renewcommand*\LP@counterstyle{#1}%
-}%
-%
-\define@choicekey*{chaossudoku}{fontsize}[\LP@CS@fontsize\nr]{tiny,scriptsize,footnotesize,small,normalsize,large,Large,LARGE,huge,Huge}[Large]%
-{%
- \ifcase\nr\relax%
- \renewcommand*\LP@CS@fontsize{\tiny}%
- \or%
- \renewcommand*\LP@CS@fontsize{\scriptsize}%
- \or%
- \renewcommand*\LP@CS@fontsize{\footnotesize}%
- \or%
- \renewcommand*\LP@CS@fontsize{\small}%
- \or%
- \renewcommand*\LP@CS@fontsize{\normalsize}%
- \or%
- \renewcommand*\LP@CS@fontsize{\large}%
- \or%
- \renewcommand*\LP@CS@fontsize{\Large}%
- \or%
- \renewcommand*\LP@CS@fontsize{\LARGE}%
- \or%
- \renewcommand*\LP@CS@fontsize{\huge}%
- \or%
- \renewcommand*\LP@CS@fontsize{\Huge}%
- \fi%
-}%
-%
-\define@key{chaossudoku}{width}%
-{%
- \renewcommand*\LP@CS@width{#1}%
-}%
-%
-\define@key{chaossudoku}{title}%
-{%
- \renewcommand*\LP@CS@title{#1}%
-}%
-%
-\define@key{chaossudoku}{cvoffset}%
-{%
- \renewcommand*\LP@CS@cvoffset{#1}%
-}%
-%
-\define@key{chaossudoku}{titleindent}%
-{%
- \renewcommand*\LP@CS@titleindent{#1}%
-}%
-%
-\define@key{chaossudoku}{titlewidth}%
-{%
- \renewcommand*\LP@CS@titlewidth{#1}%
-}%
+\newcommand*\LP@CS@init@prefix{LP@CS}%
+\newcommand*\LP@CS@init@package{chaossudoku}%
+%
+\LP@define@key{\LP@CS@init@prefix}{\LP@CS@init@package}{rows}{5}%
+\LP@define@key{\LP@CS@init@prefix}{\LP@CS@init@package}{columns}{5}%
+\LP@define@key{\LP@CS@init@prefix}{\LP@CS@init@package}{scale}{1}%
+\LP@define@key{\LP@CS@init@prefix}{\LP@CS@init@package}{counterstyle}{none}%
+\LP@define@key{\LP@CS@init@prefix}{\LP@CS@init@package}{bgcolor}{}%
+\LP@define@key{\LP@CS@init@prefix}{\LP@CS@init@package}{width}{5.1cm}%
+\LP@define@key{\LP@CS@init@prefix}{\LP@CS@init@package}{cvoffset}{-23pt}%
+\LP@define@key{\LP@CS@init@prefix}{\LP@CS@init@package}{title}{}%
+\LP@define@key{\LP@CS@init@prefix}{\LP@CS@init@package}{titleindent}{0cm}%
+\LP@define@key{\LP@CS@init@prefix}{\LP@CS@init@package}{titlewidth}{5.1cm}%
+\LP@define@choicekey@fontsize{\LP@CS@init@prefix}{\LP@CS@init@package}{Large}%
%
\ExecuteOptionsX{rows,columns,width,fontsize,scale,bgcolor,cvoffset,counterstyle,title,titleindent,titlewidth}%
%
\ProcessOptionsX\relax%
%
+\LP@init@counter{\LP@CS@init@prefix}%
+%
\let\chaossudokucell\setcell%
%
\newcommand*\chaossudokusetup[1]%
@@ -224,7 +71,7 @@
}%
{%
\end{tikzpicture}%
- \LP@drawcounter{\LP@counterstyle}%
+ \LP@drawcounter{\LP@CS@counterstyle}%
\stepcounter{LP@puzzlecounter}%
\end{minipage}%
}%