[Tuglist] Enumeration in tabular

Radhakrishnan CV tuglist@tug.org.in
Tue, 26 Mar 2002 09:07:17 +0530 (IST)


On Mon, 25 Mar 2002 at 19:20, E. Krishnan wrote:

   A simple trick using the package array is as follows
   
   \newcounter{rowno}
   \setcounter{rowno}{0}
   \newcommand{\slno}{\addtocounter{rowno}{1}\therowno}
   \newcolumntype{n}{>{\slno}r}
   
That's really ingenious and probably the most elegant way of doing 
it. I guess \addtocounter{rowno}{1} can be substituted by 
\stepcounter{rowno}.   

-- 
Radhakrishnan