3
我有以下newenvironment
命令:胶乳newenvironment标签
\newcounter{algoctr}[chapter] \setcounter{algoctr}{0}
\newenvironment{algo}[1] {
\refstepcounter{algoctr}\vspace{0.2cm}\noindent{\bf Algorithm
\arabic{chapter}.\arabic{algoctr}: #1}}{\par}
我用它正是如此
\begin{algo}{blabbing a blah}
blah
blah
\label{eq:blabbing}
\end{algo}
然而,每次我参考标签(\ REF {当量:泄密}),我得到一个“1”,而不是“1.1”。
有人能让我知道我在做什么错吗?
感谢