[texhax] counter _inside_ table/tabular

Ivan Ramos Pagnossin ivan.pagnossin at gmail.com
Wed Mar 4 12:59:59 CET 2009


To increment a counter you should use \stepcounter{counter} instead of
\setcounter,
which, by the way, has the following sintax: \setcounter{counter}{value}.[]s
Ivan

On Tue, Mar 3, 2009 at 23:42, Donald Arseneau <asnd at triumf.ca> wrote:

> "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
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
>
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20090304/0b50bcda/attachment.html 


More information about the texhax mailing list