<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: TeX counts and LaTeX counters</title>
	<atom:link href="http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/</link>
	<description>Coding in the TeX world</description>
	<lastBuildDate>Mon, 08 Mar 2010 14:08:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: TeX Live 2009, MacTeX 2009, Binaries für FreeBSD, LuaTeX 0.46.0, LaTeX News&#160;19, TeX Catalogue, pdfTeX 1.40.10-RC, JabRef 2.6 beta&#160;2, Writer2LaTeX 1.0 final, WinShell 3.31, LEd 0.53, TeXMakerX 1.9.2, TeXTable 0.2, LyX 1.6.4.2, LaTeXiT 2.0.1, PS-</title>
		<link>http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/comment-page-1/#comment-1750</link>
		<dc:creator>TeX Live 2009, MacTeX 2009, Binaries für FreeBSD, LuaTeX 0.46.0, LaTeX News&#160;19, TeX Catalogue, pdfTeX 1.40.10-RC, JabRef 2.6 beta&#160;2, Writer2LaTeX 1.0 final, WinShell 3.31, LEd 0.53, TeXMakerX 1.9.2, TeXTable 0.2, LyX 1.6.4.2, LaTeXiT 2.0.1, PS-</dc:creator>
		<pubDate>Mon, 30 Nov 2009 13:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=544#comment-1750</guid>
		<description>[...] dem Perl-Skript ctanify von Scott Pakin, über das ich schon einmal berichtet hatte. Ein weiterer Beitrag beschäftigt sich mit dem Unterschied zwischen „TeX counts and LaTeX counters“. In der TUG [...]</description>
		<content:encoded><![CDATA[<p>[...] dem Perl-Skript ctanify von Scott Pakin, über das ich schon einmal berichtet hatte. Ein weiterer Beitrag beschäftigt sich mit dem Unterschied zwischen „TeX counts and LaTeX counters“. In der TUG [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TeX Live 2009, MacTeX 2009, Binaries für FreeBSD, LuaTeX 0.46.0, LaTeX News&#160;19, TeX Catalogue, pdfTeX 1.40.10-RC, JabRef 2.6 beta&#160;2, Writer2LaTeX 1.0 final, WinShell 3.31, LEd 0.53, TeXMakerX 1.9.2, TeXTable 0.2, LyX 1.6.4.2, LaTeXiT 2.0.1, PS-</title>
		<link>http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/comment-page-1/#comment-1748</link>
		<dc:creator>TeX Live 2009, MacTeX 2009, Binaries für FreeBSD, LuaTeX 0.46.0, LaTeX News&#160;19, TeX Catalogue, pdfTeX 1.40.10-RC, JabRef 2.6 beta&#160;2, Writer2LaTeX 1.0 final, WinShell 3.31, LEd 0.53, TeXMakerX 1.9.2, TeXTable 0.2, LyX 1.6.4.2, LaTeXiT 2.0.1, PS-</dc:creator>
		<pubDate>Mon, 30 Nov 2009 13:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=544#comment-1748</guid>
		<description>[...] dem Perl-Skript ctanify von Scott Pakin, über das ich schon einmal berichtet hatte. Ein weiterer Beitrag beschäftigt sich mit dem Unterschied zwischen „TeX counts and LaTeX counters“. In der TUG [...]</description>
		<content:encoded><![CDATA[<p>[...] dem Perl-Skript ctanify von Scott Pakin, über das ich schon einmal berichtet hatte. Ein weiterer Beitrag beschäftigt sich mit dem Unterschied zwischen „TeX counts and LaTeX counters“. In der TUG [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TeX Live 2009, MacTeX 2009, Binaries für FreeBSD, LuaTeX 0.46.0, LaTeX News&#160;19, TeX Catalogue, pdfTeX 1.40.10-RC, JabRef 2.6 beta&#160;2, Writer2LaTeX 1.0 final, WinShell 3.31, LEd 0.53, TeXMakerX 1.9.2, TeXTable 0.2, LyX 1.6.4.2, LaTeXiT 2.0.1, PS-</title>
		<link>http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/comment-page-1/#comment-1745</link>
		<dc:creator>TeX Live 2009, MacTeX 2009, Binaries für FreeBSD, LuaTeX 0.46.0, LaTeX News&#160;19, TeX Catalogue, pdfTeX 1.40.10-RC, JabRef 2.6 beta&#160;2, Writer2LaTeX 1.0 final, WinShell 3.31, LEd 0.53, TeXMakerX 1.9.2, TeXTable 0.2, LyX 1.6.4.2, LaTeXiT 2.0.1, PS-</dc:creator>
		<pubDate>Mon, 30 Nov 2009 12:58:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=544#comment-1745</guid>
		<description>[...] dem Perl-Skript ctanify von Scott Pakin, über das ich schon einmal berichtet hatte. Ein weiterer Beitrag beschäftigt sich mit dem Unterschied zwischen „TeX counts and LaTeX counters“. In der TUG [...]</description>
		<content:encoded><![CDATA[<p>[...] dem Perl-Skript ctanify von Scott Pakin, über das ich schon einmal berichtet hatte. Ein weiterer Beitrag beschäftigt sich mit dem Unterschied zwischen „TeX counts and LaTeX counters“. In der TUG [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will Robertson</title>
		<link>http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/comment-page-1/#comment-1606</link>
		<dc:creator>Will Robertson</dc:creator>
		<pubDate>Wed, 18 Nov 2009 05:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=544#comment-1606</guid>
		<description>Nice summary. Two more differences between the behaviour of counters and counts:

1. With the calc package, all \setcounter (etc.) calls accept integer expressions such as (1+6)/2. Of course, similar (and more efficient) results can be achieved in eTeX with \mycount=\intexpr(1+6)/2\relax

2. \setcounter and friends are occasionally redefined inside certain contexts. In tabularx, for example, material is typeset multiple times and \stepcounter is redefined to only increment the first time the code in the table is executed:

\documentclass{article}
\usepackage{tabularx}
\begin{document}
\newcount\mycount
\newcounter{mycount}
\begin{tabularx}{5cm}{X}
\global\advance\mycount 1\relax \the\mycount \\
\stepcounter{mycount}\themycount \\
\end{tabularx}
\end{document}

This counter redefinition is usually a good thing, but I once had an unfortunate interaction that caused a bug (although I forget exactly how...)</description>
		<content:encoded><![CDATA[<p>Nice summary. Two more differences between the behaviour of counters and counts:</p>
<p>1. With the calc package, all \setcounter (etc.) calls accept integer expressions such as (1+6)/2. Of course, similar (and more efficient) results can be achieved in eTeX with \mycount=\intexpr(1+6)/2\relax</p>
<p>2. \setcounter and friends are occasionally redefined inside certain contexts. In tabularx, for example, material is typeset multiple times and \stepcounter is redefined to only increment the first time the code in the table is executed:</p>
<p>\documentclass{article}<br />
\usepackage{tabularx}<br />
\begin{document}<br />
\newcount\mycount<br />
\newcounter{mycount}<br />
\begin{tabularx}{5cm}{X}<br />
\global\advance\mycount 1\relax \the\mycount \\<br />
\stepcounter{mycount}\themycount \\<br />
\end{tabularx}<br />
\end{document}</p>
<p>This counter redefinition is usually a good thing, but I once had an unfortunate interaction that caused a bug (although I forget exactly how&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Wright</title>
		<link>http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/comment-page-1/#comment-1600</link>
		<dc:creator>Joseph Wright</dc:creator>
		<pubDate>Tue, 17 Nov 2009 17:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=544#comment-1600</guid>
		<description>The thing with a space is that it will fail if the number is stored in a macro:

\mycount\somemacro \morecsnames

which is usually where problems appear. As I said, LaTeX uses \relax internally.

I&#039;ve mainly focussed on looking at things as numbers, rather than the entire label system in LaTeX. Things get complex, as you say.

Joseph</description>
		<content:encoded><![CDATA[<p>The thing with a space is that it will fail if the number is stored in a macro:</p>
<p>\mycount\somemacro \morecsnames</p>
<p>which is usually where problems appear. As I said, LaTeX uses \relax internally.</p>
<p>I&#8217;ve mainly focussed on looking at things as numbers, rather than the entire label system in LaTeX. Things get complex, as you say.</p>
<p>Joseph</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcin</title>
		<link>http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/comment-page-1/#comment-1599</link>
		<dc:creator>Marcin</dc:creator>
		<pubDate>Tue, 17 Nov 2009 16:24:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=544#comment-1599</guid>
		<description>Good article.

Personally, I use a space instead of \relax, but I guess this is a matter of taste.

And one more thing: there is also \refstepcounter, which is used for counters which number something that should be accessible by the label-ref mechanism. The details of label printing are a bit tricky, though.</description>
		<content:encoded><![CDATA[<p>Good article.</p>
<p>Personally, I use a space instead of \relax, but I guess this is a matter of taste.</p>
<p>And one more thing: there is also \refstepcounter, which is used for counters which number something that should be accessible by the label-ref mechanism. The details of label printing are a bit tricky, though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jürgen Fenn (juergenfenn) 's status on Tuesday, 17-Nov-09 11:26:51 UTC - Identi.ca</title>
		<link>http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/comment-page-1/#comment-1597</link>
		<dc:creator>Jürgen Fenn (juergenfenn) 's status on Tuesday, 17-Nov-09 11:26:51 UTC - Identi.ca</dc:creator>
		<pubDate>Tue, 17 Nov 2009 11:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.texdev.net/?p=544#comment-1597</guid>
		<description>[...] Joseph Wright bloggt über &quot;TeX counts and LaTeX counters&quot;: http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Joseph Wright bloggt über &quot;TeX counts and LaTeX counters&quot;: <a href="http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/" rel="nofollow">http://www.texdev.net/2009/11/17/tex-counts-and-latex-counters/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
