4 amslatex/4393: counter only resetting next level within
\r
6 not really a bug but a design decision that was driven by code economy and
\r
7 speed conciderations that are no longer relevant. Prohibits one type of use case.
\r
12 \documentclass{article}
\r
14 \AUTHOR{Frank Mittelbach}
\r
18 %\usepackage{fixltx2e}
\r
20 \newcounter{foo}[subsection]
\r
21 \newcounter{bar}[foo] \renewcommand\thebar{\thefoo-\arabic{bar}}
\r
22 \newcounter{baz}[bar] \renewcommand\thebaz{\thebar-\arabic{baz}}
\r
23 \newcounter{foobar}[section]
\r
26 \typeout{\thesection\space | \thesubsection\space | \thefoo\space | \thebar\space | \thebaz\space | \thefoobar}
\r
28 \stepcounter{section}
\r
29 \stepcounter{subsection}\stepcounter{subsection}
\r
30 \setcounter{foo}{5}\stepcounter{foo}
\r
31 \setcounter{foobar}{2}\stepcounter{foobar}
\r
32 \setcounter{bar}{6}\stepcounter{bar}
\r
35 \typeout{\thesection\space | \thesubsection\space | \thefoo\space | \thebar\space | \thebaz\space | \thefoobar}
\r
38 \stepcounter{subsection}
\r
40 \typeout{\thesection\space | \thesubsection\space | \thefoo\space | \thebar\space | \thebaz\space | \thefoobar}
\r