diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-06-30 11:34:07 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2010-06-30 11:34:07 +0000 |
commit | ca6a098e2e1413be5291b8ada623a166843ef436 (patch) | |
tree | 329ea96cd3df486286421bff5c9c66fe6bc9dec0 /Master/texmf-dist/tex/latex/computational-complexity/ccalgo.sty | |
parent | 40aaa8f302d7f1607e42350428364f78251bbd75 (diff) |
computaional-complexity update 2010/06/29 v2.14
git-svn-id: svn://tug.org/texlive/trunk@19191 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/computational-complexity/ccalgo.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/computational-complexity/ccalgo.sty | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/computational-complexity/ccalgo.sty b/Master/texmf-dist/tex/latex/computational-complexity/ccalgo.sty index 4ce41fb050d..99e87eb073d 100644 --- a/Master/texmf-dist/tex/latex/computational-complexity/ccalgo.sty +++ b/Master/texmf-dist/tex/latex/computational-complexity/ccalgo.sty @@ -157,6 +157,7 @@ \newdimen\algo@labelsep \newdimen\steplabelwidth \newtoks\AtNextItem +\newtoks\AtNextNumberedItem \newif\if@noitemargcopy \let\orig@item\item \def\item{\@ifnextchar[{\@noitemargcopyfalse\orig@item}{\@noitemargcopytrue\orig@item}} @@ -218,6 +219,9 @@ \fi \global\@speciallabeltrue \the\AtNextItem \global\AtNextItem{}% + \ifnum\this@algolabeltype=\@ne + \the\AtNextNumberedItem \global\AtNextNumberedItem{}% + \fi \reinit@list@label } \newcommand{\algonumerate@labelexplicit}[1]{% For algorithm i/o @@ -362,7 +366,7 @@ \par \stepcounter{block@cnt}\edef\block@{\arabic{block@cnt}}% \refsetrange{bob\block@}{eob\block@}% - \AtNextItem{\algolabel{bob\block@}}% + \AtNextNumberedItem{\algolabel{bob\block@}}% }{% \algolabel{eob\block@}% \par |