I'm having problems with using counters inside figure environment. I have a counter deifned as:
Code: Select all
\newcounter{subfig}
\newcommand{\subfigcounterlabel}[1]{\textbf{\alph{#1}, }}
\newcommand{\newsubfig}{\refstepcounter{subfig}\subfigcounterlabel{subfig}}
However, if \newsubfig is used inside the figure environment, I get an error:
Missing \endcsname inserted.
<to be read again>
\csname\endcsname
I don't quite understand \csname and where it should be placed; i've tried playing around with it a bit, but unsuccessfully.
Any help would be greatly appreciated!
Thanks,
Greg