To increment a counter you should use \<span class="Apple-style-span" style="font-weight: bold;">step</span>counter{counter} instead of \<span class="Apple-style-span" style="font-weight: bold;">set</span>counter, which, by the way, has the following sintax: \setcounter{counter}{value}.<div>
[]s</div><div>Ivan</div><div><br></div><div><div class="gmail_quote">On Tue, Mar 3, 2009 at 23:42, Donald Arseneau <span dir="ltr"><<a href="mailto:asnd@triumf.ca">asnd@triumf.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
"Bryan W. Lepore" <<a href="mailto:Bryan.Lepore@umassmed.edu">Bryan.Lepore@umassmed.edu</a>> writes:<br>
<br>
> i'm stuck on the problem of putting a counter *inside* a table (specifically<br>
> longtable) to number each entry within the single table. seems reasonable for<br>
> latex, right?<br>
><br>
> here's what i tried so far - so i think it is NOT as simple as :<br>
><br>
> \newcounter{myCounter} %<- in preamble<br>
> \setcounter{myCounter} %<- increment=1<br>
<br>
That line is an error<br>
<br>
> .....<br>
> \value{myCounter} %<- in longtable environment<br>
<br>
Absolutely no other context!?<br>
<br>
> error is :<br>
> ! Missing number, treated as zero.<br>
<br>
My random guess is you meant \themyCounter.<br>
<br>
--<br>
Donald Arseneau <a href="mailto:asnd@triumf.ca">asnd@triumf.ca</a><br>
_______________________________________________<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
Mailing list archives: <a href="http://tug.org/pipermail/texhax/" target="_blank">http://tug.org/pipermail/texhax/</a><br>
More links: <a href="http://tug.org/begin.html" target="_blank">http://tug.org/begin.html</a><br>
<br>
Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax" target="_blank">http://tug.org/mailman/listinfo/texhax</a><br>
Human mailing list managers: <a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br>
</blockquote></div><br></div>