summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/computational-complexity/ccalgo.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/computational-complexity/ccalgo.sty')
-rw-r--r--Master/texmf-dist/tex/latex/computational-complexity/ccalgo.sty6
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