diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
7 files changed, 284 insertions, 282 deletions
diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/battleship.sty b/Master/texmf-dist/tex/latex/logicpuzzle/battleship.sty index 3dfde6d9a5a..7e5739cac8b 100644 --- a/Master/texmf-dist/tex/latex/logicpuzzle/battleship.sty +++ b/Master/texmf-dist/tex/latex/logicpuzzle/battleship.sty @@ -23,7 +23,7 @@ % http://en.wikipedia.org/wiki/Battleship_%28puzzle%29 % http://de.wikipedia.org/wiki/Bimaru % -\ProvidesPackage{battleship}[2013/03/25 battleship.sty v1.4 - Josef Kleber (C) 2013]% +\ProvidesPackage{battleship}[2013/04/10 battleship.sty v1.4a - Josef Kleber (C) 2013]% % \RequirePackage{logicpuzzle}% % @@ -141,15 +141,15 @@ \ifnum\value{LP@counti}=1% \placesegment{#2}{#3}{\Ship}% \else% - \setcounter{LP@whiledo}{\value{LP@counti}}% - \addtocounter{LP@whiledo}{-2}% length of middle ship + \setcounter{LP@whiledo@i}{\value{LP@counti}}% + \addtocounter{LP@whiledo@i}{-2}% length of middle ship \ifthenelse{\equal{#1}{V}}% {% \placesegment{#2}{#3}{\ShipB}% \setcounter{LP@countii}{#3}% - \whiledo{\value{LP@whiledo}>0}% + \whiledo{\value{LP@whiledo@i}>0}% {% - \addtocounter{LP@whiledo}{-1}% + \addtocounter{LP@whiledo@i}{-1}% \stepcounter{LP@countii}% \placesegment{#2}{\theLP@countii}{\ShipC}% }% @@ -161,9 +161,9 @@ {% \placesegment{#2}{#3}{\ShipL}% \setcounter{LP@counti}{#2}% - \whiledo{\value{LP@whiledo}>0}% + \whiledo{\value{LP@whiledo@i}>0}% {% - \addtocounter{LP@whiledo}{-1}% + \addtocounter{LP@whiledo@i}{-1}% \stepcounter{LP@counti}% \placesegment{\theLP@counti}{#3}{\ShipC}% }% diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/createlpsudoku b/Master/texmf-dist/tex/latex/logicpuzzle/createlpsudoku deleted file mode 100644 index 7738198e33a..00000000000 --- a/Master/texmf-dist/tex/latex/logicpuzzle/createlpsudoku +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/bash -# -# createlpsudoku [options] [-o output] -i input -# -# transforms Sudokus in 81 format (-e) or Simple Sudoku format (-s) -# into lpsudoku environments for lpsudoku.sty -# -# License: LPPL -# -FORMAT="81" -VERSION="v1.1" -LINEENDINGS="UNIX" -IFILE="" -OFILE="" -# -typeset -i SLBEGIN=1 -typeset -i SLEND=9 -typeset -i COUNT=9 -# -while getopts "eshwvi:o:" FLAG -do - case "$FLAG" in - e) FORMAT="81";; - s) FORMAT="ss";; - w) LINEENDINGS="WINDOWS";; - i) IFILE="$OPTARG";; - o) OFILE="$OPTARG";; - h) echo "`basename $0` [options] [-o output] -i input"; exit 0;; - v) echo "`basename $0` $VERSION (C) 2013 Josef Kleber"; exit 0;; - esac -done -# -if [ -z "$IFILE" ] -then - echo "no input file" - echo "Usage: `basename $0` [options] [-o output] -i input" - exit 1 -fi -# -if [ ! -e "$IFILE" ] -then - echo "ERROR: input file $IFILE does not exist" - exit 1 -fi -# -if [ -n "$OFILE" ] -then - exec 1> $OFILE -fi -# -if [ "$FORMAT" = "ss" ] -then - echo "\begin{lpsudoku}" - for SDLINE in `cat $IFILE | sed -e '1d' -e'5d' -e'9d' -e'13,200d' | sed -e 's/|//g' | sed -e's/^[[:space:]]//g'` - do - ROWARG=`echo $SDLINE | sed -e's/\./{},/g' -e's/\([[:digit:]]\)/\1,/g' | sed -e's/,$//'` - echo " \setrow{$COUNT}{$ROWARG}" - ((COUNT--)) - done - echo "\end{lpsudoku}" - echo -fi -# -if [ "$FORMAT" = "81" ] -then - for SUDOKU in `cat $IFILE | sed -e's/#.*//'` - do - echo "\begin{lpsudoku}" - while [ $COUNT -gt 0 ] - do - SDLINE=`echo $SUDOKU | cut -c${SLBEGIN}-${SLEND}` - ROWARG=`echo $SDLINE | sed -e's/\./{},/g' -e's/\([[:digit:]]\)/\1,/g' | sed -e's/,$//'` - echo " \setrow{$COUNT}{$ROWARG}" - ((COUNT--)) - ((SLBEGIN+=9)) - ((SLEND+=9)) - done - SLBEGIN=1 - SLEND=9 - COUNT=9 - echo "\end{lpsudoku}" - echo - done -fi -# -if [ -n "$OFILE" -a "$LINEENDINGS" = "WINDOWS" ] -then - unix2dos -q $OFILE -fi -# -exit 0
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/kendoku.sty b/Master/texmf-dist/tex/latex/logicpuzzle/kendoku.sty new file mode 100644 index 00000000000..b537ef05292 --- /dev/null +++ b/Master/texmf-dist/tex/latex/logicpuzzle/kendoku.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{kendoku}[2013/04/12 kendoku.sty v1.0 - Josef Kleber (C) 2013]% +% +\RequirePackage{logicpuzzle}% +% +\newcommand*\LP@KD@init@prefix{LP@KD}% +\newcommand*\LP@KD@init@package{kendoku}% +% +\LP@define@key{\LP@KD@init@prefix}{\LP@KD@init@package}{rows}{5}% +\LP@define@key{\LP@KD@init@prefix}{\LP@KD@init@package}{columns}{5}% +\LP@define@key{\LP@KD@init@prefix}{\LP@KD@init@package}{scale}{1}% +\LP@define@key{\LP@KD@init@prefix}{\LP@KD@init@package}{counterstyle}{none}% +\LP@define@key{\LP@KD@init@prefix}{\LP@KD@init@package}{bgcolor}{}% +\LP@define@key{\LP@KD@init@prefix}{\LP@KD@init@package}{width}{5.1cm}% +\LP@define@key{\LP@KD@init@prefix}{\LP@KD@init@package}{cvoffset}{-23pt}% +\LP@define@key{\LP@KD@init@prefix}{\LP@KD@init@package}{title}{}% +\LP@define@key{\LP@KD@init@prefix}{\LP@KD@init@package}{titleindent}{0cm}% +\LP@define@key{\LP@KD@init@prefix}{\LP@KD@init@package}{titlewidth}{5.1cm}% +\LP@define@choicekey@fontsize{\LP@KD@init@prefix}{\LP@KD@init@package}{Large}% +% +\ExecuteOptionsX{rows,columns,width,fontsize,scale,bgcolor,cvoffset,counterstyle,title,titleindent,titlewidth}% +% +\ProcessOptionsX\relax% +% +\LP@init@counter{\LP@KD@init@prefix}% +% +\let\kendokucell\setcell% +% +\newcommand*\kendokusetup[1]% +{% + \setkeys{kendoku.sty}{#1}% +}% +% +\newenvironment{kendoku}[1][]% +{% + \setkeys{kendoku}{#1}% + \LP@set@package{kendoku}% + \LP@set@env@prefix{LP@KD}% + \setcounter{LP@KD@rows}{\LP@KD@rows}% + \setcounter{LP@KD@columns}{\LP@KD@columns}% + \stepcounter{LP@KD@rows}% + \stepcounter{LP@KD@columns}% + \begin{minipage}[t]{\LP@KD@width}% + \ifthenelse{\equal{\LP@KD@title}{}}% + {\par\enspace\par}% empty + {\enspace\par\noindent\hspace{\LP@KD@titleindent}\parbox{\LP@KD@titlewidth}{\strut\LP@titleformat\LP@KD@title}\vspace{3mm}\par}% + \begin{tikzpicture}[scale=\LP@KD@scale]% + \LP@drawbackground{1}{1}{\LP@KD@columns}{\LP@KD@rows}{\LP@KD@bgcolor}% + \LP@drawgrid{1}{1}{\LP@KD@columns}{\LP@KD@rows}{1cm}% +}% +{% + \end{tikzpicture}% + \LP@drawcounter{\LP@KD@counterstyle}% + \stepcounter{LP@puzzlecounter}% + \end{minipage}% +}% +% +\endinput%
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/killersudoku.sty b/Master/texmf-dist/tex/latex/logicpuzzle/killersudoku.sty new file mode 100644 index 00000000000..5283184faa4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/logicpuzzle/killersudoku.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{killersudoku}[2013/04/12 killersudoku.sty v1.0 - Josef Kleber (C) 2013]% +% +\RequirePackage{logicpuzzle}% +% +\newcommand*\LP@KSDK@init@prefix{LP@KSDK}% +\newcommand*\LP@KSDK@init@package{killersudoku}% +% +\LP@define@key{\LP@KSDK@init@prefix}{\LP@KSDK@init@package}{rows}{5}% +\LP@define@key{\LP@KSDK@init@prefix}{\LP@KSDK@init@package}{columns}{5}% +\LP@define@key{\LP@KSDK@init@prefix}{\LP@KSDK@init@package}{scale}{1}% +\LP@define@key{\LP@KSDK@init@prefix}{\LP@KSDK@init@package}{counterstyle}{none}% +\LP@define@key{\LP@KSDK@init@prefix}{\LP@KSDK@init@package}{bgcolor}{}% +\LP@define@key{\LP@KSDK@init@prefix}{\LP@KSDK@init@package}{width}{5.1cm}% +\LP@define@key{\LP@KSDK@init@prefix}{\LP@KSDK@init@package}{cvoffset}{-23pt}% +\LP@define@key{\LP@KSDK@init@prefix}{\LP@KSDK@init@package}{title}{}% +\LP@define@key{\LP@KSDK@init@prefix}{\LP@KSDK@init@package}{titleindent}{0cm}% +\LP@define@key{\LP@KSDK@init@prefix}{\LP@KSDK@init@package}{titlewidth}{5.1cm}% +\LP@define@choicekey@fontsize{\LP@KSDK@init@prefix}{\LP@KSDK@init@package}{Large}% +% +\ExecuteOptionsX{rows,columns,width,fontsize,scale,bgcolor,cvoffset,counterstyle,title,titleindent,titlewidth}% +% +\ProcessOptionsX\relax% +% +\LP@init@counter{\LP@KSDK@init@prefix}% +% +\let\killersudokucell\setcell% +% +\newcommand*\killersudokusetup[1]% +{% + \setkeys{killersudoku.sty}{#1}% +}% +% +\newenvironment{killersudoku}[1][]% +{% + \setkeys{killersudoku}{#1}% + \LP@set@package{killersudoku}% + \LP@set@env@prefix{LP@KSDK}% + \setcounter{LP@KSDK@rows}{\LP@KSDK@rows}% + \setcounter{LP@KSDK@columns}{\LP@KSDK@columns}% + \stepcounter{LP@KSDK@rows}% + \stepcounter{LP@KSDK@columns}% + \begin{minipage}[t]{\LP@KSDK@width}% + \ifthenelse{\equal{\LP@KSDK@title}{}}% + {\par\enspace\par}% empty + {\enspace\par\noindent\hspace{\LP@KSDK@titleindent}\parbox{\LP@KSDK@titlewidth}{\strut\LP@titleformat\LP@KSDK@title}\vspace{3mm}\par}% + \begin{tikzpicture}[scale=\LP@KSDK@scale]% + \LP@drawbackground{1}{1}{\LP@KSDK@columns}{\LP@KSDK@rows}{\LP@KSDK@bgcolor}% + \LP@drawgrid{1}{1}{\LP@KSDK@columns}{\LP@KSDK@rows}{1cm}% +}% +{% + \end{tikzpicture}% + \LP@drawcounter{\LP@KSDK@counterstyle}% + \stepcounter{LP@puzzlecounter}% + \end{minipage}% +}% +% +\endinput%
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/logicpuzzle.sty b/Master/texmf-dist/tex/latex/logicpuzzle/logicpuzzle.sty index 74d6b42cbd5..3dcb1fa9c1e 100644 --- a/Master/texmf-dist/tex/latex/logicpuzzle/logicpuzzle.sty +++ b/Master/texmf-dist/tex/latex/logicpuzzle/logicpuzzle.sty @@ -19,7 +19,7 @@ %% %% This work consists of all files listed in manifest.txt. %% -\ProvidesPackage{logicpuzzle}[2013/04/05 logicpuzzle.sty v1.3 - Josef Kleber (C) 2013]% +\ProvidesPackage{logicpuzzle}[2013/04/12 logicpuzzle.sty v1.8 - Josef Kleber (C) 2013]% % \RequirePackage{xkeyval}% \RequirePackage{ifthen}% @@ -28,13 +28,15 @@ \RequirePackage{marginnote}% \RequirePackage{tikz}% \usetikzlibrary{decorations.pathmorphing}% +\pgfdeclarelayer{LPdump}% \pgfdeclarelayer{LPbgcolor}% \pgfdeclarelayer{LPbackgroundtwo}% \pgfdeclarelayer{LPbackground}% \pgfdeclarelayer{LPforeground}% \pgfdeclarelayer{LPforegroundtwo}% -\pgfsetlayers{LPbgcolor,LPbackgroundtwo,LPbackground,main,LPforeground,LPforegroundtwo}% +\pgfsetlayers{LPdump,LPbgcolor,LPbackgroundtwo,LPbackground,main,LPforeground,LPforegroundtwo}% % +\newcounter{LP@counter@unique}% \newcounter{LP@counti}% \newcounter{LP@countii}% \newcounter{LP@whiledo@i}% @@ -54,6 +56,7 @@ \gdef\LP@columns{}% \gdef\LP@scale{1}% \gdef\LP@color{black}% +\gdef\LP@bgcolor{}% \gdef\LP@fontsize\Large% \gdef\LP@cvoffset{0pt}% % @@ -246,6 +249,20 @@ \fi% }% % +\newcommand*\setrule[3]% +{% + \LP@set@LP@scale{\LP@env@prefix}% + \LP@set@LP@bgcolor{\LP@env@prefix}% + \ifthenelse{\equal{\LP@bgcolor}{}}% + {\gdef\LP@sr@bgcolor{white}}% + {\gdef\LP@sr@bgcolor{\LP@bgcolor}}% + \stepcounter{LP@counter@unique}% + \begin{pgfonlayer}{LPdump}% + \node [shape=rectangle,inner sep=0pt] (A_\theLP@counter@unique) at (#1\LP@Pfive,#2\LP@Pfive) {\tikz\draw[scale=\LP@scale,color=\LP@sr@bgcolor] (0.08,0.1) rectangle (0.92,0.9);};% + \end{pgfonlayer}{LPdump} + \node [shape=rectangle,inner sep=0pt,anchor=north west,scale=\LP@scale,font=\tiny] at (A_\theLP@counter@unique.north west) {$#3$};% +}% +% % #1 column % #2 row % #3 content @@ -422,6 +439,46 @@ \draw[ultra thick,fill=#1] #2 ;% }% % +\newcommand*\colorarea[2]% +{% + \fill[color=#1] #2 ;% +}% +% +% #1 column +% #2 row +% #3 csv list of directions +\newcommand*\tikzpath[3]% +{% + (#1,#2)% + \foreach \LP@direction in {#3}% + {% + \ifnum\LP@direction=1% + --++(-1,-1)% + \fi% + \ifnum\LP@direction=2% + --++(0,-1)% + \fi% + \ifnum\LP@direction=3% + --++(1,-1)% + \fi% + \ifnum\LP@direction=4% + --++(-1,0)% + \fi% + \ifnum\LP@direction=6% + --++(1,0)% + \fi% + \ifnum\LP@direction=7% + --++(-1,1)% + \fi% + \ifnum\LP@direction=8% + --++(0,1)% + \fi% + \ifnum\LP@direction=9% + --++(1,1)% + \fi% + };% +}% +% \newcommand*\filldiagonals[1][yellow!20]% {% \LP@set@LP@columns{\LP@env@prefix}% @@ -573,6 +630,11 @@ \expandafter\xdef\expandafter\LP@cvoffset{\csname #1@cvoffset\endcsname}% }% % +\newcommand*\LP@set@LP@bgcolor[1]% +{% + \expandafter\xdef\expandafter\LP@bgcolor{\csname #1@bgcolor\endcsname}% +}% +% \newcommand*\LP@set@LP@fontsize[1]% {% % can't expand \Large @@ -589,4 +651,59 @@ \gdef\LP@package{#1}% }% % +% generic logicpuzzle environment and options +% +\newcommand*\LP@LP@init@prefix{LP@LP}% +\newcommand*\LP@LP@init@package{logicpuzzle}% +% +\LP@define@key{\LP@LP@init@prefix}{\LP@LP@init@package}{rows}{5}% +\LP@define@key{\LP@LP@init@prefix}{\LP@LP@init@package}{columns}{5}% +\LP@define@key{\LP@LP@init@prefix}{\LP@LP@init@package}{scale}{1}% +\LP@define@key{\LP@LP@init@prefix}{\LP@LP@init@package}{counterstyle}{none}% +\LP@define@key{\LP@LP@init@prefix}{\LP@LP@init@package}{color}{}% +\LP@define@key{\LP@LP@init@prefix}{\LP@LP@init@package}{bgcolor}{}% +\LP@define@key{\LP@LP@init@prefix}{\LP@LP@init@package}{width}{5.1cm}% +\LP@define@key{\LP@LP@init@prefix}{\LP@LP@init@package}{cvoffset}{-23pt}% +\LP@define@key{\LP@LP@init@prefix}{\LP@LP@init@package}{title}{}% +\LP@define@key{\LP@LP@init@prefix}{\LP@LP@init@package}{titleindent}{0cm}% +\LP@define@key{\LP@LP@init@prefix}{\LP@LP@init@package}{titlewidth}{5.1cm}% +\LP@define@choicekey@fontsize{\LP@LP@init@prefix}{\LP@LP@init@package}{Large}% +% +\ExecuteOptionsX{rows,columns,width,fontsize,scale,bgcolor,cvoffset,counterstyle,title,titleindent,titlewidth}% +% +\ProcessOptionsX\relax% +% +\LP@init@counter{\LP@LP@init@prefix}% +% +\let\logicpuzzlecell\setcell% +% +\newcommand*\logicpuzzlesetup[1]% +{% + \setkeys{logicpuzzle.sty}{#1}% +}% +% +\newenvironment{logicpuzzle}[1][]% +{% + \setkeys{logicpuzzle}{#1}% + \LP@set@package{logicpuzzle}% + \LP@set@env@prefix{LP@LP}% + \setcounter{LP@LP@rows}{\LP@LP@rows}% + \setcounter{LP@LP@columns}{\LP@LP@columns}% + \stepcounter{LP@LP@rows}% + \stepcounter{LP@LP@columns}% + \begin{minipage}[t]{\LP@LP@width}% + \ifthenelse{\equal{\LP@LP@title}{}}% + {\par\enspace\par}% empty + {\enspace\par\noindent\hspace{\LP@LP@titleindent}\parbox{\LP@LP@titlewidth}{\strut\LP@titleformat\LP@LP@title}\vspace{3mm}\par}% + \begin{tikzpicture}[scale=\LP@LP@scale]% + \LP@drawbackground{1}{1}{\LP@LP@columns}{\LP@LP@rows}{\LP@LP@bgcolor}% + \LP@drawgrid{1}{1}{\LP@LP@columns}{\LP@LP@rows}{1cm}% +}% +{% + \end{tikzpicture}% + \LP@drawcounter{\LP@LP@counterstyle}% + \stepcounter{LP@puzzlecounter}% + \end{minipage}% +}% +% \endinput%
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/lpsmag b/Master/texmf-dist/tex/latex/logicpuzzle/lpsmag deleted file mode 100644 index 9e7725b1b47..00000000000 --- a/Master/texmf-dist/tex/latex/logicpuzzle/lpsmag +++ /dev/null @@ -1,175 +0,0 @@ -#!/bin/bash -# -# lpsmag CONFIGFILE -# -# creates a LaTeX file for the production -# a Sudoku magazine with lpsudoku.sty -# -# License: LPPL -# -CONFIGFILE="$1" -TEXFILE="lpsmag.tex" -TEXFILEBAK="${TEXFILE}.bak" -typeset -i COUNT=0 -SUDOKUPP="6" -SUDOKUPPD="12" -# -if [ -z "$CONFIGFILE" ] -then - echo "no config file" - echo "Usage: `basename $0` configfile" - exit 1 -fi -# -exec 1> $TEXFILE -# -startpuzzles() -{ - echo "\lpsudokusetup{scale=0.75,width=6.8cm,fontsize=Large,cvoffset=-24pt}" - echo "\setpuzzlecounter{1}" -} -# -startsolutions() -{ - echo "\lpsudokusetup{scale=0.5,width=4.6cm,fontsize=normalsize}" - echo "\setpuzzlecounter{1}" -} -# -page() -{ - local name="$1" - local difficulty="$2" - qqwing --generate $SUDOKUPP --one-line --difficulty $difficulty >${name}.81 - cat ${name}.81 | qqwing --solve --one-line >${name}_sol.81 -} -# -typesetpage() -{ - local name="$1" - local last="$2" - local puzzlenummer="uneven" - COUNT=0 - echo "%startpage" - for puzzle in `cat ${name}.81` - do - ((COUNT++)) - echo $puzzle >puzzle.81 - createlpsudoku -i puzzle.81 - if [ "$puzzlenummer" = "uneven" ] - then - echo "\hfill" - # toggle even/uneven - puzzlenummer="even" - else - # no \vfill after last lpsudoku - # environment of the page - if [ $COUNT -lt $SUDOKUPP ] - then - echo "\vfill" - else - if [ "$last" != "last" ] - then - echo "\clearpage" - fi - fi - puzzlenummer="uneven" - fi - done -} -# -tspfor() -{ - local name="$1" - local last="$2" - local puzzlepos="one" - for puzzle in `cat ${name}.81` - do - ((COUNT++)) - if [ $COUNT -eq 1 -o $COUNT -eq 7 ] - then - echo "%startpage" - fi - echo $puzzle >puzzle.81 - createlpsudoku -i puzzle.81 - if [ "$puzzlepos" = "one" ] - then - echo "\hfill" - puzzlepos="two" - elif [ "$puzzlepos" = "two" ] - then - echo "\hfill" - puzzlepos="three" - else - if [ $COUNT -lt $SUDOKUPPD ] - then - echo "\vfill" - puzzlepos="one" - else - if [ "$last" = "last" ] - then - puzzlepos="one" - else - echo "\clearpage" - puzzlepos="one" - fi - fi - fi - done -} -# -typesetsolpage() -{ - local name1="$1_sol" - local name2="$2_sol" - local last="$3" - COUNT=0 - tspfor $name1 $last - tspfor $name2 $last -} -# -addcounterstyle() -{ - grep -ne'startpage' $TEXFILE | cut -d':' -f1 >csl.tmp - for linenumber in `cat csl.tmp` - do - COUNT="$linenumber" - ((COUNT++)) - echo "$COUNT a [counterstyle=left]" >>sed.tmp - echo "$linenumber d" >>sed.tmp - done - sed -f sed.tmp $TEXFILE >$TEXFILEBAK - rm $TEXFILE - mv $TEXFILEBAK $TEXFILE -} -# -addpercent() -{ - sed -e's/$/%/' $TEXFILE >$TEXFILEBAK - rm $TEXFILE - mv $TEXFILEBAK $TEXFILE -} -# -deleteauxfiles() -{ - rm *.81 - rm *.tmp -} -# -cat >preamble.tmp <<EOF -\documentclass[a4paper]{article}% -\usepackage[bottom=3cm,top=3cm,left=2.7cm,right=2.7cm]{geometry} -\usepackage[width=5cm,scale=0.55,fontsize=normalsize]{lpsudoku}% -EOF -# -cat preamble.tmp -echo "\begin{document}" -# -. $CONFIGFILE -# -echo "\end{document}" -# -addcounterstyle -addpercent -deleteauxfiles -exit 0 -#
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/logicpuzzle/simple.smc b/Master/texmf-dist/tex/latex/logicpuzzle/simple.smc deleted file mode 100644 index 0ec2d162199..00000000000 --- a/Master/texmf-dist/tex/latex/logicpuzzle/simple.smc +++ /dev/null @@ -1,7 +0,0 @@ -page p1 easy -page p2 easy -startpuzzles -typesetpage p1 -typesetpage p2 -startsolutions -typesetsolpage p1 p2 last
\ No newline at end of file |