diff options
author | Karl Berry <karl@freefriends.org> | 2022-08-09 20:01:04 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-08-09 20:01:04 +0000 |
commit | 4e8c785c29a3d68045a3187b9e63158a778725ed (patch) | |
tree | 89eb2e1f2f2c017adcca7dc2618b034b7cafd3f7 /Master/texmf-dist/tex/latex/nimsticks | |
parent | 12e605cadfeb785841dfc3bfc7bb10d279ad55d2 (diff) |
nimsticks (9aug22)
git-svn-id: svn://tug.org/texlive/trunk@64084 c570f23f-e606-0410-a88d-b1316a301751
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 %% |