diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/nimsticks')
-rw-r--r-- | Master/texmf-dist/tex/latex/nimsticks/nimsticks.sty | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/nimsticks/nimsticks.sty b/Master/texmf-dist/tex/latex/nimsticks/nimsticks.sty index c00c10004ae..c21b2758462 100644 --- a/Master/texmf-dist/tex/latex/nimsticks/nimsticks.sty +++ b/Master/texmf-dist/tex/latex/nimsticks/nimsticks.sty @@ -26,10 +26,10 @@ %% SOFTWARE. %% -\ProvidesPackage{nimsticks}[2020/07/19 nimsticks 1.1] +\ProvidesPackage{nimsticks}[2022/08/09 nimsticks 1.2] \RequirePackage[first=-100,last=100,seed=0]{lcg} \RequirePackage{tikz} -\RequirePackage{ifthen} +\RequirePackage{etoolbox} \@ifundefined{drawnimstick}{} {\PackageWarning{nimsticks}{Command `drawnimstick' already defined}} \@ifundefined{nimgame}{} @@ -60,15 +60,15 @@ \end{tikzpicture}% } \newcommand{\nimgame}[2][block]{% - \ifthenelse{\equal{#1}{inline}}{}{\begin{center}}% + \ifstrequal{#1}{inline}{}{\bgroup\centering}% \def\listofgames{#2}% \foreach \heap in \listofgames {% \foreach \heapindex in {1, ..., \heap} {% \drawnimstick\hspace{0.5mm}% }% \hspace{10mm}% - }% - \ifthenelse{\equal{#1}{inline}}{}{\end{center}}% + }\hspace{-10mm}% + \ifstrequal{#1}{inline}{}{\par\egroup}% } \endinput %% |