summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/logicpuzzle/lpenv.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/logicpuzzle/lpenv.sty')
-rw-r--r--Master/texmf-dist/tex/latex/logicpuzzle/lpenv.sty208
1 files changed, 207 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/lpenv.sty b/Master/texmf-dist/tex/latex/logicpuzzle/lpenv.sty
index 24bc8cfa2bd..d485026b6a5 100644
--- a/Master/texmf-dist/tex/latex/logicpuzzle/lpenv.sty
+++ b/Master/texmf-dist/tex/latex/logicpuzzle/lpenv.sty
@@ -20,7 +20,7 @@
%% This work consists of all files listed in manifest.txt.
%%
%
-\ProvidesPackage{lpenv}[2013/05/10 lpenv.sty v2.1 - Josef Kleber (C) 2013]%
+\ProvidesPackage{lpenv}[2013/05/17 lpenv.sty v2.2 - Josef Kleber (C) 2013]%
%
% battleship environment and options
%
@@ -283,6 +283,67 @@
\end{minipage}%
}%
%
+% bridges environment and options
+%
+\newcommand*\LP@BG@init@prefix{LP@BG}%
+\newcommand*\LP@BG@init@package{bridges}%
+%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{rows}{5}%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{columns}{5}%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{scale}{1}%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{counterstyle}{none}%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{grid}{dashed}%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{bgcolor}{}%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{color}{green}%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{width}{6.1cm}%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{cvoffset}{-23pt}%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{title}{}%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{titleindent}{0cm}%
+\LP@define@key{\LP@BG@init@prefix}{\LP@BG@init@package}{titlewidth}{6.1cm}%
+\LP@define@choicekey@fontsize{\LP@BG@init@prefix}{\LP@BG@init@package}{Large}%
+%
+\let\bridgescell\setcell%
+%
+\newcommand*\bridgessetup[1]%
+{%
+ \setkeys{bridges.sty}{#1}%
+}%
+%
+\newenvironment{bridges}[1][]%
+{%
+ \setkeys{bridges}{#1}%
+ \LP@set@package{bridges}%
+ \LP@set@env@prefix{LP@BG}%
+ \setcounter{LP@rows}{\LP@BG@rows}%
+ \setcounter{LP@columns}{\LP@BG@columns}%
+ \stepcounter{LP@rows}%
+ \stepcounter{LP@columns}%
+ \begin{minipage}[t]{\LP@BG@width}%
+ \ifthenelse{\equal{\LP@BG@title}{}}%
+ {\par\enspace\par}% empty
+ {\enspace\par\noindent\hspace{\LP@BG@titleindent}\parbox{\LP@BG@titlewidth}{\strut\LP@titleformat\LP@BG@title}\vspace{3mm}\par}%
+ \begin{tikzpicture}[scale=\LP@BG@scale]%
+ \LP@drawbackground{1}{1}{\LP@BG@columns}{\LP@BG@rows}{\LP@BG@bgcolor}%
+ \ifthenelse{\equal{\LP@BG@grid}{none}}%
+ {}%
+ {%
+ \ifthenelse{\equal{\LP@BG@grid}{dashed}}%
+ {%
+ \setgridlinestyle{dashed}%
+ \LP@drawgrid{1}{1}{\LP@BG@columns}{\LP@BG@rows}{1cm}%
+ }%
+ {%
+ \LP@drawgrid{1}{1}{\LP@BG@columns}{\LP@BG@rows}{1cm}%
+ }%
+ }%
+}%
+{%
+ \end{tikzpicture}%
+ \LP@drawcounter{\LP@BG@counterstyle}%
+ \stepcounter{LP@puzzlecounter}%
+ \end{minipage}%
+}%
+%
% chaossudoku environment and options
%
\newcommand*\LP@CS@init@prefix{LP@CS}%
@@ -977,6 +1038,151 @@
\end{minipage}%
}%
%
+% starbattle environment and options
+%
+\newcommand*\LP@SB@init@prefix{LP@SB}%
+\newcommand*\LP@SB@init@package{starbattle}%
+%
+\LP@define@key{\LP@SB@init@prefix}{\LP@SB@init@package}{rows}{5}%
+\LP@define@key{\LP@SB@init@prefix}{\LP@SB@init@package}{columns}{5}%
+\LP@define@key{\LP@SB@init@prefix}{\LP@SB@init@package}{scale}{1}%
+\LP@define@key{\LP@SB@init@prefix}{\LP@SB@init@package}{counterstyle}{none}%
+\LP@define@key{\LP@SB@init@prefix}{\LP@SB@init@package}{bgcolor}{}%
+\LP@define@key{\LP@SB@init@prefix}{\LP@SB@init@package}{width}{5.1cm}%
+\LP@define@key{\LP@SB@init@prefix}{\LP@SB@init@package}{cvoffset}{-23pt}%
+\LP@define@key{\LP@SB@init@prefix}{\LP@SB@init@package}{title}{}%
+\LP@define@key{\LP@SB@init@prefix}{\LP@SB@init@package}{titleindent}{0cm}%
+\LP@define@key{\LP@SB@init@prefix}{\LP@SB@init@package}{titlewidth}{5.1cm}%
+\LP@define@choicekey@fontsize{\LP@SB@init@prefix}{\LP@SB@init@package}{Large}%
+%
+\let\starbattlecell\setcell%
+%
+\newcommand*\starbattlesetup[1]%
+{%
+ \setkeys{starbattle.sty}{#1}%
+}%
+%
+\newenvironment{starbattle}[1][]%
+{%
+ \setkeys{starbattle}{#1}%
+ \LP@set@package{starbattle}%
+ \LP@set@env@prefix{LP@SB}%
+ \setcounter{LP@rows}{\LP@SB@rows}%
+ \setcounter{LP@columns}{\LP@SB@columns}%
+ \stepcounter{LP@rows}%
+ \stepcounter{LP@columns}%
+ \begin{minipage}[t]{\LP@SB@width}%
+ \ifthenelse{\equal{\LP@SB@title}{}}%
+ {\par\enspace\par}% empty
+ {\enspace\par\noindent\hspace{\LP@SB@titleindent}\parbox{\LP@SB@titlewidth}{\strut\LP@titleformat\LP@SB@title}\vspace{3mm}\par}%
+ \begin{tikzpicture}[scale=\LP@SB@scale]%
+ \LP@drawbackground{1}{1}{\LP@SB@columns}{\LP@SB@rows}{\LP@SB@bgcolor}%
+ \LP@drawgrid{1}{1}{\LP@SB@columns}{\LP@SB@rows}{1cm}%
+}%
+{%
+ \end{tikzpicture}%
+ \LP@drawcounter{\LP@SB@counterstyle}%
+ \stepcounter{LP@puzzlecounter}%
+ \end{minipage}%
+}%
+%
+% starsandarrows environment and options
+%
+\newcommand*\LP@SAA@init@prefix{LP@SAA}%
+\newcommand*\LP@SAA@init@package{starsandarrows}%
+%
+\LP@define@key{\LP@SAA@init@prefix}{\LP@SAA@init@package}{rows}{5}%
+\LP@define@key{\LP@SAA@init@prefix}{\LP@SAA@init@package}{columns}{5}%
+\LP@define@key{\LP@SAA@init@prefix}{\LP@SAA@init@package}{scale}{1}%
+\LP@define@key{\LP@SAA@init@prefix}{\LP@SAA@init@package}{counterstyle}{none}%
+\LP@define@key{\LP@SAA@init@prefix}{\LP@SAA@init@package}{bgcolor}{}%
+\LP@define@key{\LP@SAA@init@prefix}{\LP@SAA@init@package}{width}{5.9cm}%
+\LP@define@key{\LP@SAA@init@prefix}{\LP@SAA@init@package}{cvoffset}{-23pt}%
+\LP@define@key{\LP@SAA@init@prefix}{\LP@SAA@init@package}{title}{}%
+\LP@define@key{\LP@SAA@init@prefix}{\LP@SAA@init@package}{titleindent}{0cm}%
+\LP@define@key{\LP@SAA@init@prefix}{\LP@SAA@init@package}{titlewidth}{5.9cm}%
+\LP@define@choicekey@fontsize{\LP@SAA@init@prefix}{\LP@SAA@init@package}{Large}%
+%
+\let\starsH\LP@toprow%
+\let\starsV\LP@leftcolumn%
+%
+\newcommand*\starsandarrowssetup[1]%
+{%
+ \setkeys{starsandarrows.sty}{#1}%
+}%
+%
+\newenvironment{starsandarrows}[1][]%
+{%
+ \setkeys{starsandarrows}{#1}%
+ \LP@set@package{starsandarrows}%
+ \LP@set@env@prefix{LP@SAA}%
+ \setcounter{LP@rows}{\LP@SAA@rows}%
+ \setcounter{LP@columns}{\LP@SAA@columns}%
+ \stepcounter{LP@rows}%
+ \stepcounter{LP@columns}%
+ \begin{minipage}[t]{\LP@SAA@width}%
+ \ifthenelse{\equal{\LP@SAA@title}{}}%
+ {\par\enspace\par}% empty
+ {\enspace\par\noindent\hspace{\LP@SAA@titleindent}\parbox{\LP@SAA@titlewidth}{\strut\LP@titleformat\LP@SAA@title}\vspace{3mm}\par}%
+ \begin{tikzpicture}[scale=\LP@SAA@scale]%
+ \LP@drawbackground{1}{1}{\LP@SAA@columns}{\LP@SAA@rows}{\LP@SAA@bgcolor}%
+ \LP@drawgrid{1}{1}{\LP@SAA@columns}{\LP@SAA@rows}{1cm}%
+}%
+{%
+ \end{tikzpicture}%
+ \LP@drawcounter{\LP@SAA@counterstyle}%
+ \stepcounter{LP@puzzlecounter}%
+ \end{minipage}%
+}%
+%
+% sunandmoon environment and options
+%
+\newcommand*\LP@SAM@init@prefix{LP@SAM}%
+\newcommand*\LP@SAM@init@package{sunandmoon}%
+%
+\LP@define@key{\LP@SAM@init@prefix}{\LP@SAM@init@package}{rows}{5}%
+\LP@define@key{\LP@SAM@init@prefix}{\LP@SAM@init@package}{columns}{5}%
+\LP@define@key{\LP@SAM@init@prefix}{\LP@SAM@init@package}{scale}{1}%
+\LP@define@key{\LP@SAM@init@prefix}{\LP@SAM@init@package}{counterstyle}{none}%
+\LP@define@key{\LP@SAM@init@prefix}{\LP@SAM@init@package}{bgcolor}{}%
+\LP@define@key{\LP@SAM@init@prefix}{\LP@SAM@init@package}{width}{5.1cm}%
+\LP@define@key{\LP@SAM@init@prefix}{\LP@SAM@init@package}{cvoffset}{-23pt}%
+\LP@define@key{\LP@SAM@init@prefix}{\LP@SAM@init@package}{title}{}%
+\LP@define@key{\LP@SAM@init@prefix}{\LP@SAM@init@package}{titleindent}{0cm}%
+\LP@define@key{\LP@SAM@init@prefix}{\LP@SAM@init@package}{titlewidth}{5.1cm}%
+\LP@define@choicekey@fontsize{\LP@SAM@init@prefix}{\LP@SAM@init@package}{Large}%
+%
+\let\sunandmooncell\setcell%
+%
+\newcommand*\sunandmoonsetup[1]%
+{%
+ \setkeys{sunandmoon.sty}{#1}%
+}%
+%
+\newenvironment{sunandmoon}[1][]%
+{%
+ \setkeys{sunandmoon}{#1}%
+ \LP@set@package{sunandmoon}%
+ \LP@set@env@prefix{LP@SAM}%
+ \setcounter{LP@rows}{\LP@SAM@rows}%
+ \setcounter{LP@columns}{\LP@SAM@columns}%
+ \stepcounter{LP@rows}%
+ \stepcounter{LP@columns}%
+ \begin{minipage}[t]{\LP@SAM@width}%
+ \ifthenelse{\equal{\LP@SAM@title}{}}%
+ {\par\enspace\par}% empty
+ {\enspace\par\noindent\hspace{\LP@SAM@titleindent}\parbox{\LP@SAM@titlewidth}{\strut\LP@titleformat\LP@SAM@title}\vspace{3mm}\par}%
+ \begin{tikzpicture}[scale=\LP@SAM@scale]%
+ \LP@drawbackground{1}{1}{\LP@SAM@columns}{\LP@SAM@rows}{\LP@SAM@bgcolor}%
+ \LP@drawgrid{1}{1}{\LP@SAM@columns}{\LP@SAM@rows}{1cm}%
+}%
+{%
+ \end{tikzpicture}%
+ \LP@drawcounter{\LP@SAM@counterstyle}%
+ \stepcounter{LP@puzzlecounter}%
+ \end{minipage}%
+}%
+%
% tentsandtrees environment and options
%
\newcommand*\LP@TAT@init@prefix{LP@TAT}%