Improve build script for amsmath
[latex2e.git] / latex2e-20160201 / base / testfiles / tlb4393.lvt
bloba334795a3bc877eea60d0468fd27d38b4daeded8
1 \iffalse
3 Subject:
4 amslatex/4393: counter only resetting next level within
6 not really a bug but a design decision that was driven by code economy and
7 speed conciderations that are no longer relevant. Prohibits one type of use case.
9 \fi
11 \input{test2e}
12 \documentclass{article}
13 \START
14 \AUTHOR{Frank Mittelbach}
15 %\PACKAGE{fixltx2e}
17 \OMIT
18 %\usepackage{fixltx2e}
20 \newcounter{foo}[subsection]
21 \newcounter{bar}[foo] \renewcommand\thebar{\thefoo-\arabic{bar}}
22 \newcounter{baz}[bar] \renewcommand\thebaz{\thebar-\arabic{baz}}
23 \newcounter{foobar}[section]
24 \TIMO
26 \typeout{\thesection\space | \thesubsection\space | \thefoo\space | \thebar\space | \thebaz\space | \thefoobar}
28 \stepcounter{section}
29 \stepcounter{subsection}\stepcounter{subsection}
30 \setcounter{foo}{5}\stepcounter{foo}
31 \setcounter{foobar}{2}\stepcounter{foobar}
32 \setcounter{bar}{6}\stepcounter{bar}
33 \setcounter{baz}{3}
35 \typeout{\thesection\space | \thesubsection\space | \thefoo\space | \thebar\space | \thebaz\space | \thefoobar}
38 \stepcounter{subsection}
40 \typeout{\thesection\space | \thesubsection\space | \thefoo\space | \thebar\space | \thebaz\space | \thefoobar}
42 \END