From 4e8c785c29a3d68045a3187b9e63158a778725ed Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 9 Aug 2022 20:01:04 +0000 Subject: nimsticks (9aug22) git-svn-id: svn://tug.org/texlive/trunk@64084 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/nimsticks/nimsticks.sty | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/tex/latex/nimsticks') 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 %% -- cgit v1.2.3