From 7d3a07f4909393f5be61863357fbf4d78839cbd2 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 3 Nov 2011 22:42:17 +0000 Subject: moreenum 1.03 (3nov11) git-svn-id: svn://tug.org/texlive/trunk@24479 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/moreenum/moreenum.sty | 26 ++++++++++++----------- 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/moreenum/moreenum.sty b/Master/texmf-dist/tex/latex/moreenum/moreenum.sty index 00b93777c4d..4b486656fe5 100644 --- a/Master/texmf-dist/tex/latex/moreenum/moreenum.sty +++ b/Master/texmf-dist/tex/latex/moreenum/moreenum.sty @@ -18,7 +18,7 @@ % and README and the derived file testcase-moreenum.pdf -\ProvidesPackage{moreenum}[2011/07/15 v1.01] +\ProvidesPackage{moreenum}[2011/11/03 v1.03] \RequirePackage{amsmath} % For Greek letters @@ -44,21 +44,23 @@ % http://tex.stackexchange.com/questions/4058/greek-numbering/4063#4063 % And to Will Robertson's answer to the same question for pointing me to % the alphalph package +% Thanks to Kevin Klement for pointing out a spacing problem +% with the Greek commands that is now fixed. \newcommand*{\single@greek}[1]{% - \expandafter\@single@greek\csname c@#1\endcsname + \expandafter\@single@greek\csname c@#1\endcsname% } \newcommand*{\@single@greek}[1]{% $\ifcase#1\or\alpha\or\beta\or\gamma\or\delta\or\varepsilon \or\zeta\or\eta\or\theta\or\iota\or\kappa\or\lambda \or\mu\or\nu\or\xi\or o\or\pi\or\varrho\or\sigma \or\tau\or\upsilon\or\phi\or\chi\or\psi\or\omega - \else\@ctrerr\fi$ + \else\@ctrerr\fi$% } \newalphalph{\@greek}[alph]{\@single@greek}{24} \newcommand*{\greek}[1]{% - \expandafter\@greek\csname c@#1\endcsname + \expandafter\@greek\csname c@#1\endcsname% } \AddEnumerateCounter{\greek}{\@greek}{$\omega$} @@ -75,7 +77,7 @@ \or Z\or E\or\Theta\or I\or K\or\Lambda \or M\or N\or \Xi\or O\or\Pi\or P\or\Sigma \or T\or Y\or\Phi\or X\or\Psi\or\Omega - \else\@ctrerr\fi$ + \else\@ctrerr\fi$% } \newalphalph{\@Greek}[alph]{\@Single@Greek}{24} @@ -140,7 +142,7 @@ } %------------------------------ -% Binary +% Octal %------------------------------ \newcommand*{\enumoctal}[1]{% @@ -196,7 +198,7 @@ \newcommand{\Nthwords}[1]{\expandafter\@Nthwords\csname c@#1\endcsname} \newcommand*{\@Nthwords}[1]{% - \protect\Numberstringnum{\number#1}} + \protect\Ordinalstringnum{\number#1}} \AddEnumerateCounter{\Nthwords}{\@Nthwords}{Seventeenth} %%----------------------------- @@ -206,7 +208,7 @@ \newcommand*{\NTHWORDS}[1]{ \expandafter\@NTHWORDS\csname c@#1\endcsname} \newcommand*{\@NTHWORDS}[1]{ - \protect\NUMBERstringnum{\number#1}} + \protect\ORDINALstringnum{\number#1}} \AddEnumerateCounter{\NTHWORDS}{\@NTHWORDS}{FORTY-TWO} %%----------------------------- @@ -216,7 +218,7 @@ \newcommand*{\nthwords}[1]{ \expandafter\@nthwords\csname c@#1\endcsname} \newcommand*{\@nthwords}[1]{ - \protect\numberstringnum{\number#1}} + \protect\ordinalstringnum{\number#1}} \AddEnumerateCounter{\nthwords}{\@nthwords}{forty-two} @@ -231,7 +233,7 @@ \newcommand{\Nwords}[1]{\expandafter\@Nwords\csname c@#1\endcsname} \newcommand*{\@Nwords}[1]{% - \protect\Ordinalstringnum{\number#1}} + \protect\Numberstringnum{\number#1}} \AddEnumerateCounter{\Nwords}{\@Nwords}{Seventeen} @@ -242,7 +244,7 @@ \newcommand{\NWORDS}[1]{\expandafter\@NWORDS\csname c@#1\endcsname} \newcommand*{\@NWORDS}[1]{% - \protect\ORDINALstringnum{\number#1}} + \protect\NUMBERstringnum{\number#1}} \AddEnumerateCounter{\NWORDS}{\@NWORDS}{SEVENTEEN} @@ -252,7 +254,7 @@ \newcommand{\nwords}[1]{\expandafter\@nwords\csname c@#1\endcsname} \newcommand*{\@nwords}[1]{% - \protect\ordinalstringnum{\number#1}} + \protect\numberstringnum{\number#1}} \AddEnumerateCounter{\nwords}{\@nwords}{seventeen} -- cgit v1.2.3