I have the following newenvironment
command:
\newcounter{algoctr}[chapter] \setcounter{algoctr}{0}
\newenvironment{algo}[1] {
\refstepcounter{algoctr}\vspace{0.2cm}\noindent{\bf Algorithm
\arabic{chapter}.\arabic{algoctr}: #1}}{\par}
and I use it thusly
\begin{algo}{blabbing a blah}
blah
blah
\label{eq:blabbing}
\end{algo}
However, every time I reference the label (\ref{eq:blabbing}), I get a "1", instead of a "1.1".
Could someone kindly let me know what I'm doing wrong?
Thanks