[texhax] constructing labels from counters

Moshe Kamensky m.kamensky at uea.ac.uk
Thu Jul 27 10:02:29 CEST 2006


Hi,

I would like to construct a label for \label and \ref from a counter, so 
that I can do something like

\newcommand{\foo}{\stepcounter{foo}\label{bar:\value{foo}}...}

But the above example using \value doesn't work, nor when I replace it 
by, say, \alph{foo}. Is there a way to achieve this?

Thanks,
Moshe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://tug.org/pipermail/texhax/attachments/20060727/bc7cefd4/attachment.bin 


More information about the texhax mailing list