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">&lt;<a href="mailto:asnd@triumf.ca">asnd@triumf.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
&quot;Bryan W. Lepore&quot; &lt;<a href="mailto:Bryan.Lepore@umassmed.edu">Bryan.Lepore@umassmed.edu</a>&gt; writes:<br>
<br>
&gt; i&#39;m stuck on the problem of putting a counter *inside* a table (specifically<br>
&gt; longtable) to number each entry within the single table. seems reasonable for<br>
&gt; latex, right?<br>
&gt;<br>
&gt; here&#39;s what i tried so far - so i think it is NOT as simple as :<br>
&gt;<br>
&gt; \newcounter{myCounter} %&lt;- in preamble<br>
&gt; \setcounter{myCounter} %&lt;- increment=1<br>
<br>
That line is an error<br>
<br>
&gt; .....<br>
&gt; \value{myCounter} %&lt;- in longtable environment<br>
<br>
Absolutely no other context!?<br>
<br>
&gt; error is :<br>
&gt; ! 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>