[texhax] counter _inside_ table/tabular

Donald Arseneau asnd at triumf.ca
Wed Mar 4 03:42:20 CET 2009

"Bryan W. Lepore" <Bryan.Lepore at umassmed.edu> writes:

> i'm stuck on the problem of putting a counter *inside* a table (specifically
> longtable) to number each entry within the single table. seems reasonable for
> latex, right?
> here's what i tried so far - so i think it is NOT as simple as :
> \newcounter{myCounter} %<- in preamble
> \setcounter{myCounter} %<- increment=1

That line is an error

> .....
> \value{myCounter} %<- in longtable environment

Absolutely no other context!?  

> error is :
> ! Missing number, treated as zero.

My random guess is you meant \themyCounter.

Donald Arseneau                          asnd at triumf.ca

More information about the texhax mailing list