I am using Tabbing to write a number of C like programs. I want to
number these lines either on the left side as usual or one the right
side as a comment. I am also referring to these numbers in the text. I
can do that manually but it involves a lot of updates per change.
I tried using \ref and \label but they refer to the section number. I
know that I can use equations or enumerates to reset the numbering but
will have issues with alignment and style. I also found some people
advocating amsmath and mathenv. However, using these two packages
results in a lot of modifications that I would like to avoid.
Please advice,
Thanks in advance.
Hasan