I have the following command newenvironment:
\newcounter{algoctr}[chapter] \setcounter{algoctr}{0}
\newenvironment{algo}[1] {
\refstepcounter{algoctr}\vspace{0.2cm}\noindent{\bf Algorithm
\arabic{chapter}.\arabic{algoctr}:
and i use it that way
\begin{algo}{blabbing a blah}
blah
blah
\label{eq:blabbing}
\end{algo}
However, every time I refer to the label (\ ref {eq: blabbing}), I get "1", not "1.1".
Can someone kindly tell me what I'm doing wrong?
thanks
source
share